evil-tex icon indicating copy to clipboard operation
evil-tex copied to clipboard

Is it possible to add a toggle from display math to equation* ?

Open maikol-solis opened this issue 2 years ago • 2 comments

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?

maikol-solis avatar Jul 07 '22 11:07 maikol-solis

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*").

ymarco avatar Jul 07 '22 12:07 ymarco

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.

maikol-solis avatar Jul 07 '22 14:07 maikol-solis

Closing due to lack of discussion

ymarco avatar Dec 03 '22 16:12 ymarco