About MathX - LaTeX formulas in MODx
With MathX plugin, you can render LaTeX formulas directly in MODx resources. Simply surround your formulas between or for inline formulas, e.g., E=mc^2 or A=\pi r^2.
Information
Released
April 2, 2012
Supported Database
MySQL
License
GPLv2
Supported Versions
2.0 - Current
Downloads
1,210
Instructions
With this plugin you can render your LaTeX formulas in a MODx resource. Use <math></math> 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:
<math>E=mc^2</math>
this is more complex formula:
<math>\theta + \Omega^2 + \frac{\pi}{sqrt{x^2 + y^2}}</math>
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 <math></math> 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.mathx_block { text-align:center; padding:10px }
div span img.mathx_inline { margin: 0; padding: 0; vertical-align: baseline; border:0 }