added more latex support