[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: some new extension of xr-hyperref/hyperref
From: |
Arash Esbati |
Subject: |
Re: some new extension of xr-hyperref/hyperref |
Date: |
Sat, 02 Dec 2023 09:52:49 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Uwe Brauer <oub@mat.ucm.es> writes:
> Two remarks:
>
> 1. It should be *TeX-add-symbols* not *TeX-add-symbol*, right?
Right.
> 2. When I put this file in my private auctex style list, compile it,
> restart emacs open a file that contains \usepackage{refcount}
> I obtain an error that I attach.
Wrong placement of code; it should read:
--8<---------------cut here---------------start------------->8---
(TeX-add-style-hook
"refcount"
(lambda ()
(TeX-add-symbols
'("setcounterref" TeX-arg-counter TeX-arg-ref)
'("getrefbykeydefault"
TeX-arg-ref
(TeX-arg-completing-read ("page" "title" "name" "anchor" "url"))
"Default"))
;; RefTeX reference style
(and LaTeX-reftex-ref-style-auto-activate
(fboundp 'reftex-ref-style-activate)
(reftex-ref-style-activate "Refcount")))
TeX-dialect)
--8<---------------cut here---------------end--------------->8---
> But then shouldn't something like this be added to nameref also, so that
> the private setting
>
> (add-to-list 'reftex-ref-style-alist
> '("Nameref" "nameref" (("\\nameref" ?m)))
> t)
>
> Would work as well?
Yes, we can add something like that to nameref.el once we have an
agreement on a working setup.
Best, Arash