MediaWiki & LaTeX

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

MediaWiki & LaTeX

Sigbert Klinke
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.

Thanks in advance

  Sigbert Klinke
_______________________________________________
MediaWiki-l mailing list
[hidden email]
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Reply | Threaded
Open this post in threaded view
|

Re: MediaWiki & LaTeX

Martin Jambon
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
+ef5590434a387b3c4427e09d5b08baaf

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


Martin

--
Martin Jambon, PhD
http://martin.jambon.free.fr

Visit http://wikiomics.org, the Bioinformatics Howto Wiki
_______________________________________________
MediaWiki-l mailing list
[hidden email]
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l