# MathJaxExamples

From SURAgrid

(Difference between revisions)

Jpr@uab.edu (Talk | contribs) (add another example) |
Jpr@uab.edu (Talk | contribs) m (Jpr@uab.edu moved page MathTestPage to MathJaxExamples) |
||

(2 intermediate revisions by one user not shown) | |||

Line 1: | Line 1: | ||

− | See how math markup works with [http://www.mediawiki.org/wiki/Extension:SimpleMathJax SimpleMathJax] extension | + | See how math markup works with [http://www.mediawiki.org/wiki/Extension:SimpleMathJax SimpleMathJax] extension. |

+ | |||

+ | You can now add TeX formulas to a wiki page and have the rendered beautifully. Simple put the TeX code between and opening <nowiki><math></nowiki> and closing <nowiki></math></nowiki> tag and the page will render the TeX. | ||

+ | |||

+ | Here are some examples taken from [http://en.wikipedia.org/wiki/User:Jmkim_dot_com/TeX_Samples TeX examples]: | ||

+ | |||

+ | Enter the text: | ||

+ | |||

+ | <nowiki><math>E=mc^2</math></nowiki> | ||

+ | |||

+ | And the page will render it as: | ||

+ | |||

+ | <math>E=mc^2</math> | ||

+ | |||

+ | Here are the Lorenz equations (view the source of this page to see the wiki code): | ||

− | |||

− | |||

<math>\begin{align} | <math>\begin{align} | ||

\dot{x} & = \sigma(y-x) \\ | \dot{x} & = \sigma(y-x) \\ | ||

Line 8: | Line 20: | ||

\dot{z} & = -\beta z + xy | \dot{z} & = -\beta z + xy | ||

\end{align}</math> | \end{align}</math> | ||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− | |||

− |

## Latest revision as of 10:04, 23 January 2015

See how math markup works with SimpleMathJax extension.

You can now add TeX formulas to a wiki page and have the rendered beautifully. Simple put the TeX code between and opening <math> and closing </math> tag and the page will render the TeX.

Here are some examples taken from TeX examples:

Enter the text:

<math>E=mc^2</math>

And the page will render it as:

[math]E=mc^2[/math]

Here are the Lorenz equations (view the source of this page to see the wiki code):

[math]\begin{align} \dot{x} & = \sigma(y-x) \\ \dot{y} & = \rho x - y - xz \\ \dot{z} & = -\beta z + xy \end{align}[/math]