Tidy up the latex.