Easy methods to Write Math Equations in WordPress (Lovely Formatting)

  • January 6, 2023
  • elkenz
  • 6 min read

Do you wish to write math equations in WordPress?

Writing math equations in WordPress is a bit tough because the default WordPress editor doesn’t include full help for mathematical equations.

On this article, we are going to present you simply write math equations in WordPress utilizing 3 completely different strategies.

Writing math equations in WordPress

Why Writing Math Equations in WordPress is Troublesome?

The best way WordPress works is that it dynamically generates your web site content material and sends HTML output again to the customers’ browsers to show it.

Writing mathematical and scientific equations in WordPress is tough because of the lack of help for the characters in HTML.

At the moment, MathML and LaTeX are thought of to be the usual for writing mathematical and scientific equations on the net.

Sadly, they’re each lower than superb for newcomers. They each require you to study their very own syntax which may get difficult for longer and extra advanced equations.

That being mentioned, let’s check out write math equations in your WordPress weblog.

We’ll begin off with a straightforward answer first earlier than exhibiting use MathML or LaTeX in WordPress.

Technique 1. Writing Math Equations in WordPress utilizing Unicode Characters

This methodology is less complicated and is advisable for customers who don’t want to put in writing math equations incessantly. For this methodology, we’ll be utilizing Unicode characters and inserting them immediately within the publish editor.

Unicode is the encoding normal with the goal to offer character encoding help for all languages. It’s supported by all web site builders, working methods, and cell units.

Right here is add mathematical characters in WordPress utilizing Unicode.

1. Including Unicode Mathematical Characters in Mac

On Mac computer systems, you may add mathematical operators and characters from the toolbar on the high. Merely click on on Edit » Emoji & Symbols or press Command + Management + Area keys in your keyboard.

Character Viewer

This may deliver up the ‘Character Viewer’ app in a popup. From right here you may choose the symbols and characters that you simply wish to insert.

Merely double click on on a personality to insert it within the WordPress publish editor.

You may as well format characters within the publish editor utilizing the subscript and superscript choices in paragraph toolbar.

Using subscript and superscript in WordPress paragraph block

2. Including Unicode Mathematical Characters in Home windows

Home windows customers can use an identical app to insert mathematical operators and particular characters in WordPress publish editor.

Merely open the Character Map app by clicking on Begin » Home windows Equipment » Character Map. This may deliver up the exhibiting generally used characters on display screen.

Character Map app in Windows 10

The Character Map app helps many alternative encodings together with Unicode. Yow will discover math operators by choosing the Unicode Subrange beneath Group.

After finding a personality, you might want to click on to pick out it after which copy it. Now swap again to the WordPress content material editor and paste the character.

Manually including particular characters and mathematical operators is a problem, however it works when you’re solely including this now and again.

Nonetheless, when you usually want to put in writing mathematical equations in your web site, you then’ll be higher off studying to make use of both of the 2 strategies described beneath.

2. Writing Math Equations in WordPress utilizing LaTeX

LaTeX is a typesetting normal designed particularly for writing technical and scientific documentation. It’s extensively utilized in educational circles and is taken into account to be the de facto normal for writing equations and different scientific paperwork.

The official LaTeX web site has detailed documentation and hyperlinks to the tutorials and information that can provide help to learn to use it.

We’ll deal with deliver LaTeX typesetting to your WordPress web site.

First, you might want to set up and activate the WP QuickLaTeX plugin. For extra particulars, see our step-by-step information on set up a WordPress plugin.

Upon activation, you might want to edit the publish or web page the place you wish to insert a math equation. On the publish edit display screen, click on on the add new block button (+) and insert the shortcode block to your content material.

Shortcode block

Contained in the shortcode, you might want to add the shortcode [latexpage] adopted by your LaTeX code.

Adding a LaTeX command in a shortcode block

Now you can save your publish and preview it to see your math equation with formatting.

A math equation displayed in WordPress using LaTeX

A neater technique to generate the code that you might want to paste is through the use of an offline LaTeX app to your working system or a web-based LaTeX setting like Overleaf.


You’ll be able to then copy and paste your equations within the shortcode block in WordPress.

3. Writing Math Equations in WordPress utilizing MathML

MathML is a markup language designed to simply publish mathematical equations on the net. It makes use of a semantic XML markup just like HTML.

WordPress doesn’t help MathML out of the field, and when you added the MathML code within the publish editor, then it is not going to render accurately.

Fortunately, there’s a plugin that solves that downside.

Merely set up and activate the MathML Block plugin. For extra particulars, see our step-by-step information on set up a WordPress plugin.

Upon activation, merely edit the publish or web page the place you wan so as to add the mathematics equation. On the publish edit display screen, click on on the add new block button (+) and add the Customized HTML block to your content material.

Adding custom HTML block in WordPress

Now you can paste your MathML code contained in the customized HTML block.

Adding MathML code in WordPress

After that, it can save you your publish or web page and think about it in a brand new tab to see MathML superbly remodeled in your web site.

MathML preview

MathML Block makes use of the MathJax JavaScript engine to transform your markup into readable math equations. It additionally helps LaTeX instructions.

So as to add your LaTeX code, merely add the MathML block to your content material editor.

Adding MathML block

Within the MathML block’s textual content space, you may paste your LaTeX code like this:

[ your equation goes here]

Now you can save and preview your publish to see it superbly displayed in your weblog publish or web page.

LaTeX in MathML Block

We hope this text helped you learn to add math equations in WordPress. You might also wish to see our final listing of essentially the most helpful WordPress widgets and the should have WordPress plugins advisable by our specialists.

If you happen to appreciated this text, then please subscribe to our YouTube Channel for WordPress video tutorials. You may as well discover us on Twitter and Fb.