added latex math support