3heads-gear3headschatchecklistglobehead-lockhead-plusimaclife-ringlogo-cornelllogo-melbournelogo-northhamptonlogo-portsmouthlogo-small logo-vancouverlogo-yokohamamail-line mail-wings pdf pie-chartplayplugprinter skype website
Print Friendly, PDF & Email

The  LaTeX Math Symbols Plugin allows you to use LaTeX code in posts and comments.  LaTex is good for formatting mathematical formulas and equations.

LaTeX Shortcode

Once you have activated the LaTeX Math Symbols Plugin in Plugins > All you can add LaTeX Math symbols to posts or comments using the following code:

$latex your-latex-code$

For example,

$latex e^{\i \pi} + 1 = 0$

produces

e^{\i \pi} + 1 = 0

Troubleshooting

  • The LaTeX Maths Symbols plugin is network enabled on all CampusPress networks.
  • You won’t see the plugin in Plugins > All on a CampusPress blog as it is automatically enabled and you just need to add the LaTex code to your post.
  • You’ll find information on how to write LaTeX syntax here.

LaTeX Error

You see the following yellow and red error message if your LaTex code is broken.

\left(\fracx^2}{y^3}\right)

You’ll find information on how to write LaTeX syntax here.

LaTeX Size

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

$latex your-latex-code&s=X$

Size can be from -4 to 4 where 0 is the default size.

For example,

$latex e^{\i \pi} + 1 = 0&s=-3$

produces

e^{\i \pi} + 1 = 0

Whereas,

$latex e^{\i \pi} + 1 = 0&s=4$

produces

e^{\i \pi} + 1 = 0

LaTeX Colors

You can change the colors by specifying the background and foreground colors after the LaTeX code using the following LaTeX code:

$latex your-latex-code&bg=Y&fg=Z$

The colors must be in hexadecimal format.

For example,

$latex e^{\i \pi} + 1 = 0&bg=CCFFFF&fg=0A42C4$

produces

e^{\i \pi} + 1 = 0