update LaTeX formatting to make mathjax happy