Resets LaTeX document