Fix pdf -> latex