added latex generator