Add .tex file generation