add latex support