added latex support