Writing a mathematical equation in WordPress is not a very easy task. This is because WordPress does not support all characters in HTML.
Let us see how to easily add mathematical equations in your WordPress site.
Adding Equations using Plugins
There are various plugins on WordPress to help us add mathematical or scientific equations to your site. Many plugins in WordPress use “LaTeX” syntax which is a markup language used to write scientific formulas and equations. To understand more about LaTeX and learn how to use it, check their official site .
Here are a few plugins which use LaTeX, you can install to write a mathematical equation in WordPress:-
- WP Quick LaTeX.
- Easy WP LaTeX.
- MathML Block
- MathJax – LaTeX.
- Youngwhan’s Simple LaTeX.
- Beautiful Math with LaTeX.
- WP – KaTeX
WP QuickLaTeX PLugin
We shall now see how to install and implement one of these plugins- WP QuickLaTeX.
WP QuickLaTeX is one of the most popular plugins used for this purpose. It is fast and highly user-friendly.
Step 1- Install the WP QuickLaTeX plugin. If you face any difficulties in this step check How to install plugins.
Step 2- After activating the plugin; go to the “post edit screen” of your page and click on the “Add new” button.
Step 3- Search for “shortcode” in the search bar and add the shortcode widget to your page.
Step 4- In the shortcode text-box write [latexpage] and the latex code respectively.
Step 5- Finally save and preview the equation on your page.
- If you are not able to convert your mathematical equation to LaTeX, you can use web-based LaTeX environment or its application.
- We would suggest that beginners should avoid using this method as it can get hectic to convert complex equations.
MathML Block Plugin
MathML is a markup language which uses semantics XML similar to HTML.
Step 1: Install and activate the MathML Block plugin.
Step 2: Next, go to post edit screen on your dashboard and click on “Add New” button
Step 3: Search “HTML” in search bar and add the custom HTML block.
Step 4: You can paste your MathML code in the HTML block.
Step 5: Finally, save and preview the equation on your page.
Adding Equations using Unicode Characters
Unicode is a standard encoding system. We will be inserting characters from the Unicode characters directly in the post editor. It is compatible with all operating systems and mobile devices; hence you can use it while creating your site.
Now, let us see how to add mathematical characters using Unicode character set.
How to Add Math Equation in Windows System
Step 1: Open the “Character Map” application in your system.
Step 2: Click on start followed by “Windows” button.
Step 3: Next, click on the “Accessories” and then “Character map”, you will see a table filled with various math codes on your screen.
Step 4: In the “Group By” select the “Unicode Subrange” and next select “Mathematical Operation”.
Step 5: Search for the characters you require in your mathematical equation. Simply click on them and copy it.
Step 6: Paste the character in your WordPress editor.
Step 7: Save the whole equation and preview it on your webpage.
How to Add Math Equation in MAC System
Step 1: Go to the toolbar and click on “Edit” and then “Emojis and Symbols”.
Step 2: Now, you will see a character viewer app, click on “Math Symbol”.
Step 3: Next, simply double click on a character to add it to your WordPress editor.
Step 4: Finally, save it and preview the equation on your webpage.
Note: If you have many equations to be added in your site, then this method is not suggested as it will be very time consuming.
In WordPress, mathematical or scientific equations can be added to your site in two different methods majorly.
The method in which we add formulas or equations using plugins is not suggested to beginners but is a very convenient method if you have to add multiple numbers of equations to your site.
The Unicode character set method is comparatively easier and beginner friendly method.
We hope this article helps you add mathematical equations in WordPress. In case of queries, please leave a comment and we will get back to you as soon as possible.
Also, if you want us to cover a specific topic you can leave a comment for that as well.