help-gnu-emacs
[Top][All Lists]

## Re: etags in tex files

 From: Óscar Fuentes Subject: Re: etags in tex files Date: Sat, 17 Jul 2021 20:33:55 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Colin Baxter <m43cap@yandex.com> writes:

> Hello,
>
> I like to use etags in tex files in order to search for occurrences of
> equation labels. This works well if the label is a string of only
> digits and/or letters, say \label{123abc}. However, if there's a colon
> in the label, say \label{123:abc} then etags will only search for the
> portion of the string before the colon, i.e. 123.
>
> Is there any way in which I can configure etags to recognise everything
> with the curly brackets of a \label? I could always use grep but I like
> etags and would like to stick with them.

Dunno about (c|e)tags, but other implementations such as Universal Ctgas
lets you to define your own language. It is quite simple and works fine.