Fix some layout and clean up latex.