Mosè Giordano <[email protected]> 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
environments?

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).

Bye,
Tassilo


_______________________________________________
auctex-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex-devel

Reply via email to