Math rendering for exams (take 1)