$ ... $ for inline math and
\[ ... \] for display math. I'd like to be able to toggle between the two by selecting the text and calling
However, as I understand it, this function only allows the cycles
$ ... $ <-> $$ ... $$ <-> ...
\( ... \) <-> \[ ... \] <-> ...
(this behaviour is controlled by setting the variable
Is there any way to customize this behaviour to my needs (it would also be useful to extend it to other equation enviroments such as