How to Insert Mathematical/Statistical Formula/Equations in WordPress Blog Using Latex?

Here is an example formula used in this blog.

    \[\text{Percent} = \frac{\text{Frequency of Each Value}}{\text{Total Frequency}} \times 100\]

 

Step 1. (In your blog’s Dashboard) Install WP QuickLaTex (Formula Tool)

As usual, go to Plugins – Add New – Search for “WP Quicklatex” – Install and Activate.

Step 1_1: Dashboard – Plugins – Add New
Step 1_2: Select and Install the WP QuickLaTeX. Then, activate it.

Step 2. (Somehwere in your blog) Insert a Shortcode saying .

Somewhere in your blog (the location does not really matter), click the “Toggle block inserter” or the “Blue Plus” button at the upper left corner (see below).

Step 21: Click Toggle block inserter at the upper left corner.

Then, in the search box, type “Short” and select the “Shortcode” option (see below).

Step 2_2: Type Short in the search box and select “Shortcode”

Then, you would see a Shortcode box as shown below:

Step 2_3: Create a shortcode.

Finally, in the box “Write shortcode here,” type, , as shown below:

Step 2_4: Type in the shortcode.

Step 3. Insert your formula

Here’s an example LaTeX content that we can use for our practice (How to create a LaTeX formula?). This is also the content that was used to create the example formula above. Just insert the following line anywhere you want.

Note, you can also insert the link below the that you wrote in the shortcode box.

Example LaTeX formula.

Note, the LaTeX contents should start with the following:

LaTeX starting symbol.

and end with the following:

LaTeX ending symbol.

That is, the contents are surrounded by the two above.

Then, the above line would be represented as a formula to your readers.

    \[\text{Percent} = \frac{\text{Frequency of Each Value}}{\text{Total Frequency}} \times 100\]

Step 4: Previewing the formula.

Click the Preview button at the upper right corner and choose the last option, “Preview in new tab.” (The default is Desktop.)

Step 3: Preview – Preview in new tab.

Of course, you would eventually publish the blog if the formula looks as you intended.

Hope this helps.

-StatisticsHero.com

Leave a Comment