- Texvc
The program texvc (TeX validator and converter) validates (AMS)
LaTeX mathematical expression s and converts them toHTML ,MathML , or PNG graphics. It was written byTomasz Wegrzanowski and is integrated intoMediaWiki .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 againstcross-site scripting and other potential security issues. In addition, texvc provides some extensions to standard AMSLaTeX, such ascodes
for HTML math character entities (for example,Σ
→Sigma
) which have different names inLaTeX .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 ofMozilla . While it should be legible, it might not look very good.There is also limited support for exporting toMathML ).Texvc is written in OCaml, along with
PHP code to integrate it with the rest of MediaWiki. It usesdvipng (instead of the commonly used combination ofImageMagick anddvips ) to convert LaTeX's output to PNG files. Like the rest of MediaWiki, it is available under the terms of theGNU GPL from [http://www.mediawiki.org/wiki/MediaWiki the MediaWiki site] .External links
* [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/math/README?view=markup The texvc README file in SVN]
* [http://meta.wikimedia.org/wiki/Help:Formula The notation accepted by texvc]
* [http://meta.wikimedia.org/wiki/Troubleshooting_math_errors Troubleshooting math errors]
* [http://www.mediawiki.org/wiki/Manual:Enable_TeX/problems Problems with texvc]
*
Wikimedia Foundation. 2010.