compile .tex file