-
Is it possible to write snippets that will intelligently insert curly braces in LaTeX, i.e. only when they are required? For example, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Mhhh, if you write a snippet for Even closer to what you want, you could use functionNodes enclosing the text behind the |
Beta Was this translation helpful? Give feedback.
Mhhh, if you write a snippet for
^
, you could do achoiceNode
which chooses between no delimiters and{
,}
(first example in this section does just that).Maybe make it auto-triggered, if you don't have a problem with possibly triggering it accidentially.
Even closer to what you want, you could use functionNodes enclosing the text behind the
^
to automatically recognize whether the delimiters are necessary or not, and insert them accordingly. The hard part here is to figure out when the delimiters are necessary (or is it? Maybe just"%d*"
already does it?)