Want to display MathML? MathJax
Last update on .
We have lots of MathML from the DocBook manuals for PyOpenGL. The latest versions of the manuals are now using MathJax to provide rendering of the matrices, equations, etceteras (see, for example, the glRotate manual page). We've previously had to tell people to update/replace their browser or install a MathML-specific plugin. This solution will (hopefully) eliminate that need. A single script is added to each Manual Section which includes any MathML-prefixed element. The script is served from MathJax' CDN and "just works" (at least, that's the theory, my limited tests seem to bear it out, though).
Comments are closed.
Pingbacks are closed.
Tim on 02/08/2012 8:37 a.m. #
Just a note (mathjax is great!); you can use straight LaTeX in xhtml pages too and mathjax will display it just as it does mathml.
Also, there is a mathjax plugin for Sphinx so now that type of documentation can easily contain beautiful mathematics.
Avis on 02/10/2012 8:37 a.m. #
Great article, totally what I wanted to find.