added latex support.