Manual:$wgUseTeX

Details
Enables the use of (TeX) tags.

To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of the MediaWiki package) and have latex, dvips, gs (ghostscript), and convert (ImageMagick) installed and available in the PATH. Please see math/README for more information. It is also necessary to set $wgEnableUploads to true.