## MathJax and Org mode @ Adrian Tritschler · Monday, May 14, 2018 · 1 minute read · Update at May 14, 2018 · I’d bookmarked this one a few weeks ago, a tutorial on using MathJax to embed equations in pages. Some playing around and I found the correct level of escapes needed to get the MathJax code through the Org mode interpretation into the markdown intermediary, and then fed into hugo. The inline code in the Org mode source needs to be opened by two backslashes and a left brace, and then closed by two backslashes and and a right brace. If I’ve got his correct, then $$\sqrt{2}$$ should appear.

Coming via https://math.meta.stackexchange.com/questions/5020/mathjax-basic-tutorial-and-quick-reference, is some MathJax testing. Here’s an inline formula $$\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6}$$ which should be included inside the text. (I’m not sure what happens if I split the source across two lines). A stand alone equation is below:

$$\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6}$$

(which is display mode). $$\sqrt{x^5}$$ should appear here.

Here are the first three Greek letters; α, β, γ … and the last, ω

When $$a \ne 0$$, there are two solutions to $$ax^2 + bx + c = 0$$ and they are $$x = {-b \pm \sqrt{b^2-4ac} \over 2a}.$$ # …The Owner

There’s not much more I can add to who I am.

# …The Site

I experiment. I play. I write and I take pictures. Some of the site is organised around topics, other parts are organized by date, then there’s always the cross-references between them.

Long ago it started as a learning experiment with a few static HTML pages, then I added a bit of server-side includes and some very ugly PHP. A hand-built journal/blog on top of that PHP, then a few experiments in moving to various static publishing systems. I’ve never wanted a database-based blogging engine, so over the years I’ve tried php, nanoblogger, emacs-muse, silkpage and docbook before settling on emacs org-mode for writing and jekyll for publishing. But the itch remained… I never really liked jekyll and the ruby underneath always seemed so much black magic. So now the latest incarnation is org-mode and hugo.