[Tex/LaTex] Comparing MathJax and MathML

mathjaxmathmlonlinetools

My organisation needs to update its website, which, in particular, will host a number of blogs and wikis on mathematics-related themes. We need to use some way of rendering of LaTeX on our web pages. Given a choice of MathJax and MathML, which one would you recommend? Any other solutions?

Best Answer

It seems that to use MathML, I ("hypothetical I") need to use a Ruby program called iTeX

There seem to be some very confused descriptions of MathML, which doesn't require iTeX or Ruby or any server side configuration at all.

You can't really compare MathJax and MathML as they are different things,

MathJax is a an implementation of a client side parser for both a TeX-like syntax and MathML.
Then (which ever input syntax is used for input) it can use various rendering methods including native MathML in the browser (including IE+MathPlayer, or recent WebKit builds, not just Firefox) or it can use CSS rendering.

Currently, if you don't want to use some JavaScript such as MathJax (or the simpler, less ambitious asciimathml) then you do need to serve the files as well formed XHTML (not necessarily valid XHTML, despite the comment above) however this is changing, MathML parsing is built into HTML5 so Firefox 4 (beta) for example will render MathML in an HTML page not just XHTML. So going forward a year or two one would expect HTML+MathML pages to not require any JavaScript or server side support at all. whereas a TeX like syntax (like a wiki) will always require some additional JavaScript or server processing.

Whether you want to use a linear TeX-like syntax or the XML/HTML syntax of MathML is pretty much a matter of choice, it is exactly analogous to a choice of whether to use a linear wiki style markup for your web pages, or to directly code (or generate) HTML markup. Sometimes one is more appropriate than the other, many sites use both wiki and traditional HTML markup, depending on the context.

David

(co editor of mathml2 and 3, and before that co-developer of latex2e, and before that a long time association with the Mathematics department at Manchester, and still an LMS member should you want any discussion offline at any stage about MathML, I'm easy enough to find:-)