[latex3-commits] [git/LaTeX3-latex3-hyperref] cleanup-patches: remove an now unneeded varioref fix (2da5b41)

Ulrike Fischer fischer at troubleshooting-tex.de
Mon Jul 19 23:17:02 CEST 2021


Repository : https://github.com/latex3/hyperref
On branch  : cleanup-patches
Link       : https://github.com/latex3/hyperref/commit/2da5b412a9219c0cbb4a5b4ff387f531ff2c8677

>---------------------------------------------------------------

commit 2da5b412a9219c0cbb4a5b4ff387f531ff2c8677
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Mon Jul 19 23:17:02 2021 +0200

    remove an now unneeded varioref fix


>---------------------------------------------------------------

2da5b412a9219c0cbb4a5b4ff387f531ff2c8677
 ChangeLog.txt |  2 ++
 hyperref.dtx  | 16 +---------------
 2 files changed, 3 insertions(+), 15 deletions(-)

diff --git a/ChangeLog.txt b/ChangeLog.txt
index 15f488a..6e5d509 100644
--- a/ChangeLog.txt
+++ b/ChangeLog.txt
@@ -13,6 +13,8 @@ XXXX-XX-XX Ulrike Fischer/David Carlisle
     * removed patches for spanish, they are now in spanish.ldf
     * removed hyperref-langpatches.sty, it is now empty and
     unneeded.
+    * removed a fix for varioref which is no longer needed since
+    2019.
 
 
 2021-06-07 Ulrike Fischer/David Carlisle
diff --git a/hyperref.dtx b/hyperref.dtx
index ebe4bff..d7c3c63 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -10707,6 +10707,7 @@
 %
 %    Package nameref uses five arguments for the ref system.
 %    Fix provided by Felix Neubauer (\Email{felix.neubauer at gmx.net}).
+%    This fix will no longer be needed with latex 2021-11-15.
 %    \begin{macrocode}
 \AtBeginDocument{%
 \def\Hy at varioref@undefined{{??}{??}{}{}{}}
@@ -10718,21 +10719,6 @@
     \edef#1{\getpagerefnumber{#2}}%
   }%
 }{}
-%    \end{macrocode}
-%
-%    Package varioref redefines \cs{refstepcounter}, thus it needs
-%    fixing, if the package is loaded *after* hyperref.
-%    \begin{macrocode}
-\def\Hy at varioref@refstepcounter#1{%
-  \stepcounter{#1}%
-  \protected at edef\@currentlabel{%
-    \csname p@#1\expandafter\endcsname\csname the#1\endcsname
-  }%
-}
-  \ifx\refstepcounter\Hy at varioref@refstepcounter
-    \let\H at refstepcounter\refstepcounter
-    \let\refstepcounter\Hy at saved@refstepcounter
-  \fi
 }
 %    \end{macrocode}
 %





More information about the latex3-commits mailing list.