summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/koma-script
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-02-01 03:01:39 +0000
committerNorbert Preining <norbert@preining.info>2020-02-01 03:01:39 +0000
commit5bcf334281674db82263ea71485108bd44a05a5d (patch)
tree5d91f825389385d0e09fe2b8c537e47fffb9ba1d /macros/latex/contrib/koma-script
parent1d1c81d42f36755f72bbd69c5a29c2d6a9fec04d (diff)
CTAN sync 202002010301
Diffstat (limited to 'macros/latex/contrib/koma-script')
-rw-r--r--macros/latex/contrib/koma-script/README48
-rw-r--r--macros/latex/contrib/koma-script/doc/manifest.txt2
-rw-r--r--macros/latex/contrib/koma-script/doc/scrguide.pdfbin3260729 -> 3260708 bytes
-rw-r--r--macros/latex/contrib/koma-script/doc/scrguien.pdfbin3175536 -> 3175474 bytes
-rw-r--r--macros/latex/contrib/koma-script/doc/scrlayer-fancyhdr.pdfbin195988 -> 195988 bytes
-rw-r--r--macros/latex/contrib/koma-script/doc/scrpage2.pdfbin713853 -> 713853 bytes
-rw-r--r--macros/latex/contrib/koma-script/doc/tocstyle.pdfbin254508 -> 254508 bytes
-rw-r--r--macros/latex/contrib/koma-script/source/scrkernel-basics.dtx11
-rw-r--r--macros/latex/contrib/koma-script/source/scrkernel-compatibility.dtx10
-rw-r--r--macros/latex/contrib/koma-script/source/scrkernel-version.dtx4
-rw-r--r--macros/latex/contrib/koma-script/source/scrlfile.dtx53
11 files changed, 71 insertions, 57 deletions
diff --git a/macros/latex/contrib/koma-script/README b/macros/latex/contrib/koma-script/README
index d12dfb5579..c5dd3a9d91 100644
--- a/macros/latex/contrib/koma-script/README
+++ b/macros/latex/contrib/koma-script/README
@@ -1,6 +1,6 @@
-KOMA-Script 2019/12/23 v3.28
-Copyright (c) Markus Kohm <komascript(at)gmx.info>, 1994-2019
+KOMA-Script 2020/01/24 v3.29
+Copyright (c) Markus Kohm <komascript(at)gmx.info>, 1994-2020
This material is subject to the LaTeX Project Public License. See
lppl.txt (english) or lppl-de.txt (german) for the details of that
@@ -85,7 +85,7 @@ Requires: scrkbase - internal KOMA-Script package
Recommended: scrlayer-scrpage - KOMA-Script package
License: LPPL 1.3c or later
State: Author maintained
-Version: 2019/12/23 v3.28
+Version: 2020/01/24 v3.29
==============================================================================
scrarticle - wrapper class to scrartcl
------------------------------------------------------------------------------
@@ -100,7 +100,7 @@ Abstract: scrreport is a very simple wrapper class to scrartcl. Is has
Requires: scrartcl.cls - KOMA-Script class
License: LPPL 1.3c or later
State: Author maintained
-Version: 2019/12/23 v3.28
+Version: 2020/01/24 v3.29
==============================================================================
scrbase - basic features for KOMA-Script, e.g. conditionals and key=value
------------------------------------------------------------------------------
@@ -139,7 +139,7 @@ Requires: keyval - key=value package from the graphics bundle
manipulation
License: LPPL 1.3c or later
State: Author maintained
-Version: 2019/12/23 v3.28
+Version: 2020/01/24 v3.29
==============================================================================
scrbook - versatile class may be used as a drop-in replacement of book
------------------------------------------------------------------------------
@@ -159,7 +159,7 @@ Requires: scrkbase - internal KOMA-Script package
typearea - KOMA-Script package
License: LPPL 1.3c or later
State: Author maintained
-Version: 2019/12/23 v3.28
+Version: 2020/01/24 v3.29
==============================================================================
scrdate - calender date operations, e.g. calculation of the day of the week
------------------------------------------------------------------------------
@@ -178,7 +178,7 @@ Requires: scrkbase - KOMA-Script package for some basic features.
manipulation
License: LPPL 1.3c or later
State: Author maintained
-Version: 2019/12/23 v3.28
+Version: 2020/01/24 v3.29
==============================================================================
scrdoc - internal source documentation class of KOMA-Script
------------------------------------------------------------------------------
@@ -207,7 +207,7 @@ Requires: scrkbase - internal package with some basics of KOMA-Script
etoolbox - tool-box for LaTeX programming using e-TeX
License: LPPL 1.3c or later
State: Author maintained
-Version: 2019/12/23 v3.28
+Version: 2020/01/24 v3.29
==============================================================================
scrfontsizes - package to generate a KOMA-Script font size file
------------------------------------------------------------------------------
@@ -219,7 +219,7 @@ Abstract: scrfontsizes is a LaTeX package of the KOMA-Script bundle.
Requires: scrextend - some KOMA-Script features for other classes
License: LPPL 1.3c or later
State: Author maintained
-Version: 2019/12/23 v3.28
+Version: 2020/01/24 v3.29
==============================================================================
scrhack - patch some isues with other packages
------------------------------------------------------------------------------
@@ -237,7 +237,7 @@ Requires: scrkbase - internal KOMA-Script package with basics
xpatch - extending etoolbox patching commands
License: LPPL 1.3c or later
State: Author maintained
-Version: 2019/12/23 v3.28
+Version: 2020/01/24 v3.29
==============================================================================
scrjura - contract environment for advocates and scholary persons in law
------------------------------------------------------------------------------
@@ -253,7 +253,7 @@ Requires: scrkbase - internal KOMA-Script package with basics
tocbasic - features for helper files and float environments
License: LPPL 1.3c or later
State: Author maintained
-Version: 2019/12/23 v3.28
+Version: 2020/01/24 v3.29
==============================================================================
scrkbase - internal basic features for KOMA-Script classes and packages
------------------------------------------------------------------------------
@@ -268,7 +268,7 @@ Requires: scrbase - KOMA-Script package for some basic features.
manipulation
License: LPPL 1.3c or later
State: Author maintained
-Version: 2019/12/23 v3.28
+Version: 2020/01/24 v3.29
==============================================================================
scrlayer-fancyhdr - combining scrlayer with fancyhdr
------------------------------------------------------------------------------
@@ -328,7 +328,7 @@ Abstract: scrlayer-scrpage is a LaTeX package of the KOMA-Script
Requires: scrlayer.sty
License: LPPL 1.3c or later
State: Author maintained
-Version: 2019/12/23 v3.28
+Version: 2020/01/24 v3.29
==============================================================================
scrlayer - defining layers and controlling page headers and footers
------------------------------------------------------------------------------
@@ -353,7 +353,7 @@ Abstract: scrlayer is a LaTeX package of the KOMA-Script bundle.
Requires: scrkbase.sty
License: LPPL 1.3c or later
State: Author maintained
-Version: 2019/12/23 v3.28
+Version: 2020/01/24 v3.29
==============================================================================
scrletter - wrapper class to scrlttr2
------------------------------------------------------------------------------
@@ -368,7 +368,7 @@ Abstract: scrreport is a very simple wrapper class to scrlttr2. Is has
Requires: scrlttr2.cls - KOMA-Script class
License: LPPL 1.3c or later
State: Author maintained
-Version: 2019/12/23 v3.28
+Version: 2020/01/24 v3.29
==============================================================================
scrletter - letter extention to KOMA-Script classes
------------------------------------------------------------------------------
@@ -383,7 +383,7 @@ Requires: scrkbase - internal KOMA-Script package
Recommended: marvosym - package by Martin Vogel providing symbols
License: LPPL 1.3c or later
State: Author maintained
-Version: 2019/12/23 v3.28
+Version: 2020/01/24 v3.29
==============================================================================
scrlfile - control of package dependencies
------------------------------------------------------------------------------
@@ -401,7 +401,7 @@ Abstract: scrlfile is a LaTeX package of the KOMA-Script bundle. It
Requires:
License: LPPL 1.3c or later
State: Author maintained
-Version: 2019/12/23 v3.28
+Version: 2020/01/24 v3.29
==============================================================================
scrlttr2 - versatile letter class with separation of text area and note paper
------------------------------------------------------------------------------
@@ -434,7 +434,7 @@ Requires: scrkbase - internal KOMA-Script package
Recommended: marvosym - package by Martin Vogel providing symbols
License: LPPL 1.3c or later
State: Author maintained
-Version: 2019/12/23 v3.28
+Version: 2020/01/24 v3.29
==============================================================================
scrpage2 - control of page headers and footers
------------------------------------------------------------------------------
@@ -459,7 +459,7 @@ Requires:
Successor: scrlayer-scrpage
License: LPPL 1.3c or later
State: Author maintained, obsolete
-Version: 2019/12/23 v3.28
+Version: 2020/01/24 v3.29
==============================================================================
scrreport - wrapper class to scrreprt
------------------------------------------------------------------------------
@@ -474,7 +474,7 @@ Abstract: scrreport is a very simple wrapper class to scrreprt. Is has
Requires: scrreprt.cls - KOMA-Script class
License: LPPL 1.3c or later
State: Author maintained
-Version: 2019/12/23 v3.28
+Version: 2020/01/24 v3.29
==============================================================================
scrreprt - versatile class may be used as a drop-in replacement of report
------------------------------------------------------------------------------
@@ -494,7 +494,7 @@ Requires: scrkbase - internal KOMA-Script package
typearea - KOMA-Script package
License: LPPL 1.3c or later
State: Author maintained
-Version: 2019/12/23 v3.28
+Version: 2020/01/24 v3.29
==============================================================================
scrtime - show the time of the LaTeX run
------------------------------------------------------------------------------
@@ -506,7 +506,7 @@ Abstract: scrtime is a LaTeX package of the KOMA-Script bundle. It
Requires: scrkbase - internal package with some basics of KOMA-Script
License: LPPL 1.3c or later
State: Author maintained
-Version: 2019/12/23 v3.28
+Version: 2020/01/24 v3.29
==============================================================================
scrwfile - Spare write handles for helper files to avoid `No room' messages
------------------------------------------------------------------------------
@@ -560,7 +560,7 @@ Abstract: tocbasic is a LaTeX package of the KOMA-Script bundle. The
Requires: scrbase - KOMA-Script package for some basic features.
License: LPPL 1.3c or later
State: Author maintained
-Version: 2019/12/23 v3.28
+Version: 2020/01/24 v3.29
==============================================================================
tocstyle - Control layout of table of contents, list of figures etc.
------------------------------------------------------------------------------
@@ -601,5 +601,5 @@ Abstract: Many LaTeX classes, including the standard classes, present
Requires: scrkbase - internal basic features for KOMA-Script packages
License: LPPL 1.3c or later
State: Autor maintained
-Version: 2019/12/23 v3.28
+Version: 2020/01/24 v3.29
==============================================================================
diff --git a/macros/latex/contrib/koma-script/doc/manifest.txt b/macros/latex/contrib/koma-script/doc/manifest.txt
index 5cab354d10..2253b4ae60 100644
--- a/macros/latex/contrib/koma-script/doc/manifest.txt
+++ b/macros/latex/contrib/koma-script/doc/manifest.txt
@@ -35,7 +35,7 @@
% Dieses Werk besteht aus den in manifest.txt aufgefuehrten Dateien.
% ======================================================================
%
-% CONTENTS OF THE KOMA-SCRIPT RELEASE 2019/12/23 v3.28
+% CONTENTS OF THE KOMA-SCRIPT RELEASE 2020/01/24 v3.29
% ------------------------------------------------------
%
%
diff --git a/macros/latex/contrib/koma-script/doc/scrguide.pdf b/macros/latex/contrib/koma-script/doc/scrguide.pdf
index 9eea16c3db..e2b0bd297b 100644
--- a/macros/latex/contrib/koma-script/doc/scrguide.pdf
+++ b/macros/latex/contrib/koma-script/doc/scrguide.pdf
Binary files differ
diff --git a/macros/latex/contrib/koma-script/doc/scrguien.pdf b/macros/latex/contrib/koma-script/doc/scrguien.pdf
index 2b23401e8d..a955cd736d 100644
--- a/macros/latex/contrib/koma-script/doc/scrguien.pdf
+++ b/macros/latex/contrib/koma-script/doc/scrguien.pdf
Binary files differ
diff --git a/macros/latex/contrib/koma-script/doc/scrlayer-fancyhdr.pdf b/macros/latex/contrib/koma-script/doc/scrlayer-fancyhdr.pdf
index bed856c3f6..b4368ba20a 100644
--- a/macros/latex/contrib/koma-script/doc/scrlayer-fancyhdr.pdf
+++ b/macros/latex/contrib/koma-script/doc/scrlayer-fancyhdr.pdf
Binary files differ
diff --git a/macros/latex/contrib/koma-script/doc/scrpage2.pdf b/macros/latex/contrib/koma-script/doc/scrpage2.pdf
index 8c38697860..bcd4f49c79 100644
--- a/macros/latex/contrib/koma-script/doc/scrpage2.pdf
+++ b/macros/latex/contrib/koma-script/doc/scrpage2.pdf
Binary files differ
diff --git a/macros/latex/contrib/koma-script/doc/tocstyle.pdf b/macros/latex/contrib/koma-script/doc/tocstyle.pdf
index 87495c67b9..6d658bad67 100644
--- a/macros/latex/contrib/koma-script/doc/tocstyle.pdf
+++ b/macros/latex/contrib/koma-script/doc/tocstyle.pdf
Binary files differ
diff --git a/macros/latex/contrib/koma-script/source/scrkernel-basics.dtx b/macros/latex/contrib/koma-script/source/scrkernel-basics.dtx
index af70ac7217..f9c193af4f 100644
--- a/macros/latex/contrib/koma-script/source/scrkernel-basics.dtx
+++ b/macros/latex/contrib/koma-script/source/scrkernel-basics.dtx
@@ -1,4 +1,4 @@
-% \CheckSum{4334}
+% \CheckSum{4335}
% \iffalse meta-comment
% ======================================================================
% scrkernel-basics.dtx
@@ -55,7 +55,7 @@
% Right brace \} Tilde \~}
%
% \iffalse
-%%% From File: $Id: scrkernel-basics.dtx 3409 2019-11-26 16:16:24Z kohm $
+%%% From File: $Id: scrkernel-basics.dtx 3448 2020-01-17 14:56:41Z kohm $
%<prepare>%%% (run: prepare)
%<option>%%% (run: option)
%<body>%%% (run: body)
@@ -65,7 +65,7 @@
\ifx\ProvidesFile\undefined\def\ProvidesFile#1[#2]{}\fi
\begingroup
\def\filedate$#1: #2-#3-#4 #5${\def\filedate{#2/#3/#4}}
- \filedate$Date: 2019-11-26 17:16:24 +0100 (Tue, 26 Nov 2019) $
+ \filedate$Date: 2020-01-17 15:56:41 +0100 (Fri, 17 Jan 2020) $
\def\filerevision$#1: #2 ${\def\filerevision{r#2}}
\filerevision$Revision: 1638 $
\xdef\fileinfo{\filedate\space\filerevision\space}
@@ -1394,13 +1394,14 @@
% \changes{v2.95}{2002/08/21}{neu}%^^A
% \changes{v2.95c}{2006/08/12}{über interne Anweisung definiert}%^^A
% \changes{v2.97c}{2007/06/20}{umbenannt von \cs{ifundefined}}%^^A
-% \changes{3.28}{2019/11/18}{umbenannt in \cs{Ifundefinedorrelax}}%^^A
+% \changes{v3.28}{2019/11/18}{umbenannt in \cs{Ifundefinedorrelax}}%^^A
+% \changes{v3.29}{2020/01/17}{fix of missing backslash}%^^A
% \begin{macro}{\Ifundefinedorrelax}%^^A
% Dieses Makro arbeitet wie \cs{@ifundefined}, definiert dabei aber
% ein undefiniertes Makro nicht als \cs{relax}.
% \begin{macrocode}
%<*base>
-\newcommand*{\Ifundefinedorrelax}{scr@ifundefinedorrelax}%
+\newcommand*{\Ifundefinedorrelax}{\scr@ifundefinedorrelax}%
%</base>
% \end{macrocode}
% \end{macro}
diff --git a/macros/latex/contrib/koma-script/source/scrkernel-compatibility.dtx b/macros/latex/contrib/koma-script/source/scrkernel-compatibility.dtx
index 5c2a3ddb39..3037d123ab 100644
--- a/macros/latex/contrib/koma-script/source/scrkernel-compatibility.dtx
+++ b/macros/latex/contrib/koma-script/source/scrkernel-compatibility.dtx
@@ -1,4 +1,4 @@
-% \CheckSum{221}
+% \CheckSum{222}
% \iffalse meta-comment
% ======================================================================
% scrkernel-compatibility.dtx
@@ -55,7 +55,7 @@
% Right brace \} Tilde \~}
%
% \iffalse
-%%% From File: $Id: scrkernel-compatibility.dtx 3397 2019-11-20 10:26:14Z kohm $
+%%% From File: $Id: scrkernel-compatibility.dtx 3446 2020-01-06 16:31:11Z kohm $
%<identify>%%% (run: identify)
%<init>%%% (run: init)
%<option>%%% (run: option)
@@ -65,7 +65,7 @@
\ifx\ProvidesFile\undefined\def\ProvidesFile#1[#2]{}\fi
\begingroup
\def\filedate$#1: #2-#3-#4 #5${\def\filedate{#2/#3/#4}}
- \filedate$Date: 2019-11-20 11:26:14 +0100 (Wed, 20 Nov 2019) $
+ \filedate$Date: 2020-01-06 17:31:11 +0100 (Mon, 06 Jan 2020) $
\def\filerevision$#1: #2 ${\def\filerevision{r#2}}
\filerevision$Revision: 1638 $
\edef\reserved@a{%
@@ -426,6 +426,8 @@
% \changes{v3.27a}{2019/10/13}{Neues Macro}
% \begin{macro}{\scr@v@3.28}
% \changes{v3.28}{2019/11/20}{Neues Macro}
+% \begin{macro}{\scr@v@3.29}
+% \changes{v3.29}{2020/01/06}{Neues Macro}
% \begin{macro}{\scr@v@last}
% \changes{v2.9u}{2005/03/05}{Neues Macro}%^^A
% Nun die unterschiedlichen möglichen Werte (|\scr@v@last| ist jeweils die
@@ -503,6 +505,7 @@
\@namedef{scr@v@3.27}{17}
\@namedef{scr@v@3.27a}{17}
\@namedef{scr@v@3.28}{17}
+\@namedef{scr@v@3.29}{17}
\@namedef{scr@v@last}{17}
% \end{macrocode}
% \end{macro}
@@ -564,6 +567,7 @@
% \end{macro}
% \end{macro}
% \end{macro}
+% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
diff --git a/macros/latex/contrib/koma-script/source/scrkernel-version.dtx b/macros/latex/contrib/koma-script/source/scrkernel-version.dtx
index 6d3777dbae..f7ba649527 100644
--- a/macros/latex/contrib/koma-script/source/scrkernel-version.dtx
+++ b/macros/latex/contrib/koma-script/source/scrkernel-version.dtx
@@ -55,7 +55,7 @@
% Right brace \} Tilde \~}
%
% \iffalse
-%%% From File: $Id: scrkernel-version.dtx 3444 2019-12-23 08:06:56Z kohm $
+%%% From File: $Id: scrkernel-version.dtx 3449 2020-01-24 07:28:10Z kohm $
% \fi
%
% \iffalse
@@ -123,7 +123,7 @@
\fi
%</ignorethis>
\fi
- \@CheckKOMAScriptVersion{2019/12/23 v3.28 KOMA-Script}%
+ \@CheckKOMAScriptVersion{2020/01/24 v3.29 KOMA-Script}%
\endgroup
% \end{macrocode}
% \end{macro}
diff --git a/macros/latex/contrib/koma-script/source/scrlfile.dtx b/macros/latex/contrib/koma-script/source/scrlfile.dtx
index cc64485ec6..8746d73643 100644
--- a/macros/latex/contrib/koma-script/source/scrlfile.dtx
+++ b/macros/latex/contrib/koma-script/source/scrlfile.dtx
@@ -1,8 +1,8 @@
-% \CheckSum{839}
+% \CheckSum{849}
% \iffalse^^A meta-comment
% ======================================================================
% scrlfile.dtx
-% Copyright (c) Markus Kohm, 2002-2019
+% Copyright (c) Markus Kohm, 2002-2020
%
% This file is part of the work `scrlfile' which is part of the LaTeX2e
% KOMA-Script bundle.
@@ -21,7 +21,7 @@
% This work consists of all files listed in manifest.txt.
% ----------------------------------------------------------------------
% scrlfile.dtx
-% Copyright (c) Markus Kohm, 2002-2019
+% Copyright (c) Markus Kohm, 2002-2020
%
% Diese Datei ist Teil des Werks `scrlfile', das wiederum Teil des
% LaTeX2e KOMA-Script Pakets ist.
@@ -59,12 +59,12 @@
% Right brace \} Tilde \~}
%
% \iffalse
-%%% From File: $Id: scrlfile.dtx 3399 2019-11-21 09:01:49Z kohm $
+%%% From File: $Id: scrlfile.dtx 3447 2020-01-06 16:40:47Z kohm $
%<*dtx>
\ifx\ProvidesFile\undefined\def\ProvidesFile#1[#2]{}\fi
\begingroup
\def\filedate$#1: #2-#3-#4 #5${\gdef\filedate{#2/#3/#4}}
- \filedate$Date: 2019-11-21 10:01:49 +0100 (Thu, 21 Nov 2019) $
+ \filedate$Date: 2020-01-06 17:40:47 +0100 (Mon, 06 Jan 2020) $
\def\filerevision$#1: #2 ${\gdef\filerevision{r#2}}
\filerevision$Revision: 2631 $
\edef\reserved@a{%
@@ -444,9 +444,11 @@
\newcommand*{\scr@load@hook}[2]{%
% \end{macrocode}
% \begin{macro}{\scrlfile@cmp@hook}
-% \changes{v3.27a}{2019/10/23}{local macros renamed}
+% \changes{v3.27a}{2019/10/23}{local macros renamed}%^^A
% \begin{macro}{\scrlfile@hookname}
-% \changes{v3.27a}{2019/10/23}{local macros renamed}
+% \changes{v3.27a}{2019/10/23}{local macros renamed}%^^A
+% \changes{v3.29}{2020/06/01}{do the class and package load hooks only in the
+% document preamble}%^^A --> https://komascript.de/node/2274
% Workaround for strange handling of the \cs{AtEndOfPackage} hook in
% \cs{@onefilewithoptions} (becomes \cs{@empty}, if the package already has
% been loaded and is not loaded again). This workaround is not nice but
@@ -454,19 +456,24 @@
% later. To decide whether to define or remove the marker, two local macros
% are used \cs{scrlfile@hookname} and \cs{scrlfile@cmp@hook}. The first has
% the name of the current hook from the first argument. The other is a compare
-% string. The first one is also valid while processing the hook. The names are
-% very unique, so we do not reserve them using \cs{newcommand} outside. The
-% name of the marker is less unique. Nevertheless it is not reserved.
+% string. The first one is also valid while processing the hook, but only in
+% the document preamble. The names are very unique, so we do not reserve them
+% using \cs{newcommand} outside. The name of the marker is less
+% unique. Nevertheless it is not reserved.
% Note: For recursive loading of files this does not work. But this also does
% not matter, because it is needed only for packages and classes, which are
-% never loaded recursive.
+% never loaded recursive. For the same reason from \KOMAScript{} 3.29 this is
+% only used inside the document preamble. After the document preamble it can
+% be dangerous, e.g., inside a |tabular| or |array|.
% \begin{macrocode}
- \edef\scrlfile@hookname{#1}%
- \def\scrlfile@cmp@hook{before}%
- \ifx\scrlfile@hookname\scrlfile@cmp@hook
- \expandafter\def\csname #2-l@ading\endcsname{#2}%
+ \ifx\@begindocumenthook\@undefined\else
+ \edef\scrlfile@hookname{#1}%
+ \def\scrlfile@cmp@hook{before}%
+ \ifx\scrlfile@hookname\scrlfile@cmp@hook
+ \expandafter\def\csname #2-l@ading\endcsname{#2}%
+ \fi
+ \let\scrlfile@cmp@hook\@undefined
\fi
- \let\scrlfile@cmp@hook\@undefined
\@ifundefined{#2-@#1}{}{%
\@nameuse{#2-@#1}%
\expandafter\let\csname #2-@#1\endcsname\relax
@@ -474,13 +481,15 @@
% \end{macrocode}
% The hook could destroy \cs{scrlfile@hookname} so define it again:
% \begin{macrocode}
- \edef\scrlfile@hookname{#1}%
- \def\scrlfile@cmp@hook{after}%
- \ifx\scrlfile@hookname\scrlfile@cmp@hook
- \expandafter\let\csname #2-l@ading\endcsname\@undefined
+ \ifx\@begindocumenthook\@undefined\else
+ \edef\scrlfile@hookname{#1}%
+ \def\scrlfile@cmp@hook{after}%
+ \ifx\scrlfile@hookname\scrlfile@cmp@hook
+ \expandafter\let\csname #2-l@ading\endcsname\@undefined
+ \fi
+ \let\scrlfile@cmp@hook\@undefined
+ \let\scrlfile@hookname\@undefined
\fi
- \let\scrlfile@cmp@hook\@undefined
- \let\scrlfile@hookname\@undefined
}
% \end{macrocode}
% \end{macro}