improve latex to mathml parser