[latex3-commits] [git/LaTeX3-latex3-pdfresources] test-new-or-change: start to move output-patch to latex-lab (7281b91)

Ulrike Fischer fischer at troubleshooting-tex.de
Sat Oct 29 17:30:07 CEST 2022


Repository : https://github.com/latex3/pdfresources
On branch  : test-new-or-change
Link       : https://github.com/latex3/pdfresources/commit/7281b91cc56a0bc152b5a1db7f28dc8e8cfa1946

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

commit 7281b91cc56a0bc152b5a1db7f28dc8e8cfa1946
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Sat Oct 29 17:30:07 2022 +0200

    start to move output-patch to latex-lab


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

7281b91cc56a0bc152b5a1db7f28dc8e8cfa1946
 firstaid/output-patches-tmp-ltx.dtx | 16 +++++++++++-----
 pdfmanagement-firstaid.dtx          | 19 ++++++++++++++++---
 pdfmanagement-testphase.ins         |  8 ++++++++
 3 files changed, 35 insertions(+), 8 deletions(-)

diff --git a/firstaid/output-patches-tmp-ltx.dtx b/firstaid/output-patches-tmp-ltx.dtx
index 341bc1f..3e6490f 100644
--- a/firstaid/output-patches-tmp-ltx.dtx
+++ b/firstaid/output-patches-tmp-ltx.dtx
@@ -51,8 +51,8 @@
 %    \end{macrocode}
 %
 %    \begin{macrocode}
-\ProvidesPackage{output-patches-tmp-ltx}
-        [2021-08-20 v0.95 Temporary patches of output commands]
+\ProvidesPackage{latex-lab-testphase-new-or-1}
+        [2022-10-29 v0.96 Temporary output patches for tagging and better link support]
 \RequirePackage{etoolbox}
 %    \end{macrocode}
 %
@@ -144,7 +144,7 @@
 %
 % \subsection{Interrupt hooks}
 % This requires the l3pdfannot module!
-% We add the code here an not in hyperref, as it should also work with links
+% We add the code here and 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}
@@ -157,9 +157,15 @@
 %    \end{macrocode}
 %
 %    \begin{macrocode}
-\endinput
 %</package>
 %    \end{macrocode}
-%
+
+%    \begin{macrocode}
+%<*latex-lab>
+\ProvidesFile{new-or-1-latex-lab-testphase.ltx}
+        [2022-10-26 v0.8 Temporary output patches for tagging and better link support]
+\RequirePackage{latex-lab-testphase-new-or-1}
+%</latex-lab>
+%    \end{macrocode}
 % \Finale
 %
diff --git a/pdfmanagement-firstaid.dtx b/pdfmanagement-firstaid.dtx
index 4182b32..74d2cdd 100644
--- a/pdfmanagement-firstaid.dtx
+++ b/pdfmanagement-firstaid.dtx
@@ -127,12 +127,25 @@
    }
 %    \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.
+% The patches for the LaTeX output routine commands for the tagging
+% of the header/footer, the suppressing of links
+% and the patch to multicol for the para tagging
+% by default, but must be requested with the key \texttt{testphase=new-or-1}.
+% But until latex-lab has been updated we must ensure that they are loaded with
+% the various phases.
 %    \begin{macrocode}
 \bool_if:NT \g_@@_firstaid_output_bool
   {
-    \RequirePackage{output-patches-tmp-ltx}
+%    \end{macrocode}
+% This catches also phase-II and tagpdf.
+%    \begin{macrocode}
+    \AddToHook{package/latex-lab-testphase-new-or/after}
+      {\RequirePackage{latex-lab-testphase-new-or-1}}
+%    \end{macrocode}
+% This is for phase-II
+%    \begin{macrocode}
+    \AddToHook{file/phase-I-latex-lab-testphase/after}
+      {\RequirePackage{latex-lab-testphase-new-or-1}}
   }
 %    \end{macrocode}
 
diff --git a/pdfmanagement-testphase.ins b/pdfmanagement-testphase.ins
index 5f0656d..c93e30b 100644
--- a/pdfmanagement-testphase.ins
+++ b/pdfmanagement-testphase.ins
@@ -221,6 +221,14 @@ and all files in that bundle must be distributed together.
       {
        \from{output-patches-tmp-ltx.dtx}{package}
       }
+    \file {latex-lab-testphase-new-or-1.sty}
+      {
+       \from{output-patches-tmp-ltx.dtx}{package}
+      }  
+    \file {new-or-1-latex-lab-testphase.ltx}
+      {
+       \from{output-patches-tmp-ltx.dtx}{latex-lab}
+      }        
   }
 
 \def\MetaPrefix{-- }





More information about the latex3-commits mailing list.