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: Arash Esbati
Subject: Re: reftex does not support nameref
Date: Sat, 11 Nov 2023 20:06:06 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

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

What do others think?

Best, Arash



reply via email to

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