clean up tex file