summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/koma-script/scrlfile-hook.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/koma-script/scrlfile-hook.dtx')
-rw-r--r--Master/texmf-dist/source/latex/koma-script/scrlfile-hook.dtx34
1 files changed, 18 insertions, 16 deletions
diff --git a/Master/texmf-dist/source/latex/koma-script/scrlfile-hook.dtx b/Master/texmf-dist/source/latex/koma-script/scrlfile-hook.dtx
index 1f944139be4..9ebbd46ee4f 100644
--- a/Master/texmf-dist/source/latex/koma-script/scrlfile-hook.dtx
+++ b/Master/texmf-dist/source/latex/koma-script/scrlfile-hook.dtx
@@ -1,7 +1,7 @@
% \iffalse^^A meta-comment
% ======================================================================
% scrlfile-hook.dtx
-% Copyright (c) Markus Kohm, 2020
+% Copyright (c) Markus Kohm, 2021
%
% This file is part of the work `scrlfile' which is part of the LaTeX2e
% KOMA-Script bundle.
@@ -20,7 +20,7 @@
% This work consists of all files listed in manifest.txt.
% ----------------------------------------------------------------------
% scrlfile-hook.dtx
-% Copyright (c) Markus Kohm, 2020
+% Copyright (c) Markus Kohm, 2021
%
% Diese Datei ist Teil des Werks `scrlfile', das wiederum Teil des
% LaTeX2e KOMA-Script Pakets ist.
@@ -37,7 +37,6 @@
%
% Der Aktuelle Verwalter und Autor dieses Werkes ist Markus Kohm.
%
-%
% Dieses Werk besteht aus den in manifest.txt aufgeführten Dateien.
% ======================================================================
%
@@ -46,9 +45,9 @@
\ifx\ProvidesFile\undefined\def\ProvidesFile#1[#2]{}\fi
\begingroup
\def\filedate$#1: #2-#3-#4 #5${\gdef\filedate{#2/#3/#4}}
- \filedate$Date: 2020-09-17 14:01:13 +0200 (Thu, 17 Sep 2020) $
+ \filedate$Date: 2021-03-02 08:40:05 +0100 (Tue, 02 Mar 2021) $
\def\filerevision$#1: #2 ${\gdef\filerevision{r#2}}
- \filerevision$Revision: 3544 $
+ \filerevision$Revision: 3574 $
\edef\reserved@a{%
\noexpand\endgroup
\noexpand\ProvidesFile{scrlfile-hook.dtx}%
@@ -245,27 +244,30 @@
% \end{macrocode}
% \end{macro}
%
-% \begin{variable}[added = 2020-06-26]{\g__scrlfile_input_file_seq}
+% \begin{variable}[added = 2020-06-26,
+% updated = 2021-01-01]{\g__scrlfile_input_file_seq}
+% \changes{3.33}{2021/01/01}{message definition moved outside function}
% \cs{g__scrlfile_input_file_seq} is a sequence of active file inputs (without
% path information). Two global hooks are used to setup the sequence. The new
-% conditional tests if a file is in the sequence.
+% conditional tests if a file is in the sequence. And a message is defined for
+% the case of more pops than pushs to the stack.
% \begin{macrocode}
\seq_new:N \g__scrlfile_input_file_seq
\hook_gput_code:nnn { file / before } { . }
{ \seq_gpush:Nx \g__scrlfile_input_file_seq { \CurrentFile } }
+\msg_new:nnn { scrlfile-hook } { too-many-pops }
+ {
+ More~file~names~popped~from~stack~than~put~to.~
+ This~should~never~happen.~
+ However,~it~could~happen~if~scrlfile-hook~is~loaded~by~another~
+ package~or~class.~In~this~case~some~packages~or~classes~are~not~
+ recognised~correctly.
+ }
\hook_gput_code:nnn { file / after } { . }
{
\seq_gpop:NNF \g__scrlfile_input_file_seq \l_tmpa_seq
{
- \msg_new:nnn { scrlfile-hook } { to-much-pops }
- {
- More~file~names~popped~from~stack~than~put~to.~
- This~should~never~happen.~
- However,~it~could~happen~if~scrlfile-hook~is~loaded~by~another~
- package~or~class.~In~this~case~some~packages~or~classes~are~not~
- recognised~correctly.
- }
- \msg_warning:nn { scrlfile-hook } { to-much-pops }
+ \msg_warning:nn { scrlfile-hook } { too-many-pops }
}
}
% \end{macrocode}