[latex3-commits] [git/LaTeX3-latex3-hyperref] cleanup-patches: move Ref code out of varioref test (9bb9e9d)
Ulrike Fischer
fischer at troubleshooting-tex.de
Sun Apr 10 22:01:36 CEST 2022
Repository : https://github.com/latex3/hyperref
On branch : cleanup-patches
Link : https://github.com/latex3/hyperref/commit/9bb9e9d8ff4952e7fac2874e578238a06b60a562
>---------------------------------------------------------------
commit 9bb9e9d8ff4952e7fac2874e578238a06b60a562
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Sun Apr 10 22:01:36 2022 +0200
move Ref code out of varioref test
>---------------------------------------------------------------
9bb9e9d8ff4952e7fac2874e578238a06b60a562
hyperref.dtx | 2 +-
nameref.dtx | 17 ++++-------------
2 files changed, 5 insertions(+), 14 deletions(-)
diff --git a/hyperref.dtx b/hyperref.dtx
index 1da47e3..10b497f 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -7338,7 +7338,7 @@
}%
\DeclareRobustCommand*{\nameref}{%
\@ifstar\@namerefstar\T at nameref
- }%
+ }%
\ifHy at implicit
\else
\let \@pagerefstar\T at pageref
diff --git a/nameref.dtx b/nameref.dtx
index 4f2ec27..c97b62d 100644
--- a/nameref.dtx
+++ b/nameref.dtx
@@ -875,23 +875,14 @@
}
% \end{macrocode}
% \begin{macrocode}
-\@ifundefined{@Refstar}{%
- \def\T at Ref#1{%
+\def\T at Ref#1{%
\NR at setref{#1}\NR at MakeUppercaseFirstOfFive{#1}%
}%
- \def\NR at MakeUppercaseFirstOfFive#1#2#3#4#5{%
+\def\NR at MakeUppercaseFirstOfFive#1#2#3#4#5{%
\MakeUppercase#1%
}%
-}{}%
-\AtBeginDocument{%
- \@ifpackageloaded{varioref}{%
- \@ifundefined{@Refstar}{%
- \DeclareRobustCommand*{\Ref}[1]{%
- \T at Ref{#1}%
- }%
- }{}%
- }{}%
-}%
+\DeclareRobustCommand*{\Ref}{%
+ \@ifstar\T at Ref\T at Ref}%
% \end{macrocode}
%
% \subsection{Support for package \xpackage{listings}}
More information about the latex3-commits
mailing list.