Converts typed math to LaTeX