[latex3-commits] [git/LaTeX3-latex3-hyperref] cleanup-patches: remove redefinition of pageref in nohyperref (9736aa6)

Ulrike Fischer fischer at troubleshooting-tex.de
Sat Apr 16 16:48:58 CEST 2022


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

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

commit 9736aa6b7cad3772ef6309480479ae600cd44abe
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sat Apr 16 16:48:58 2022 +0200

    remove redefinition of pageref in nohyperref


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

9736aa6b7cad3772ef6309480479ae600cd44abe
 hyperref.dtx | 23 ++++++++++++++---------
 1 file changed, 14 insertions(+), 9 deletions(-)

diff --git a/hyperref.dtx b/hyperref.dtx
index cac23eb..c8b2796 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -9511,16 +9511,21 @@
 \long\def\@gobbleopt[#1]{}
 \let\hyperpage\@empty
 %    \end{macrocode}
-%    Ignore star from referencing macros:
+%    Ignore star from referencing macros. This is only
+%    needed in older formats.
 %    \begin{macrocode}
-\LetLtxMacro\NoHy at OrgRef\ref
-\DeclareRobustCommand*{\ref}{%
-  \@ifstar\NoHy at OrgRef\NoHy at OrgRef
-}
-\LetLtxMacro\NoHy at OrgPageRef\pageref
-\DeclareRobustCommand*{\pageref}{%
-  \@ifstar\NoHy at OrgPageRef\NoHy at OrgPageRef
-}
+\@ifl at t@r\fmtversion{2022-06-01}
+ {}%
+ {%
+   \LetLtxMacro\NoHy at OrgRef\ref
+   \DeclareRobustCommand*{\ref}{%
+     \@ifstar\NoHy at OrgRef\NoHy at OrgRef
+   }
+   \LetLtxMacro\NoHy at OrgPageRef\pageref
+   \DeclareRobustCommand*{\pageref}{%
+     \@ifstar\NoHy at OrgPageRef\NoHy at OrgPageRef
+   }%
+ }
 %</nohyperref>
 %    \end{macrocode}
 %





More information about the latex3-commits mailing list.