[Mediawiki-l] MediaWiki & LaTeX

Martin Jambon martin_jambon at emailuser.net
Tue Feb 21 19:39:34 UTC 2006

On Tue, 21 Feb 2006, Sigbert Klinke wrote:

> Hi,
> I know that a LaTeX plug-in for MediaWiki is available. Does anyone know
> why Ocaml is used ? From my point of view latex+ImageMagick is sufficient.

You could notice that simple formulas like "y=x+2" are not rendered using 
an image, but directly using HTML (in the default config at least). texvc 
returns several formats, and then mediawiki chooses which one is the most 
suitable according to the user's preferences.

Try that:

$ ./texvc /tmp /tmp '2+2' iso-8859-1 2>/dev/null
Cfa50b8b616463173474302ca3e63586b2 + 2<mn>2</mn><mo>+</mo><mn>2</mn>
$ ./texvc /tmp /tmp '\sqrt{2}' iso-8859-1 2>/dev/null

(and see math/README for the explanation of the format)


Martin Jambon, PhD

Visit http://wikiomics.org, the Bioinformatics Howto Wiki

More information about the MediaWiki-l mailing list