Correcting LaTeX errors