evil-tex
evil-tex copied to clipboard
Is it possible to add a toggle from display math to equation* ?
Following this discussion (https://tex.stackexchange.com/a/154968/42627) the align* environment add too much horizontal and vertical space in the text (besides other glitches).
A natural toggle for mtM (or another key) could be equation* to preserve the compactness in the text.
What do you think?
Following this discussion (https://tex.stackexchange.com/a/154968/42627) the align* environment add too much horizontal and vertical space in the text (besides other glitches).
A natural toggle for mtM (or another key) could be equation* to preserve the compactness in the text.
mtM is already bound to toggle between math and align* envs. I use it quite a lot when realizing my equation can't fit in a single line and needs to be broken up.
I'm not strictly against making this a new toggle but - is there any difference between [...] display math and equation* envs? I just always use [...], I don't see the need for toggling between that and equations*s.
Nevertheless, right you can do what you want using evil-surround with csmeE ("change surrounding math to env equation*").
Thanks for your answer.
is there any difference between \[...\] display math and equation* envs? I just always use \[...\], I don't see the need for toggling between that and equations*s.
Technically, there is no difference when amsmath is loaded, but I found very easy to toggle equation* to equation (mte) if I want it numbered.
But yes, the csmeE(e) options are fine too.
Closing due to lack of discussion