update tex file