-
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
Setup text argument in user-defined command #2898
Comments
Hi!
I believe you can solve this with the let g:vimtex_syntax_custom_cmds = [
\ {'name': 'beforetext', 'mathmode': v:true,
\ 'nextgroup': 'texMathTextArg'},
\]
Thanks for the kind words! <3 |
Thank you! I must've missed it, I just started using the useful concealing tools and changed the highlighting groups, but didn't stumble on that. Cheers! :-) |
I'll be the first to admit it's easy to miss things when the documentation has reached 7000 lines of text... in any case, no problem! |
I have a custom
\beforetext
command that adds text on the left side of an equation. Following #2755, I'd like to know how to setup a local syntax to tellvimtex
that what's inside is text. I looked up the commit you made forwitharrows
and could easily reproduce it, but my command is not attached to any package. Would you be able to point me in the right direction to do that?As always, thank you for this fantastic plugin and your maintenance of it :-).
The text was updated successfully, but these errors were encountered: