[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Upcoming \footref macro in LaTeX kernel
From: |
Arash Esbati |
Subject: |
Upcoming \footref macro in LaTeX kernel |
Date: |
Fri, 26 Feb 2021 15:22:32 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 |
Dear all,
next LaTeX release will have a \footref macro built-in[1]
\subsection{Producing several footnote marks to one footnote}
It is sometimes necessary to reference the same footnote several
times, i.e., produce several footnote marks with the same number or
symbol. This is now always possible by placing a \cs{label} into the
\cs{footnote} and reference it with the command \cs{footref}
elsewhere. This way marks refering to footnotes anywhere on the page
(including those in \texttt{minipage}s) can be generated. In the past
this command was only available with certain classes or when loading
the \pkg{footmisc} package.
%
\githubissue{482}
Adding support within AUCTeX is easy. Within RefTeX, we have to tweak
`reftex-ref-style-alist' which is defined like this:
(defcustom reftex-ref-style-alist
'(("Default" t
(("\\ref" ?\C-m) ("\\Ref" ?R) ("\\pageref" ?p)))
("Varioref" "varioref"
(("\\vref" ?v) ("\\Vref" ?V) ("\\vpageref" ?g)))
("Fancyref" "fancyref"
(("\\fref" ?f) ("\\Fref" ?F)))
("Hyperref" "hyperref"
(("\\autoref" ?a) ("\\autopageref" ?u)))
("Cleveref" "cleveref"
(("\\cref" ?c) ("\\Cref" ?C) ("\\cpageref" ?d) ("\\Cpageref" ?D)))
("AMSmath" "amsmath"
(("\\eqref" ?e))))
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?
Best, Arash
Footnotes:
[1] https://github.com/latex3/latex2e/blob/develop/base/doc/ltnews33.tex
- Upcoming \footref macro in LaTeX kernel,
Arash Esbati <=