[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX-devel] Label prefix for customized environments
From: |
Arash Esbati |
Subject: |
Re: [AUCTeX-devel] Label prefix for customized environments |
Date: |
Sat, 19 Sep 2015 22:19:15 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 |
Hi Tassilo,
Tassilo Horn <address@hidden> writes:
> Arash Esbati <address@hidden> writes:
>> I have written a style for `newfloat.sty' (see attached) where I want
>> to associate new env's with the respective label prefix. My
>> understandig is that this done via `LaTeX-label-alist'. So I add new
>> env's to this variable with the `LaTeX-newfloat-auto-cleanup'
>> function. When I load a tex file like below, I still get the `sec:'
>> prefix for a figure-like env. Any hint?
>
> Most probably the label/reference handling is done by reftex not auctex
> (`reftex-plug-into-AUCTeX' set to t),
Indeed, I have reftex plugged into AUCTeX. Thanks for the
clarification.
> and then `reftex-label-alist' is your friend. Or rather
> `reftex-label-alist-builtin' in order to have the former be completely
> in the user's hands.
What would be best practice for a style? Update `LaTeX-label-alist' for
non-reftex users and check if `reftex-label-alist' is bound and then
update it?
Best, Arash