[TxMt] Re: LaTeX section header label

Allan Odgaard mailinglist at textmate.org
Fri Aug 15 10:32:11 UTC 2014


On 13 Aug 2014, at 17:43, Ross Ahmed wrote:

> In a .tex file, typing sec + tab prints code for a section header and 
> label. Very handily, the label for the section header syncs with the 
> actual section header the first time the section is typed. However, 
> thereafter, if the section header changes, the label doesn't change. 
> Is it possible to always have the label change whenever the section 
> header changes?

Not really. The easiest would probably be an “update label” command 
you could call after making changes to your header, but that would 
require a bit of scripting language knowledge.


More information about the textmate mailing list