fixed end{document} with indented headings