[latex3-commits] [latex3/pdfresources] remove-ltxcmds: clean up ltdocinit.dtx a bit more (6fcddd9)
github at latex-project.org
github at latex-project.org
Mon Nov 13 15:09:41 CET 2023
Repository : https://github.com/latex3/pdfresources
On branch : remove-ltxcmds
Link : https://github.com/latex3/pdfresources/commit/6fcddd96780ddbfb1d9253f869f806483b712e40
>---------------------------------------------------------------
commit 6fcddd96780ddbfb1d9253f869f806483b712e40
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Mon Nov 13 15:09:41 2023 +0100
clean up ltdocinit.dtx a bit more
>---------------------------------------------------------------
6fcddd96780ddbfb1d9253f869f806483b712e40
ltdocinit.dtx | 39 ++++++++++++---------------------------
1 file changed, 12 insertions(+), 27 deletions(-)
diff --git a/ltdocinit.dtx b/ltdocinit.dtx
index 6501ef6..4fd75ea 100644
--- a/ltdocinit.dtx
+++ b/ltdocinit.dtx
@@ -224,44 +224,29 @@
{Initialize document metadata}
%</header>
% \end{macrocode}
-% \cs{DocumentMetadata} will be defined by the kernel in short time.
-% So we define it and the keys here only if it is not already defined.
-% \subsection{The keys for \cs{DocumentMetadata}}
-% We define the keys first so that we can test if \cs{DocumentMetadata}
-% exist (testing for the format date would be nice but would fail for the current
-% latex-dev).
+% \begin{macrocode}
+%<*package>
+% \end{macrocode}
+% \subsection{Variables}
+% This variable definitions can be remove once latex-lab has been updated to
+% provide them too.
% \begin{variable}{\g_@@_firstaidoff_clist}
% A list to store the firstaid code which should be disabled
% \begin{macrocode}
-%<*package>
-\clist_new:N \g_@@_firstaidoff_clist
+\clist_if_exist:NF \g_@@_firstaidoff_clist
+ { \clist_new:N \g_@@_firstaidoff_clist }
% \end{macrocode}
-% \end{variable}
% \begin{variable}{\g_@@_testphase_tl}
% a tl to store the testphase loading code so that we can load them at
% the end of the command.
% \begin{macrocode}
-\tl_new:N \g_@@_testphase_tl
+\tl_if_exist:NF \g_@@_testphase_tl
+ { \tl_new:N \g_@@_testphase_tl }
% \end{macrocode}
% \end{variable}
-% \begin{macrocode}
-\keys_define:nn { document / metadata }
- {
- ,testphase / new-or-1 .code:n =
- {
- \tl_gput_right:Nn\g_@@_testphase_tl
- {
- \file_if_exist_input:nF {new-or-1-latex-lab-testphase.ltx}
- {
- \RequirePackage{output-patches-tmp-ltx}
- }
- }
- }
- }
-% \end{macrocode}
-%
% \subsection{\cs{DeclareDocumentMetadata}}
-% We define the older alias \cs{DeclareDocumentMetadata}
+% \cs{DocumentMetadata} is defined by the kernel.
+% We only define the older alias \cs{DeclareDocumentMetadata}
%
% \begin{macro}{\DeclareDocumentMetadata}
% \begin{macrocode}
More information about the latex3-commits
mailing list.