[latex3-commits] [git/LaTeX3-latex3-pdfresources] outputpatches: move outputpatches to firstaid (2b65142)

Ulrike Fischer fischer at troubleshooting-tex.de
Fri Aug 20 20:37:11 CEST 2021


Repository : https://github.com/latex3/pdfresources
On branch  : outputpatches
Link       : https://github.com/latex3/pdfresources/commit/2b65142775d4ca18a0b7bfce777c11ba7a5a3312

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

commit 2b65142775d4ca18a0b7bfce777c11ba7a5a3312
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Fri Aug 20 20:37:11 2021 +0200

    move outputpatches to firstaid


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

2b65142775d4ca18a0b7bfce777c11ba7a5a3312
 build.lua                                              |  1 +
 .../output-patches-tmp-ltx.dtx                         | 18 +++++++++++++++++-
 ltdocinit.dtx                                          |  0
 pdfmanagement-firstaid.dtx                             | 12 +++++++++++-
 pdfmanagement-testphase.ins                            |  4 ++--
 5 files changed, 31 insertions(+), 4 deletions(-)

diff --git a/build.lua b/build.lua
index 0de8bf3..e9b95bd 100644
--- a/build.lua
+++ b/build.lua
@@ -28,6 +28,7 @@ else
                 "firstaid/pdflscape-ltx.sty",
                 "firstaid/xcolor-patches-tmp-ltx.sty",
                 "firstaid/color-ltx.sty",
+                "firstaid/output-patches-tmp-ltx.dtx",
                 "support/pdfmanagement-regressiontest.sty",
                 "newpackages/new-bookmark.sty",
                 "newpackages/bkm-generic.def",
diff --git a/output-patches.dtx b/firstaid/output-patches-tmp-ltx.dtx
similarity index 85%
rename from output-patches.dtx
rename to firstaid/output-patches-tmp-ltx.dtx
index 835e096..7b67c52 100644
--- a/output-patches.dtx
+++ b/firstaid/output-patches-tmp-ltx.dtx
@@ -15,7 +15,7 @@
 \EnableCrossrefs
 \CodelineIndex
 \begin{document}
-  \DocInput{output-patches.dtx}
+  \DocInput{output-patches-tmp-ltx.dtx}
 \end{document}
 %</driver>
 %
@@ -51,6 +51,8 @@
 %    \end{macrocode}
 %
 %    \begin{macrocode}
+\ProvidesPackage{output-patches-tmp-ltx}
+        [2021-08-20 v0.95 Temporary patches of output commands]
 \RequirePackage{etoolbox}
 %    \end{macrocode}
 %
@@ -131,6 +133,20 @@
 }
 %    \end{macrocode}
 %
+% \subsection{Interrupt hooks}
+% This requires the l3pdfannot module!
+% We add the code here an not in hyperref, as it should also work with links
+% created directly with the l3pdfannot commands. The file is only
+% loaded by the pdfmanagement, so no need to test if the commands exist.
+%    \begin{macrocode}
+\ExplSyntaxOn
+\def\@kernel at before@head{\pdfannot_link_off:}
+\def\@kernel at before@foot{\pdfannot_link_off:}
+\def\@kernel at after@head {\pdfannot_link_on:}
+\def\@kernel at after@foot {\pdfannot_link_on:}
+\ExplSyntaxOff
+%    \end{macrocode}
+%
 %    \begin{macrocode}
 \endinput
 %</package>
diff --git a/pdfmanagement-firstaid.dtx b/pdfmanagement-firstaid.dtx
index 1295c4b..b42c605 100644
--- a/pdfmanagement-firstaid.dtx
+++ b/pdfmanagement-firstaid.dtx
@@ -71,7 +71,7 @@
   {LaTeX PDF management testphase bundle / firstaid-patches}
 
 %<@@=pdfmanagement>
-\clist_map_inline:nn {pgf,transparent,hyperxmp,pdflscape,xcolor,color,beamer}
+\clist_map_inline:nn {pgf,transparent,hyperxmp,pdflscape,xcolor,color,beamer,output}
   {
     \bool_new:c       { g_@@_firstaid_#1_bool }
     \bool_gset_true:c { g_@@_firstaid_#1_bool }
@@ -86,6 +86,16 @@
 \msg_new:nnn  { pdfmanagement } { firstaid }
               { loading~pdfmanagement~firstaid~code~for~#1 }
 %    \end{macrocode}
+% \subsection{Output routine}
+% This load as few patches for the LaTeX output routine commands. They add
+% hooks for the interruption of links and for paragraph tagging.
+%    \begin{macrocode}
+\bool_if:NT \g_@@_firstaid_output_bool
+  {
+    \RequirePackage{output-patches-tmp-ltx}
+  }
+%    \end{macrocode}
+
 % \subsection{\pkg{beamer}}
 % \pkg{beamer} makes use of the now unsupported syntax |linkbordercolor={.5 .5 .5}|.
 % To avoid an error we define this color as a name.
diff --git a/pdfmanagement-testphase.ins b/pdfmanagement-testphase.ins
index d21b856..5f0656d 100644
--- a/pdfmanagement-testphase.ins
+++ b/pdfmanagement-testphase.ins
@@ -217,9 +217,9 @@ and all files in that bundle must be distributed together.
 
 \generate
   {
-    \file {output-patches-testphase.sty}
+    \file {output-patches-tmp-ltx.sty}
       {
-       \from{output-patches.dtx}{package}
+       \from{output-patches-tmp-ltx.dtx}{package}
       }
   }
 





More information about the latex3-commits mailing list.