Working with dictionary for environments, but must be first word of $...$, so cases must currently be split into separate $...$