Fix LaTeX errors.