Tidy up the .tex file.