add switch for inline math completion