add MathML semantics and move annotations to end
group TeX math into mrow