There's a language for it (LaTeX).
It looks like this:
\int_{-\infty}^{\infty} e^{-x^2}\,dx = \sqrt{\pi}
It looks like this:
\int_{-\infty}^{\infty} e^{-x^2}\,dx = \sqrt{\pi}
i prefer to do it by hand (and in some environments you can also define aliases/macros so that the different constructs you're dealing with are typeset consistently and you don't have to re-type everything)