-
Notifications
You must be signed in to change notification settings - Fork 391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using \( ... \) as opposed to $ ... $ when toggling using ts$ #3040
Comments
First, you can change the desired toggle sequence with the option let g:vimtex_env_toggle_math_map = {
\ '$': '\(',
\ '$$': '\[',
\ '\[': 'equation',
\ 'equation': '\(',
\ '\(': '\[',
\}
This would solve one part of your issue. The second part is currently not possible, but I could consider it. In my personal opinion, inline math I prefer not to add more options, but what you are asking would need more options. So I'm curious if you could reconsider if you really want this. |
Thanks for your help, and please do not feel like you must take more work in just because I ask, especially if it involves creating an option and maintaining it further down below. Let us think along if creating an option is necessary at all. I completely see why you have designed When I toggle from Toggling from I am actually curious of how people use the toggle from I thought that adding the
What I have in mind would add one extra layer without options: But please do not think I’m insisting on this, really. I just love your software, and the pleasure I get from writing papers with it. The discomfort I have is very minor, and there is no need to do any changes if you find the behaviour forceful or unnatural. I don’t even know how much work this entails, and if it makes the code harder to maintain. I would say that if we have to go for creating a new option, then I don’t think it’s worth it. |
Is your feature request related to a problem? Please describe it.
When toggling between equation environments using
ts$
, I find the move to$ ... $
ineffective: one comes from a multiple line equation, and when toggling to inline, vimtex puts into a single line. In the vast majority of cases I have to go back to the text, and modify it or re-format it.Describe the solution you'd like
I would like that
$ ... $
be replaced by\(...\)
, or the latter be added to the toggle list. I also would like that what is within the delimiters stay as is (no equation rearranging).The text was updated successfully, but these errors were encountered: