Update the tex file