[latex3-commits] [git/LaTeX3-latex3-latex2e] makelinktarget: add test if DocumentMetadata has been used (e0f47de9)
Ulrike Fischer
fischer at troubleshooting-tex.de
Sat May 14 20:41:06 CEST 2022
Repository : https://github.com/latex3/latex2e
On branch : makelinktarget
Link : https://github.com/latex3/latex2e/commit/e0f47de97e89afa119c70f8c60ab25960d7fc55b
>---------------------------------------------------------------
commit e0f47de97e89afa119c70f8c60ab25960d7fc55b
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Sat May 14 20:41:06 2022 +0200
add test if DocumentMetadata has been used
>---------------------------------------------------------------
e0f47de97e89afa119c70f8c60ab25960d7fc55b
base/doc/ltnews35.tex | 2 +-
base/ltmeta.dtx | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/base/doc/ltnews35.tex b/base/doc/ltnews35.tex
index 53a86589..c225dbed 100644
--- a/base/doc/ltnews35.tex
+++ b/base/doc/ltnews35.tex
@@ -184,7 +184,7 @@ already existing keys are in \file{l3meta.pdf} and \file{documentmetadata-suppor
and also in the documentation of the \pkg{pdfmanagement-testphase} package.
Package and class authors can test if a user has used \cs{DocumentMetadata}
-and so loaded the pdfmanagement package with \cs{IfPDFManagementActiveTF}.
+with \cs{IfDocumentMetadataTF}.
\section{The \pkg{latex-lab} bundle}
diff --git a/base/ltmeta.dtx b/base/ltmeta.dtx
index 3798bb37..f8de2860 100644
--- a/base/ltmeta.dtx
+++ b/base/ltmeta.dtx
@@ -127,6 +127,7 @@
% \end{macrocode}
%
% \begin{macrocode}
+\let \IfDocumentMetadataTF \@secondoftwo
\protected\def\DocumentMetadata{%
\InputIfFileExists{documentmetadata-support.ltx}%
{}%
@@ -149,6 +150,7 @@
% \begin{macrocode}
\let\DocumentMetadata\@gobble
}%
+ \let \IfDocumentMetadataTF \@firstoftwo
\DocumentMetadata
}
% \end{macrocode}
More information about the latex3-commits
mailing list.