re #9653 improve math formatting