add final tex in case writelatex goes down