The program texvc (TeX validator and converter) validates (AMS) LaTeX mathematical expressions and converts them to HTML, MathML, or PNG graphics. It was written by Tomasz Wegrzanowski and is integrated into MediaWiki. MediaWiki uses texvc to render mathematical formulas and similar content. The aim is to allow a single syntax for math markup while allowing a range of output formats to be generated, and to provide protection against cross-site scripting and other potential security issues. In addition, texvc provides some extensions to standard AMSLaTeX, such as <code>\codes</code> for HTML math character entities (for example, <code>Σ</code> → <code>\Sigma</code>) which have different names in LaTeX. The HTML-code generated by texvc is based on three classes. # Conservative: the code should look good and work well in most browsers. # Moderate: the code should work and look good in reasonably modern browsers. # Liberal: the code is HTML, but it is designed for very recent browsers, such as newer versions of Mozilla. While it should be legible, it might not look very good. There is also limited support for exporting to MathML. Texvc is written in OCaml, along with PHP code to integrate it with the rest of MediaWiki. It uses dvipng (instead of the commonly used combination of ImageMagick and dvips) to convert LaTeX's output to PNG files. Like the rest of MediaWiki, it is available under the terms of the GNU GPL from the MediaWiki site. For editing MediaWiki mathematical formulas, see Help:Displaying a formula.
|