Math rendering for exams (take 3)