I am using extensively the new label completion macro which is really very good and fast. I have a problem though: all my equation labels have the form \label{eq:labelname} and the macro chokes on them. If I type
labelname
then invoke the opt-esc shortcut and chose 1 i.e. "label based on current word", I get
\${1:eqref}{eq:labelname}
Clearly the colon is the problem. Any workaround, apart from changing my label style (which is one of the standard ones, however, used e.g. by Auctex)?
Thanks, Piero
On Jan 28, 2007, at 11:55 AM, Piero D'Ancona wrote:
I am using extensively the new label completion macro which is really very good and fast. I have a problem though: all my equation labels have the form \label{eq:labelname} and the macro chokes on them. If I type
labelname
then invoke the opt-esc shortcut and chose 1 i.e. "label based on current word", I get
\${1:eqref}{eq:labelname}
Clearly the colon is the problem. Any workaround, apart from changing my label style (which is one of the standard ones, however, used e.g. by Auctex)?
No, the problem was that the command was not inserting as snippet in the case of eqref, but only in the case of ref instead, so it was showing as plain text what should be interpreted as a snippet. This is now fixed.
Thanks, Piero
Haris