# Now using MathJax!

2011-02-01, last updated 2014-03-04

It’s been a while since I have posted anything on this site and thought it was time to update the site. In the process I changed latex processor from QuickLatex, which fetches images from an external server, to a clientside javascript solution: MathJax.

A friend of mine mentioned it to me and it is a miracle solution; a complete Teχ engine in pure javascript.

## Examples:

The definition of expectation value from my quantum field theory lecture notes:

$\langle f \rangle \stackrel{def}{=} \frac1{Z_A} \int_{-\infty}^{\infty} d^N \vec x f(\vec x) e^{-\frac12 \vec x^T \cdot A \cdot \vec x}$

The Ackermann function:

\begin{aligned} n - 1 & m = 0 \\ A(m-1,1) & m > 0 \wedge n = 0 \\ A(m-1,A(m,n-1)) & m > 0 \wedge n > 0 \end{aligned}

Euler’s identity, $e^{i \pi}+1 =0$ which everyone knows and loves.

Einstein field equations:

$R_{\mu \nu} - \frac12 g_{\mu \nu}\,R + g_{\mu \nu} \Lambda = \frac{8 \pi G}{c^4} T_{\mu \nu}$

Again, using unicode μ, ν signs instead of Lateχ $\mu \nu$.

$R_{\mu \nu } - \frac12 g_{\mu \nu }\,R + g_{\mu \nu } \Lambda = \frac{8\pi G}{c^4} T_{\mu \nu }$

## Conclusion:

MathJax gives good results on my browser; The equations play nicely with the fontsize and baseline, which image based solutions do not. But the alignment is not yet as good as real Lateχ, but still good enought. When I use real greek identities instead of their Lateχ commands the result is not italicized properly, but this is still better than the unicode handling of plain Lateχ. Another problem is that MathJax interacts poorly with the hypenator plugin, so I had to disable it untill I fix the hypenator.