auctex-devel
[Top][All Lists]
Advanced

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

Re: reftex does not support nameref


From: Uwe Brauer
Subject: Re: reftex does not support nameref
Date: Sat, 11 Nov 2023 20:21:27 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

>>> "AE" == Arash Esbati <arash@gnu.org> writes:

> Hi Uwe,
> Uwe Brauer <oub@mat.ucm.es> writes:

>> Although AuCTeX supports nameref, reftex does not.

> Then we should add support for it to RefTeX.

>> I presume adding some lines to the nameref.sty file of the sort
>> 
>> (when (featurep 'reftex-vars)
>> 
>> ;; Add a new reference style
>> (add-to-list 'reftex-ref-style-alist
>> '("Nameref" "nameref" (("\\nameref" ?n)))
>> t)

> I don't think we can do this; we would hard-code the key (?n is used
> anyway, but that doesn't matter now).  So a viable way for me is too add
> the entry for nameref in RefTeX and then activate it inside nameref.el
> with:

>> ;; And activate it
>> (and LaTeX-reftex-ref-style-auto-activate
>> (fboundp 'reftex-ref-style-activate)
>> (reftex-ref-style-activate "Nameref")))


Ok I can understand this argument, the only downside is:

    1. I can download and compile AucTeX myself

    2. But not reftex since it is a part of GNU emacs, and I don't want
       to recompile emacs right now (for some compatibility reasons with
       older packages I still use).

> What do others think?

> Best, Arash


-- 
I strongly condemn Hamas heinous atrocities on Israel, especially the 
despicable pogroms.
I strongly condemn Putin's war of aggression against Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the NATO membership of Ukraine.
I support the EU membership of Ukraine. 
https://addons.thunderbird.net/en-US/thunderbird/addon/gmail-conversation-view/

Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

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