compiling latex automagically