# MathX - LaTeX formulas in MODx

MathX - LaTeX formulas in MODx is an extra by madmage, first released on 2012-04-01.

Initial content

## Usage/Installation Instructions

With this plugin you can render your LaTeX formulas in a MODx resource. Use  for your block formulas and <m></m> for your inline formulas. For example, after installing this plugin, you can write:

This is a well-known formula:

$E=mc^2$

this is more complex formula:

$\theta + \Omega^2 + \frac{\pi}{sqrt{x^2 + y^2}}$

Moreover, you can write inline formulas like this: <m>E=mc^2</m>.

Formulas are rendered using the online services of http://www.codecogs.com/ and cached once forever (in /assets/components/mathx), so that you do not have problems with CodeCogs quotas.

You can freely change the style of rendered formulas. The block formulas  are rendered with an image of class mathx_block, surrounded by a div of the same class. Inline formulas <m></m> are rendered with an image of class mathx_inline, surrounded by a span of the same class. For example, on my website (http://www.mindreamz.net), the stylesheet contains these lines:

/* MathX styles */

div span img.mathx_inline { margin: 0; padding: 0; vertical-align: baseline; border:0 }

Developer(s)
Released
2012-04-02
First seen
2012-04-01