Manual:Math

From MediaWiki.org

Jump to: navigation, search

If you are looking for information on the math syntax, see

MetaWiki: Help:Formula

.

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 Manual:$wgUseTeX setting.

[edit] Usage

Click on edit to view the LaTeX-syntax in between the math-tag. If texvc is not installed in your MediaWiki-Installation the graphics output is not visible

Here are some examples of LaTeX output produced in this manner:

  • \int\limits_a^x f(\frac{\alpha}{2}\,)\,dx
  • \int\limits_1^\infin \frac{1}{k}\,dk
  • \sqrt{x^2+2x+1}=|x+1| - \left(\left(\frac{2x^2}{x}\right)^2\right)^2
  • \sqrt{\sqrt{\sqrt{x}}}
  • \ E = \sum_{i=1}^N e^{- J_{ij} \sigma_i \sigma_j}
  • \left( \begin{smallmatrix} a&b \\ c&d \end{smallmatrix} \right)
  • \therefore


More information on usage:

MetaWiki: Help:Formula
Personal tools