Writing LaTeX in WordPress

To type a formula in WordPress type $ latex < Your LaTex code> $ without the signs < and >.

For example $ latex \int_0^1 f(x) \, \mathrm{d} x $ produces \int_0^1 f(x) \, \mathrm{d} x.

To display a formula type <p align=”center”> $ latex \displaystyle <Your LaTex code> $</p>.

For example <p align=”center”>$ latex \displaystyle \sum_{n=1}^\infty \frac{1}{n^2} = \frac{\pi^2}{6}. $</p> yields

\displaystyle \sum_{n=1}^\infty \frac{1}{n^2} = \frac{\pi^2}{6}.

For a short introduction to LaTex see for instance here.

Further information on writing formulas in WordPress can be found here. Some information can also be found here. A very useful program which converts latex into WordPress-Latex can be found here, see also here. If you are running into problems with formulae not parsing, see here.

7 responses to “Writing LaTeX in WordPress

  1. very useful thanks..

  2. Pingback: Writing LaTeX in WordPress | Pablo Echenique's home page

  3. Hey thanks, really useful !

  4. Excellent! I \omega \emptyset \mathbb{N} {\partial d} \mathrm e \mathbb{R} if it works in comments too. Thanks.

    Also, if anyone else was confused, you need to drop the space between $ and ‘latex’. I imagine you added the space so that you could show the syntax without it turning into LaTex output.

  5. Thank you! Hugely helpful. In the example you gave it comes out pretty nice since you have a fraction on either side of the equation, but when that is not the case you get this size difference issue, that comes from using the latex inline functinality: $ $, rather than the one line: $$ $$

    S_a \triangleq \frac{ S \cdot n + f}{n}

  6. I found a work around for this issue:

    S_a \triangleq   \frac{ S \cdot n + f}{n}

  7. by using a different size for each side of the equation:

    $ latex S_a \triangleq &s=2 $ $ latex \frac{ S \cdot n + f}{n} &s=3

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s