Typesetting Mathematics

WordPress allows you to use a lot of latex typesetting capabilities in this blog. To enter into “math mode,” when typing a post or a comment, use the command ‘dollar sign’latex. After typing this, you can use a large portion of the latex library of mathematical typesetting commands. When you are done writing mathematics, close math mode with another ‘dollar sign.’ WordPress does not support a ‘display environment’ (achieved in your favorite latex editor with either ‘double dollar sign’ or ‘\[ … \]’), but you CAN control the size of the typeset mathematics (before closing math mode, enter ‘&s=’ followed by a number between -4 and 4; here the number 0 is the ‘standard font size’ so that negative numbers will shrink the output while positive numbers increase the size of the output.

Examples:

Here is an inline equation \int_{0}^{\frac{\pi}{2}} \tan(x) dx , which is fairly robust (even allowing fractions in the bounds of integration). [code: ‘dollar sign’latex \int_{0}^{\frac{\pi}{2}} \tan(x) dx &s=2’dollarsign’]

The next two equations are “center justified” in the wordpress text editor, to act as display equations.

\begin{bmatrix} 45 & 32 & 12\\ 13 & \frac{1}{x} & \infty \end{bmatrix}

[code: ‘dollar sign’latex \begin{bmatrix} 45 & 32 & 12\\ 13 & \frac{1}{x} & \infty \end{bmatrix} &s=3’dollar sign’]

\begin{cases} f(x) & x= 45\\ g(x) & x = 32 \end{cases}

[code: ‘dollar sign’latex \begin{cases} f(x) & x= 45\\ g(x) & x = 32 \end{cases} &s=-2’dollar sign’]

One Response

  1. Jeremy LeCrone says:

    Is it possible to include Latex in a comment? YES, there is just no good way to “center justify” in a comment! \sqrt{45x^{sin(x)}+13}

    \begin{cases} f(x) &x=45\\ g(x) &x=35 \end{cases}

Leave a Reply