cleanup latex stuff