You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to use backtick character ` as triggers for some snippets in LaTeX
For e.g., I would like to have the following snippet
context math(context)
snippet `a "alpha" iA
\alpha
endsnippet
(The reason for this requirement is that VimTeX by default comes with the backtick key as trigger expansion for commonly used greek symbols in LaTeX and I would like to use the same keybindings as far as possible across different platforms. Moreover, Latex Workshop currently provides trigger expansion of greek symbol snippets using @ which is an additional key press as compared to the backtick `)
At present, in LaTeX Workshop, the backtick key gets autocompleted due to the following setting:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I would like to use backtick character ` as triggers for some snippets in LaTeX
For e.g., I would like to have the following snippet
(The reason for this requirement is that VimTeX by default comes with the backtick key as trigger expansion for commonly used greek symbols in LaTeX and I would like to use the same keybindings as far as possible across different platforms. Moreover, Latex Workshop currently provides trigger expansion of greek symbol snippets using
@
which is an additional key press as compared to the backtick `)At present, in LaTeX Workshop, the backtick key gets autocompleted due to the following setting:
in latex-language-configuration.json. See here
As a result, when I press backtick, I end up with `|' where | is the cursor position.
Pressing
a
after this expands to:\alpha '
After trigger expansion, is it possible to automatically delete the trailing
'
so that one is left with\alpha
?Thank you.
Beta Was this translation helpful? Give feedback.
All reactions