[latex3-commits] [git/LaTeX3-latex3-pdfresources] test-OR-lab: move or code (b1c6a1c)

Ulrike Fischer fischer at troubleshooting-tex.de
Tue Feb 15 00:48:01 CET 2022


Repository : https://github.com/latex3/pdfresources
On branch  : test-OR-lab
Link       : https://github.com/latex3/pdfresources/commit/b1c6a1c0f1a1141ba67b37acabc00ae04c5c28b5

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

commit b1c6a1c0f1a1141ba67b37acabc00ae04c5c28b5
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Tue Feb 15 00:48:01 2022 +0100

    move or code


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

b1c6a1c0f1a1141ba67b37acabc00ae04c5c28b5
 firstaid/output-patches-tmp-ltx.dtx | 21 +++++++++++++++------
 ltdocinit.dtx                       |  2 ++
 2 files changed, 17 insertions(+), 6 deletions(-)

diff --git a/firstaid/output-patches-tmp-ltx.dtx b/firstaid/output-patches-tmp-ltx.dtx
index 96b9d32..c08cd40 100644
--- a/firstaid/output-patches-tmp-ltx.dtx
+++ b/firstaid/output-patches-tmp-ltx.dtx
@@ -92,14 +92,23 @@
 %      update the \cs{footins} stream if that one got split
 %    \end{itemize}
 %
-%   If the new latex-lab file for the output routine exists we load it.
+%   If the new latex-lab file for the output routine it will do the right thing.
 %   In the other case we patch \cs{@makecol} manually.
 %    \begin{macrocode}
-\IfFileExists{latex-lab-new-or.ltx}
- {\input{latex-lab-new-or.ltx}}
- {
-  \providecommand\@kernel at before@footins{}
-  \providecommand\@kernel at before@cclv{}
+%\ShowDocumentProperties
+\begingroup
+    \edef\x{\GetDocumentProperties{document/testphase/new-or}}%
+    \edef\y{loaded}%
+  \expandafter\endgroup
+  \ifx\x\y
+    \expandafter\@firstoftwo
+  \else
+    \expandafter\@secondoftwo
+  \fi
+   {}
+   {
+    \providecommand\@kernel at before@footins{}
+    \providecommand\@kernel at before@cclv{}
 
   \patchcmd\@makecol
       {\vskip\skip\footins}
diff --git a/ltdocinit.dtx b/ltdocinit.dtx
index 8a2ec51..9754e5a 100644
--- a/ltdocinit.dtx
+++ b/ltdocinit.dtx
@@ -310,9 +310,11 @@
           {
             \tl_gput_right:Nn\g_@@_testphase_tl
                {
+                 \AddToDocumentProperties [document]{testphase/#1}{loaded}
                  \file_if_exist_input:nF {#1-latex-lab-testphase.ltx}
                   {
                      \msg_warning:nnn{document}{latex-lab-pkg-missing}{#1}
+                     \AddToDocumentProperties [document]{testphase/#1}{missing}
                   }
                }
           }





More information about the latex3-commits mailing list.