group TeX math into mrow