Fix LaTeX escaping