Generated math equations are being displayed as LaTeX code rather than formatted equations. Any suggestions?