Mathematical symbols and equations with MathJax rendering of LaTeX symbols

I wanted (and still want) to keep this page/blog as simple as possible, which meant not including any JavaScript at all or anything “fancy”. So I’d have text, figures, and any mathematical symbols or equations would just be figures as well from the very handy LaTeXiT. However, being a regular \( \LaTeX \) user it would be very convenient to be able to just write equations inline and display style so when googling I found out about MathJax. There are many howtos on google for how to incorporate the MathJax scripts into GitHub pages, and you can just copy a snippet into your default layout page, but it took me a little more work with the liquid tags to load the scripts only for posts where I set the mathjax flag, and here’s an example of trying to keep that simple.

It’s nice to be able to write simpler equations inline like this: \( e^{i\pi} + 1 = 0 \), or longer ones like Erwin Shrödinger’s wave equation:

\begin{equation} i \hbar \frac{\partial}{\partial t} \Psi (x,t) = -\frac{\hbar^2}{2m} \nabla^2 \Psi (x,t) + V(x) \Psi (x,t) \end{equation}

so anyway, since I had a test post to include the scripts and write some equations I’m going to leave this here in case it is helpful for someone trying to blog with some pretty math.

-- caetano, May 17, 2018