[latex3-commits] [git/LaTeX3-latex3-hyperref] cleanup-patches: remove listings code (b697ab7)

Ulrike Fischer fischer at troubleshooting-tex.de
Wed Jun 30 22:19:08 CEST 2021


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

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

commit b697ab7900b2add216ce6b79d8e73c5df4262e71
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Wed Jun 30 22:19:08 2021 +0200

    remove listings code


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

b697ab7900b2add216ce6b79d8e73c5df4262e71
 hyperref-patches.dtx | 15 ++++++++++++++-
 hyperref.dtx         |  4 ----
 2 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/hyperref-patches.dtx b/hyperref-patches.dtx
index 3e9f5af..23d0c30 100644
--- a/hyperref-patches.dtx
+++ b/hyperref-patches.dtx
@@ -107,7 +107,7 @@
 % --Moved 2021-06-30--
 %
 % This provide two commands for the listing package which is from 1999.
-% Probably unneeded anyway, as this are the defaults
+% Probably unneeded anyway, as this are the defaults, at best they prevent some warnings.
 %
 % --End of move command--
 %    \begin{macrocode}
@@ -116,6 +116,19 @@
   \providecommand*\toclevel at listing{0}%
 }{}
 %    \end{macrocode}
+% \section{listings}
+% --Moved 2021-06-30--
+%
+% This provide two commands for the listing package which is from 1999.
+% Probably unneeded anyway, as this are the defaults, at best they prevent some warnings.
+%
+% --End of move command--
+%    \begin{macrocode}
+\@ifpackageloaded{listings}{%
+  \providecommand*\theHlstlisting{\thelstlisting}%
+  \providecommand*\toclevel at lstlisting{0}%
+}{}
+%    \end{macrocode}
 %    \begin{macrocode}
 %</package>
 %    \end{macrocode}
diff --git a/hyperref.dtx b/hyperref.dtx
index a13539d..2fac13d 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -5896,10 +5896,6 @@
 \def\toclevel at subparagraph{5}
 \def\toclevel at figure{0}
 \def\toclevel at table{0}
-\@ifpackageloaded{listings}{%
-  \providecommand*\theHlstlisting{\thelstlisting}%
-  \providecommand*\toclevel at lstlisting{0}%
-}{}
 %    \end{macrocode}
 %
 %    \begin{macrocode}





More information about the latex3-commits mailing list.