add latex macros to the latex preamble too.

we need to come up with a way to keep the latex preamble and the mathjax macros in sync.