[latex3-commits] [git/LaTeX3-latex3-hyperref] cleanup-patches: move listing code out (a2e1a2d)

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


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

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

commit a2e1a2d9240fec8f1a44be3ec117c061a8b5fe6b
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Wed Jun 30 22:01:25 2021 +0200

    move listing code out


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

a2e1a2d9240fec8f1a44be3ec117c061a8b5fe6b
 hyperref-patches.dtx | 11 +++++++++++
 hyperref.dtx         |  4 ----
 2 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/hyperref-patches.dtx b/hyperref-patches.dtx
index 621a94c..3e9f5af 100644
--- a/hyperref-patches.dtx
+++ b/hyperref-patches.dtx
@@ -103,8 +103,19 @@
   \providecommand*\ext at figure{lof}%
 }{}
 %    \end{macrocode}
+% \section{listing}
+% --Moved 2021-06-30--
 %
+% This provide two commands for the listing package which is from 1999.
+% Probably unneeded anyway, as this are the defaults
 %
+% --End of move command--
+%    \begin{macrocode}
+\@ifpackageloaded{listing}{%
+  \providecommand*\theHlisting{\thelisting}%
+  \providecommand*\toclevel at listing{0}%
+}{}
+%    \end{macrocode}
 %    \begin{macrocode}
 %</package>
 %    \end{macrocode}
diff --git a/hyperref.dtx b/hyperref.dtx
index 765febc..a13539d 100644
--- a/hyperref.dtx
+++ b/hyperref.dtx
@@ -5900,10 +5900,6 @@
   \providecommand*\theHlstlisting{\thelstlisting}%
   \providecommand*\toclevel at lstlisting{0}%
 }{}
-\@ifpackageloaded{listing}{%
-  \providecommand*\theHlisting{\thelisting}%
-  \providecommand*\toclevel at listing{0}%
-}{}
 %    \end{macrocode}
 %
 %    \begin{macrocode}





More information about the latex3-commits mailing list.