[latex3-commits] [git/LaTeX3-latex3-latex2e] OR-lab: move or-code (02199c85)

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


Repository : https://github.com/latex3/latex2e
On branch  : OR-lab
Link       : https://github.com/latex3/latex2e/commit/02199c85ac7fe20093f2eb02071e2fa4269b799b

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

commit 02199c85ac7fe20093f2eb02071e2fa4269b799b
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Tue Feb 15 00:47:41 2022 +0100

    move or-code


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

02199c85ac7fe20093f2eb02071e2fa4269b799b
 required/latex-lab/documentmetadata-support.dtx |  2 ++
 required/latex-lab/latex-lab-testphase.dtx      | 30 +++++++++++++++++++++++--
 required/latex-lab/latex-lab.ins                |  3 +++
 3 files changed, 33 insertions(+), 2 deletions(-)

diff --git a/required/latex-lab/documentmetadata-support.dtx b/required/latex-lab/documentmetadata-support.dtx
index 0c7a1d9d..7501de15 100644
--- a/required/latex-lab/documentmetadata-support.dtx
+++ b/required/latex-lab/documentmetadata-support.dtx
@@ -336,9 +336,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{meta}{latex-lab-pkg-missing}{#1}
+                 \AddToDocumentProperties [document]{testphase/#1}{missing}
               }
            }
       }
diff --git a/required/latex-lab/latex-lab-testphase.dtx b/required/latex-lab/latex-lab-testphase.dtx
index 670bbaf4..416c6e63 100644
--- a/required/latex-lab/latex-lab-testphase.dtx
+++ b/required/latex-lab/latex-lab-testphase.dtx
@@ -41,8 +41,7 @@
 % \section{Introduction}
 %
 %    This code implements small files which can be loaded with the |testphase|
-%    key of \cs{DocumentMetadata}. Currently it only contains a
-%    wrapper for \pkg{tagpdf}, but this will be extended to allow user to load
+%    key of \cs{DocumentMetadata}. This will be extended to allow user to load
 %    well defined parts of the tagged PDF project.
 %
 %
@@ -71,5 +70,32 @@
 %    \begin{macrocode}
 %</tagpdf|phase-I|phase-II>
 %    \end{macrocode}
+%    \begin{macrocode}
+%<*tagpdf|phase-II>
+\ExplSyntaxOn
+\str_if_eq:eeF {\GetDocumentProperties{document/testphase/new-or}}{loaded}
+  {
+    \ExplSyntaxOff\makeatletter
+    \input{latex-lab-new-or.ltx}
+    \makeatother
+    \AddToDocumentProperties [document]{testphase/new-or}{loaded}
+  }
+\ExplSyntaxOff
+%</tagpdf|phase-II>
+%    \end{macrocode}
+% New output routine
+%    \begin{macrocode}
+%<*new-or>
+\ExplSyntaxOn
+\str_if_eq:eeF {\GetDocumentProperties{document/testphase/new-or}}{loaded}
+  {
+    \ExplSyntaxOff\makeatletter
+    \input{latex-lab-new-or.ltx}
+    \makeatother
+    \AddToDocumentProperties [document]{testphase/new-or}{loaded}
+  }
+\ExplSyntaxOff
+%</new-or>
+%    \end{macrocode}
 % \Finale
 %
diff --git a/required/latex-lab/latex-lab.ins b/required/latex-lab/latex-lab.ins
index a18ca921..ef832570 100644
--- a/required/latex-lab/latex-lab.ins
+++ b/required/latex-lab/latex-lab.ins
@@ -64,9 +64,12 @@ where one can also log issues in case there are any.
 
 \generate{\file{documentmetadata-support.ltx}{\from{documentmetadata-support.dtx}{code}}}
 
+% files that should be loadable with the testphase key should use the naming scheme
+% #1-latex-lab-testphase.ltx
 \generate{\file{tagpdf-latex-lab-testphase.ltx}{\from{latex-lab-testphase.dtx}{tagpdf}}}
 \generate{\file{phase-I-latex-lab-testphase.ltx}{\from{latex-lab-testphase.dtx}{phase-I}}}
 \generate{\file{phase-II-latex-lab-testphase.ltx}{\from{latex-lab-testphase.dtx}{phase-II}}}
+\generate{\file{new-or-latex-lab-testphase.ltx}{\from{latex-lab-testphase.dtx}{new-or}}}
 
 \generate{\file{latex-lab-new-or.ltx}{\from{latex-lab-new-or.dtx}{code}}}
 \generate{\file{latex-lab-footmisc.ltx}{\from{latex-lab-new-or.dtx}{footmisc}}}





More information about the latex3-commits mailing list.