[latex3-commits] [git/LaTeX3-latex3-hyperref] cleanup-patches: surround varioref patch by fmt check (6b44c5f)

Ulrike Fischer fischer at troubleshooting-tex.de
Sun May 1 23:27:48 CEST 2022


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

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

commit 6b44c5f5bc87c8e9ac0bc972cf7ad8b70bde926a
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sun May 1 23:27:48 2022 +0200

    surround varioref patch by fmt check


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

6b44c5f5bc87c8e9ac0bc972cf7ad8b70bde926a
 hyperref.dtx | 26 +++++++++++++++-----------
 1 file changed, 15 insertions(+), 11 deletions(-)

diff --git a/hyperref.dtx b/hyperref.dtx
index 62430be..3ea409d 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -10695,17 +10695,21 @@
 %    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{{??}{??}{}{}{}}
-\@ifpackageloaded{varioref}{%
-  \def\vref at pagenum#1#2{%
-    \@ifundefined{r@#2}{%
-      \expandafter\let\csname r@#2\endcsname\Hy at varioref@undefined
-    }{}%
-    \edef#1{\getpagerefnumber{#2}}%
-  }%
-}{}
-}
+\@ifl at t@r\fmtversion{2021-11-15}
+ {}%
+ {
+   \AtBeginDocument{%
+   \def\Hy at varioref@undefined{{??}{??}{}{}{}}
+   \@ifpackageloaded{varioref}{%
+     \def\vref at pagenum#1#2{%
+       \@ifundefined{r@#2}{%
+         \expandafter\let\csname r@#2\endcsname\Hy at varioref@undefined
+       }{}%
+       \edef#1{\getpagerefnumber{#2}}%
+     }%
+   }{}
+   }
+ }
 %    \end{macrocode}
 %
 % \section{Package longtable support}





More information about the latex3-commits mailing list.