[latex3-commits] [git/LaTeX3-latex3-hyperref] cleanup-patches: remove old varioref code (155ba95)
Ulrike Fischer
fischer at troubleshooting-tex.de
Mon Apr 11 00:11:16 CEST 2022
Repository : https://github.com/latex3/hyperref
On branch : cleanup-patches
Link : https://github.com/latex3/hyperref/commit/155ba95c7ee760093fb1543af5ecf68c48806ed6
>---------------------------------------------------------------
commit 155ba95c7ee760093fb1543af5ecf68c48806ed6
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Mon Apr 11 00:11:16 2022 +0200
remove old varioref code
>---------------------------------------------------------------
155ba95c7ee760093fb1543af5ecf68c48806ed6
hyperref.dtx | 31 +++----------------------------
1 file changed, 3 insertions(+), 28 deletions(-)
diff --git a/hyperref.dtx b/hyperref.dtx
index 2860d34..ca87b85 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -12551,10 +12551,8 @@
\Hy at AtBeginDocument{%
\@ifpackageloaded{varioref}{%
% \end{macrocode}
-% Test if we are running new 2019 varioref or old one:
+% This requires a new varioref (after 2019-09)!
% \begin{macrocode}
-%FMi
- \ifdefined\vp at gerefstar
\renewcommand\Vref at star[2][]{%
\begingroup
\let\T at pageref\@pagerefstar
@@ -12587,33 +12585,10 @@
\vpageref[#1]{#2}%
\endgroup
}%
-% \end{macrocode}
-% old varioref:
-% \begin{macrocode}
- \else
- \def\Vr at f#1{%
- \leavevmode\unskip\vref at space
- \hyperref[{#1}]{%
- \Ref*{#1}%
- \let\vref at space\nobreakspace
- \@vpageref[\unskip]{#1}%
- }%
- }%
- \def\vr at f#1{%
- \leavevmode\unskip\vref at space
- \begingroup
- \let\T at pageref\@pagerefstar
- \hyperref[{#1}]{%
- \ref*{#1}%
- \vpageref[\unskip]{#1}%
- }%
- \endgroup
- }%
- \fi
-%FMi -end mod
}{}%
}
-
+% \end{macrocode}
+% \begin{macrocode}
\DeclareRobustCommand*{\autopageref}{%
\@ifstar{%
\HyRef at autopagerefname\pageref*%
More information about the latex3-commits
mailing list.