add literate mathematical markup