Manual:Math
From MediaWiki.org
If you are looking for information on the <math> syntax, see MetaWiki: Help:Formula . Other ways of rendering math in Mediawiki are listed here.
MediaWiki supports embedding mathematical formulas using TeX syntax in <math> tags.
[edit] Installation
To use TeX formulas in MediaWiki, you have to build and configure the texvc program, which uses LaTeX to render the formulas. It is located in the math directory in your MediaWiki installation directory, see Manual:Enable TeX and the README file in that directory for instructions. When the texvc program is built, you have to enable it using the $wgUseTeX setting.
[edit] Usage
Once texvc is installed, end users can enter LaTeX formulae between <math> tags in the wikitext of any page.
If texvc is not installed, the graphics output is not visible, and you will see a red-coloured error message text instead.
An extensive user guide with examples of LaTeX output produced in this manner can be found here: MetaWiki: Help:Formula . One example follows here for completeness:
<math>
\operatorname{erfc}(x) =
\frac{2}{\sqrt{\pi}} \int_x^{\infty} e^{-t^2}\,dt =
\frac{e^{-x^2}}{x\sqrt{\pi}}\sum_{n=0}^\infty (-1)^n \frac{(2n)!}{n!(2x)^{2n}}
</math>
produces