Complete MathJax formula formatting