convert math.md to math.tex