Math rendering for exams (take 4)