## Switching from MathJax to KaTeX

Apr 7, 2018

For several years, I’ve used MathJax on this blog to typeset mathematical formulae in LaTeX notation. MathJax is fully compatible with LaTeX, and makes it simple to create beautifully typeset equations such as the following:

\[ \rho = \frac{1}{2} \left( \sqrt{2} \sqrt{\lambda+2} + \sqrt{2} \sqrt{ \frac{ -2 \lambda - \lambda^2 + \sqrt{2} \sqrt{\lambda+2}}{\lambda+2}} \right) \]

MathJax is sophisticated, but it’s large and has a lot of dependencies. It’s not slow, but KaTeX is a lightweight drop-in replacement that’s even faster. I’ve switched to use KaTeX on this blog for speed and simplicity.