Extras catalogue

MathX - LaTeX formulas in MODx

Latest release 14 years ago (April 2, 2012).

mathx

  • By madmage

About

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.

Installation & usage

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 }

At a glance

MODX 3 compatibility unknown. Based on our testing and community reports where available.

  • Developer madmage
  • Latest release April 2, 2012 (14 years ago)
  • First seen in SiteDash April 1, 2012 (14 years ago)
  • License GPLv2
  • MODX support 2.0 – 100.0

Releases 1 indexed release

Changelog
MODX.com

1.0-beta1

April 2, 2012

14 years ago

—