Well, what is suggested works for the pdf output, but then MathJax doesn't render anymore. I'll send a PR that makes `\LaTeX` usable as a math macro.