move latex stuff into own file