Wednesday, June 13, 2012

MathJax = outstanding.

I've just found MathJax, which is a javascript-based rendering plug-in for either LaTeX or MathML formatted equations. It took me a few minutes to get the syntax working right in blogger, but it seems pretty excellent. If you have scripts turned off, then LaTeX code should show up as LaTeX source. However, if you have scripts turned on, then equations can be rendered very nicely, and can either be in-line, like this: \( -\frac{\hbar^2}{2 m}\nabla^{2} \Psi = E \Psi \), or as display equations, like this: \[ \nabla \cdot \mathbf{B} = 0. \] I'm going to have to donate money to these people - they've done a really nice job.


Hamilton said...

Thanks! This does actually look really good. I'm surprised. I assume you have to have the script running on your web page. Is that correct? I like that the equations are inline and not pictures as when using Google charts.

Douglas Natelson said...

Yes, I have the relevant script call incorporated into the html template that blogger uses. The script is actually grabbed from the mathjax site (so I suppose if they fold I'm out of luck and would have to find another place to host it).

msrosyidi said...

Excuse me, let me try if it works in comment: