Texvc



         


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:

  1. "conservative" - should work and look good in most browsers
  2. "moderate" - should work and look good in reasonably modern browsers
  3. "liberal" - it is HTML, but you're lucky if it works on anything other than, say, the newest Mozilla; and while it should be legible, it might not look very good.

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/






  View Live Article   This article is from Wikipedia. All text is available under the terms of the GNU Free Documentation License