Format headings, remove some LaTeX stuff