how to write a LaTeX document