Now using MathJax!

Remco Bloemen

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.


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

f=def1ZAdNxf(x)e12xTAx \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:

n1m=0A(m1,1)m>0n=0A(m1,A(m,n1))m>0n>0 \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, eiπ+1=0e^{i \pi}+1 =0 which everyone knows and loves.

Einstein field equations:

Rμν12gμνR+gμνΛ=8πGc4Tμν 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μν12gμνR+gμνΛ=8πGc4Tμν R_{\mu \nu } - \frac12 g_{\mu \nu }\,R + g_{\mu \nu } \Lambda = \frac{8\pi G}{c^4} T_{\mu \nu }


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.