Display math preview in a popover