Justin's Blog

February 27, 2012

I just stumbled upon a great solution to rendering math in multiple browsers. MathJax uses JavaScript to interpret MathML and LaTeX on your website and display it in any browser.

To begin using it, just paste the following into your header. (For those of you who use wordpress, that's your header.php file, which you can find under Appearance > Editor > Header ).

<script type="text/javascript"

The best place for it is right above the </head> tag.

That's it! Your math will now be displayed properly to anyone with JavaScript enabled. If you use MathML, your math will be displayed properly to anyone who uses Firefox, even if they do not enable JavaScript.

If you want to optimize your installation, MathJax can also be configured.

Creative Commons License Special thanks to glyphicons