restore thesis.tex