Atom-LaTeX icon indicating copy to clipboard operation
Atom-LaTeX copied to clipboard

ENH: Improved suggestions for environments

Open mcocdawc opened this issue 7 years ago • 1 comments

Currently the additionalInserts for environments are specified like this:

    latex:
      figure:
        text: 'figure'
        additionalInsert: '\\caption{title}'

It would be great to have similar behaviour as the self defined snippets by atom. This means that it should be possible to specify a point where the cursor jumps to upon pressing tab. Something along the line of:

    latex:
      figure:
        text: 'figure'
        additionalInsert: '\\caption{${1:title}}'

Unfortunately this does not work and I don't know enough coffescript to implement it myself.

mcocdawc avatar Feb 07 '18 12:02 mcocdawc

Can do, a bit busy right now - so no promises on timeline :-)

ashthespy avatar Feb 08 '18 11:02 ashthespy