| |||||||||
Texvc (TeX validator and converter) is a program which validates AMSLaTeX math expressions and converts them to HTML, MathML or PNG graphics.
It is used by the MediaWiki wiki software to render mathematics. The aim is to allow a single syntax for math markup, whilst allowing a range of output formats to be generated. Texvc is also designed to provide protection against cross-site scripting and other potential security holes.
Texvc provides some extensions to AMSLaTeX - such as providing \codes for HTML math &entities; which have a different name in LaTeX.
Texvc rates generated HTML into three classes:
There is currently limited support for exporting to MathML
Texvc is written in Ocaml, and there's also some PHP code to integrate it with the rest of MediaWiki. It uses ImageMagick and Ghostscript to convert LaTeX's output to PNGs.
Like the rest of MediaWiki, it is available under the terms of the GNU GPL, from http://BambooWeb.sourceforge.net/