[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX-devel] Manage auto insertion of labels

From: Tassilo Horn
Subject: Re: [AUCTeX-devel] Manage auto insertion of labels
Date: Thu, 14 Aug 2014 09:16:57 +0200
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux)

Mosè Giordano <address@hidden> writes:

Hi Mosè,

>> You mean, if the environment or sectioning command is not in
>> `LaTeX-label-alist' or `LaTeX-section-label', then no label will be
>> prompted?
> Exactly!
>> That might be an idea...
> The attached patch is more or a less a re-ordering of the original
> `LaTeX-label': the prefix is calculated at the beginning of the
> function and if it's non nil the label is inserted, with RefTeX or
> AUCTeX built-in mechanism.  The second argument of `LaTeX-label' makes
> it possible to have different rules for environments and sections with
> the same name.

Looks good to me.  But there's one thing I'm not sure.  Styles like
amsmath.el add environments to `LaTeX-label-alist', so what should a
user do, e.g., to tell auctex that she doen't want labels for align

AFAICS, she would need to create an own amsmath.el style file in
`TeX-style-private' which removes the "align" entry from
`LaTeX-label-alist'.  Could you please check if that works, and if so,
document it.  (Or if there is a better way, that's also fine).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]