Test generating LaTeX pdf