Rewrote the tex file