Added .tex file generation