home tags about

Update on MathJax

Posted on: 20 November 2011 in mathjax, latex, github-pages, javascript

MathJax has come a long way since I last looked at it. There is now a CDN hosting the js files, which makes calling it really really easy. It’s being adopted by GiHub for their wiki engine.

Using it with markdown can cause a few bumps, but there seems to be a bunch of ways around this:

Writing a block of %%\LaTeX%% like this

$$
\begin{aligned}
\dot{x} & = \sigma(y-x) \\
\dot{y} & = \rho x - y - xz \\
\dot{z} & = -\beta z + xy
\end{aligned} 
$$

will render like this

$$ \begin{aligned} \dot{x} & = \sigma(y-x) \ \dot{y} & = \rho x - y - xz \ \dot{z} & = -\beta z + xy \end{aligned} $$