[latex3-commits] [git/LaTeX3-latex3-hyperref] cleanup-patches: move code into tex4ht check (d53c83c)

Ulrike Fischer fischer at troubleshooting-tex.de
Mon Apr 11 23:18:11 CEST 2022


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

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

commit d53c83cedfe9bc32e649ae7aba9e95a5d40ce77f
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Mon Apr 11 23:18:11 2022 +0200

    move code into tex4ht check


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

d53c83cedfe9bc32e649ae7aba9e95a5d40ce77f
 hyperref.dtx | 43 ++++++++++++++++++++++++-------------------
 1 file changed, 24 insertions(+), 19 deletions(-)

diff --git a/hyperref.dtx b/hyperref.dtx
index ea2bce4..1c0186e 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -7322,6 +7322,11 @@
       \expandafter\@setref\csname r@#1\endcsname\@secondoffive{#1}%
       \Hy at safe@activesfalse
     }%
+    \def\T at Ref#1{%
+      \Hy at safe@activestrue
+      \expandafter\@setref\csname r@#1\endcsname\@secondoffive{#1}%
+      \Hy at safe@activesfalse
+    }%
   \else
     \ifHy at typexml
     \else
@@ -7329,35 +7334,35 @@
         \RequirePackage{nameref}[2012/07/28]%
       }%
     \fi
-  \fi
 %    \end{macrocode}
 %    With active links we have to redefine the starred versions
 %   to avoid that they get links from the include |\@setref|:
 %    \begin{macrocode}
- \ifHy at implicit
-   \let \T at Ref\HyRef at Ref
-   \def\@refstar#1{%
-     \NR at ref@showkeys{#1}%
-     \HyRef at StarSetRef{#1}\@firstoffive
-   }
-   \def\@pagerefstar#1{%
-     \NR at ref@showkeys{#1}%
-     \HyRef at StarSetRef{#1}\@secondoffive
-   }
-   \def\@namerefstar#1{%
-     \NR at ref@showkeys{#1}%
-     \HyRef at StarSetRef{#1}\@thirdoffive
-   }
-   \def\@Refstar#1{%
-     \NR at ref@showkeys{#1}%
-     \HyRef at StarSetRef{#1}\HyRef at MakeUppercaseFirstOfFive
-   }%
+    \ifHy at implicit
+      \let \T at Ref\HyRef at Ref
+      \def\@refstar#1{%
+        \NR at ref@showkeys{#1}%
+        \HyRef at StarSetRef{#1}\@firstoffive
+      }
+      \def\@pagerefstar#1{%
+        \NR at ref@showkeys{#1}%
+        \HyRef at StarSetRef{#1}\@secondoffive
+      }
+      \def\@namerefstar#1{%
+        \NR at ref@showkeys{#1}%
+        \HyRef at StarSetRef{#1}\@thirdoffive
+      }
+      \def\@Refstar#1{%
+        \NR at ref@showkeys{#1}%
+        \HyRef at StarSetRef{#1}\HyRef at MakeUppercaseFirstOfFive
+      }%
  \else
 %   \let \@pagerefstar\T at pageref
 %   \let \@refstar\T at ref
 %   \let \@namerefstar\T at nameref
 %   \let \@Refstar\T at Ref
  \fi
+  \fi
 }
 \Hy at AtBeginDocument{%
   \ifHy at texht





More information about the latex3-commits mailing list.