added latex feature