[latex3-commits] [git/LaTeX3-latex3-hyperref] cleanup-patches: Revert "remove also this lines, but KOMA doesn't like it ..." (07020f3)

Ulrike Fischer fischer at troubleshooting-tex.de
Thu Jul 15 09:33:55 CEST 2021


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

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

commit 07020f3a5bc37d9824c8be067c8d5d6f9dcfaab1
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Thu Jul 15 00:22:42 2021 +0200

    Revert "remove also this lines, but KOMA doesn't like it ..."
    
    This reverts commit 7110c8a8a0815e3c010688872675364dc895a73e.


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

07020f3a5bc37d9824c8be067c8d5d6f9dcfaab1
 hyperref.dtx | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/hyperref.dtx b/hyperref.dtx
index 81544bc..27ec3c8 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -9612,6 +9612,11 @@
         \string\AtBeginDocument}^^J%
       \string\HyperFirstAtBeginDocument{%
         \string\ifx\string\hyper at anchor\string\@undefined^^J%
+          \string\global\string\let\string\oldcontentsline\string\contentsline^^J%
+          \string\gdef\string\contentsline%
+            \string#1\string#2\string#3\string#4{%
+            \string\oldcontentsline%
+              {\string#1}{\string#2}{\string#3}}^^J%
           \string\global\string\let\string\oldnewlabel\string\newlabel^^J%
           \string\gdef\string\newlabel\string#1\string#2{%
              \string\newlabelxx{\string#1}\string#2}^^J%
@@ -9625,6 +9630,7 @@
 %    \begin{macrocode}
           \string\AtEndDocument{%
             \string\ifx\string\hyper at anchor\string\@undefined^^J%
+              \string\let\string\contentsline\string\oldcontentsline^^J%
               \string\let\string\newlabel\string\oldnewlabel^^J%
             \string\fi%
           }^^J%





More information about the latex3-commits mailing list.