Widgets Blocks


WordPress.com supports \LaTeX, a typesetting system that’s really good at formatting mathematical formulas and equations.

Using \LaTeX
LaTeX Packages
More Information

Using LaTeX

To include \LaTeX code in your post, use the following format:

$latex your-latex-code-here$

For example,

$latex i\hbar\frac{\partial}{\partial t}\left|\Psi(t)\right>=H\left|\Psi(t)\right>$


i\hbar\frac{\partial}{\partial t}\left|\Psi(t)\right>=H\left|\Psi(t)\right>

If you wish to copy and paste this formula to test it out, we recommend pasting it as plain text.

In the WordPress Editor, you can add LaTex formulas in plain text by pasting it into a Shortcode Block or a Custom HTML block like this:

LaTex Equation shown inside of a Custom HTML block

To preview the equation, Click on the Preview button in the top right-hand side of the editor and the equation will show on the live site.

↑ Table of Contents ↑

LaTeX Error

If your \LaTeX code is broken, instead of the equation you’ll see a yellow and red error message, shown below.


We can’t provide support for \LaTeX syntax, but there are plenty of useful guides online. A quick post in our forums, or the Stack Exchange LaTex forum, might find you a solution. One thing to keep in mind is that WordPress puts all of your \LaTeX code inside a \LaTeX math environment. If you try to use \LaTeX that doesn’t work inside the math environment (such as \begin{align} ... \end{align}), you will get an error.

↑ Table of Contents ↑

LaTeX Size

You can change the size of the LaTeX by specifying an s parameter after the \LaTeX code.

$latex \LaTeX&s=X$

Where X goes from -4 to 4 (0 is the default). These sizes correspond to \LaTeX‘s font size commands:

s=font sizeExample
0\normalsize (12pt)\LaTeX

↑ Table of Contents ↑

LaTeX Colors

WordPress tries to guess the background and foreground colors of your site and generates the \LaTeX image accordingly. But, you can change the colors. You can specify bg and fg parameters after the \LaTeX code to change the background and foreground colors, respectively. The colors must be in hexadecimal RGB format: ffffff for white, 0000ff for bright blue, etc.

$latex \LaTeX&bg=ffcccc&fg=cc00ff&s=4$


↑ Table of Contents ↑

LaTeX Packages

WordPress.com uses standard \LaTeX with the following packages:

  • amsmath
  • amsfonts
  • amssymb

↑ Table of Contents ↑

More Information

For \LaTeX code, you can use an online generator like HostMath.

For more information about \LaTeX, you can visit LaTeX documentation site and TeX Resources by American Mathematical Society.

Still confused?

Contact support.

Not quite what you're looking for?

Get Help