Fix for LaTeX files. Ready for review.