[latex3-commits] [git/LaTeX3-latex3-latex2e] metadata: address the comments made (b7fa8508)
Frank Mittelbach
frank.mittelbach at latex-project.org
Mon Dec 13 18:21:39 CET 2021
Repository : https://github.com/latex3/latex2e
On branch : metadata
Link : https://github.com/latex3/latex2e/commit/b7fa8508abd9193d25b1596a998492e775e3b478
>---------------------------------------------------------------
commit b7fa8508abd9193d25b1596a998492e775e3b478
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date: Mon Dec 13 18:21:39 2021 +0100
address the comments made
>---------------------------------------------------------------
b7fa8508abd9193d25b1596a998492e775e3b478
base/ltmeta.dtx | 12 ++++++------
base/testfiles/tlb-metadata-000.tlg | 11 ++++++++---
2 files changed, 14 insertions(+), 9 deletions(-)
diff --git a/base/ltmeta.dtx b/base/ltmeta.dtx
index 4c5f843d..1b71049d 100644
--- a/base/ltmeta.dtx
+++ b/base/ltmeta.dtx
@@ -127,7 +127,7 @@
% \end{macrocode}
%
% \begin{macrocode}
-\newcommand\DocumentMetadata{%
+\protected\def\DocumentMetadata{%
\InputIfFileExists{documentmetadata-support.ltx}%
{}%
% \end{macrocode}
@@ -138,11 +138,11 @@
% If the file can't be found we say so and carry on without it.
% \begin{macrocode}
{%
- \@latex at warning@no at line{No support files for
- \noexpand\DocumentMetadata found.\MessageBreak
- Is the 'documentmetadata-support' bundle installed?%
- \MessageBreak\MessageBreak
- The declaration is ignored}%
+ \@latex at error{No support files for
+ \noexpand\DocumentMetadata found}
+ {Is the 'documentmetadata-support' bundle installed?%
+ \MessageBreak
+ Without it, the declaration is ignored.}%
% \end{macrocode}
% No point in trying this more than once if there are several calls
% in the document.
diff --git a/base/testfiles/tlb-metadata-000.tlg b/base/testfiles/tlb-metadata-000.tlg
index 8f87c474..c9c3b369 100644
--- a/base/testfiles/tlb-metadata-000.tlg
+++ b/base/testfiles/tlb-metadata-000.tlg
@@ -1,5 +1,10 @@
This is a generated file for the LaTeX2e validation system.
Don't change this file in any respect.
-LaTeX Warning: No support files for \DocumentMetadata found.
- Is the 'documentmetadata-support' bundle installed?
- The declaration is ignored.
+! LaTeX Error: No support files for \DocumentMetadata found.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type H <return> for immediate help.
+ ...
+l. ...\DocumentMetadata
+ {} % --- what happens?
+Is the 'documentmetadata-support' bundle installed?
+Without it, the declaration is ignored.
More information about the latex3-commits
mailing list.