Extension:Math

The Math extension provides support for rendering mathematical formulas on-wiki via texvc and other backends. It was a part of the core MediaWiki software until MediaWiki 1.18, r85706. See also the related bug #14202 on Bugzilla.

Installation

 * 1) Compile texvc ( Don't have permission to compile code in your environment? read the see also section below )
 * 2) Add the following to LocalSettings.php:
 * 3) you might also have to add
 * 4) Run update.php as you would if you were upgrading:
 * 5) Installation can now be verified through your wiki's Special:Version page

Configuration settings
The following variables can be defined in LocalSettings.php after calling require_once("$IP/extensions/Math/Math.php"):

MathJax
From 1.19/1.20, the Math extension supports rendering via MathJax, a client-side JavaScript library for parsing latex or mathml code and producing in-browser representation using the browser's native support for HTML+CSS, or MathML, or SVG.

This can render math expressions more sharply (using subpixel antialiasing) and larger (scaling up for zoomed view, printing, or high-resolution screens).

Set $wgUseMathJax to enable MathJax rendering mode; it is still somewhat experimental. For now, users will have to opt in to MathJax on their preferences. In the future we hope to make it the default rendering mode.


 * Settings

LaTeXML
A convenient option to render LaTeX is to use the LaTeXML web service. This service converts LaTeX to high quality MathML.

You can enable the LaTeXML rendering option with the following settings A short guide to install LaTeXML on your own server can be found here: Install LaTeXML
 * Settings

MediaWiki 1.19.2 Work-Around
Upon saving pages with a formula wrapped in the  tag, users with MediaWiki version 1.19.2 receive the error   using the prescribed Math extension version. A working copy can be obtained using this method:

cd extensions git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions/Math.git cd Math git reset --hard 29a0a80e8fbb2d33507760075e4da9103439cbd9