Distinguish between inline math and display math.