[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Upcoming \footref macro in LaTeX kernel
From: |
Arash Esbati |
Subject: |
Re: Upcoming \footref macro in LaTeX kernel |
Date: |
Wed, 19 May 2021 09:12:28 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 |
Hi all,
Arash Esbati <arash@gnu.org> writes:
> Tassilo Horn <tsdh@gnu.org> writes:
>
>> Arash Esbati <arash@gnu.org> writes:
>>
>>> I suggest to change the "Default" entry like this:
>>>
>>> (("\\ref" ?\C-m) ("\\Ref" ?R) ("\\pageref" ?p) ("\\footref" ?t)))
>>>
>>> i.e., add \footref and bind it to t key. Any comment about tke key
>>> binding?
>>
>> Given that the more obvious ?f is already taken, both ?o and ?t are fine
>> with me.
>
> Thanks for your response. I think I like ?o even more. I will update
> AUCTeX when I have time and prepare a patch for RefTeX as well.
I revisited this question again and I propose the following change:
--8<---------------cut here---------------start------------->8---
diff --git a/lisp/textmodes/reftex-vars.el b/lisp/textmodes/reftex-vars.el
index 0d6bfb5d86..a8ca780b31 100644
--- a/lisp/textmodes/reftex-vars.el
+++ b/lisp/textmodes/reftex-vars.el
@@ -1059,7 +1059,7 @@ reftex-multiref-punctuation
(defcustom reftex-ref-style-alist
'(("Default" t
- (("\\ref" ?\C-m) ("\\Ref" ?R) ("\\pageref" ?p)))
+ (("\\ref" ?\C-m) ("\\Ref" ?R) ("\\footref" ?n) ("\\pageref" ?p)))
("Varioref" "varioref"
(("\\vref" ?v) ("\\Vref" ?V) ("\\vpageref" ?g)))
("Fancyref" "fancyref"
@@ -1079,7 +1079,7 @@ reftex-ref-style-alist
`reftex-ref-macro-prompt'.) The keys, represented as characters,
have to be unique."
:group 'reftex-referencing-labels
- :version "27.1"
+ :version "28.1"
:type '(alist :key-type (string :tag "Style name")
:value-type (group (choice :tag "Package"
(const :tag "Any package" t)
--8<---------------cut here---------------end--------------->8---
I'm voting for the key binding n since `reftex-label-alist-builtin' has
this entry:
("\\footnote[]{}" ?n "fn:" "~\\ref{%s}" 2
(regexp "footnotes?" "Fussnoten?"))
When hitting C-c ) the user then needs to press n twice to get the macro
and the labels completion. I think this is easier than hitting t or o
and then n.
Any comments? I will prepare a patch for Emacs master then.
Best, Arash
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Upcoming \footref macro in LaTeX kernel,
Arash Esbati <=