[latex3-commits] [git/LaTeX3-latex3-pdfresources] develop: avoid file hook warnings with new format (c341b22)

Ulrike Fischer fischer at troubleshooting-tex.de
Thu Sep 23 23:56:42 CEST 2021


Repository : https://github.com/latex3/pdfresources
On branch  : develop
Link       : https://github.com/latex3/pdfresources/commit/c341b22287b42da0235949eb0a05845dd445abbc

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

commit c341b22287b42da0235949eb0a05845dd445abbc
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Thu Sep 23 23:56:42 2021 +0200

    avoid file hook warnings with new format


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

c341b22287b42da0235949eb0a05845dd445abbc
 firstaid/output-patches-tmp-ltx.dtx |  5 ++++-
 ltdocinit.dtx                       | 25 ++++++++++++++++++++-----
 pdfmanagement-firstaid.dtx          | 20 +++++++++++++++++---
 3 files changed, 41 insertions(+), 9 deletions(-)

diff --git a/firstaid/output-patches-tmp-ltx.dtx b/firstaid/output-patches-tmp-ltx.dtx
index 7b67c52..cc0acb7 100644
--- a/firstaid/output-patches-tmp-ltx.dtx
+++ b/firstaid/output-patches-tmp-ltx.dtx
@@ -119,7 +119,10 @@
 %    \end{itemize}
 %
 %    \begin{macrocode}
-\AddToHook{package/after/multicol}{% multicol needs later loading
+\AddToHook{%
+  \IfFormatAtLeastTF{2021-11-15}
+    {package/multicol/after}
+    {package/after/multicl}}{% multicol needs later loading
 %    \end{macrocode}
 %
 %    \begin{macrocode}
diff --git a/ltdocinit.dtx b/ltdocinit.dtx
index 9af1a93..10ba973 100644
--- a/ltdocinit.dtx
+++ b/ltdocinit.dtx
@@ -412,7 +412,12 @@
     ,activate .multichoice:
     ,activate / tagging .code:n =
       {
-        \AddToHook{package/after/tagpdf}
+        \AddToHook
+          {
+           \IfFormatAtLeastTF{2021-11-15}
+             {package/tagpdf/after}
+             {package/after/tagpdf}
+          }
           {
             \tagpdfsetup{activate,paratagging,interwordspace}
             \AddToDocumentProperties [document]{tagging}{active}
@@ -426,16 +431,26 @@
       }
     ,debug / para .code:n =
       {
-        \AddToHook{package/after/tagpdf}
+        \AddToHook
+          {
+            \IfFormatAtLeastTF{2021-11-15}
+             {package/tagpdf/after}
+             {package/after/tagpdf}
+          }
           {
-            \tagpdfsetup{paratagging-show}
+             \tagpdfsetup{paratagging-show}
           }
       }
     ,debug / log .code:n =
       {
-        \AddToHook{package/after/tagpdf}
+        \AddToHook
+          {
+            \IfFormatAtLeastTF{2021-11-15}
+             {package/tagpdf/after}
+             {package/after/tagpdf}
+          }
           {
-            \tagpdfsetup{log=#1}
+             \tagpdfsetup{log=#1}
           }
       }
     ,debug / uncompress .code:n =
diff --git a/pdfmanagement-firstaid.dtx b/pdfmanagement-firstaid.dtx
index 65f3f7c..4858735 100644
--- a/pdfmanagement-firstaid.dtx
+++ b/pdfmanagement-firstaid.dtx
@@ -137,7 +137,12 @@
 %    \begin{macrocode}
 \bool_if:NT \g_@@_firstaid_xcolor_bool
   {
-    \AddToHook{package/after/xcolor}
+    \AddToHook
+       {
+         \IfFormatAtLeastTF{2021-11-15}
+           {package/xcolor/after}
+           {package/after/xcolor}
+       }
        {\RequirePackage{xcolor-patches-tmp-ltx}\XC@@@@names}
   }
 %    \end{macrocode}
@@ -170,7 +175,12 @@
 \bool_if:NT \g_@@_firstaid_pgf_bool
   {
     \msg_info:nnn{pdfmanagement }{firstaid}{pgf}
-    \AddToHook{file/after/pgfrcs.sty}
+    \AddToHook
+      {
+        \IfFormatAtLeastTF{2021-11-15}
+          {file/pgfrcs.sty/after}
+          {file/after/pgfrcs.sty}
+      }
       {
         \cs_set_eq:NN
           \@@_pgfori_pgfutil at setuppdfresources
@@ -274,7 +284,11 @@
 \bool_if:NT \g_@@_firstaid_hyperxmp_bool
  {
     \AddToHook
-      {file/after/hyperxmp.sty}
+      {
+        \IfFormatAtLeastTF{2021-11-15}
+         {file/hyperxmp.sty/after}
+         {file/after/hyperxmp.sty}
+      }
       {\RequirePackage{hyperxmp-patches-tmp-ltx}}
  }
 %</package>





More information about the latex3-commits mailing list.