Math rendering for exams (take 2)