vimtex icon indicating copy to clipboard operation
vimtex copied to clipboard

Is it possible to not wrap math environments ?

Open berryoptml opened this issue 1 year ago • 3 comments

Often math equations lines become lot longer in syntax but much smaller after conceal. Often I feel if these lines weren't wrapped.

Can I somehow wrap only text lines but not block-math environments ?

berryoptml avatar Mar 04 '25 16:03 berryoptml

You need to be more specific. When you say "wrap", what do you mean?

lervag avatar Mar 04 '25 16:03 lervag

By "wrap" I mean long lines of texts are broken into multiple visual lines, after ":set wrap".

berryoptml avatar Mar 04 '25 21:03 berryoptml

Ah, ok. In this case, I don't think there is anything I can do. I don't know how to wrap only some lines, but not others - and I don't think it is even possible. Sorry!

In my personal experience, formatting LaTeX can be done in various ways. I suggest that you read :help vimtex-af-formatting and possible the links referred to from that section. I think you may find it interesting.

lervag avatar Mar 05 '25 10:03 lervag