summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/koma-script/scrlfile.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-01-31 22:13:38 +0000
committerKarl Berry <karl@freefriends.org>2020-01-31 22:13:38 +0000
commitffcfa7a52180e1be3e81d0e0c4ce442e4bc1de02 (patch)
treec0e2f8bc5978b27383c47d4fdb1b767fe77826c9 /Master/texmf-dist/tex/latex/koma-script/scrlfile.sty
parent4f5d53354429fb0f4c2228807598014959ecd6f3 (diff)
koma-script (31jan20)
git-svn-id: svn://tug.org/texlive/trunk@53617 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/koma-script/scrlfile.sty')
-rw-r--r--Master/texmf-dist/tex/latex/koma-script/scrlfile.sty30
1 files changed, 17 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/latex/koma-script/scrlfile.sty b/Master/texmf-dist/tex/latex/koma-script/scrlfile.sty
index e6d221f3fcb..d2bcc82e22c 100644
--- a/Master/texmf-dist/tex/latex/koma-script/scrlfile.sty
+++ b/Master/texmf-dist/tex/latex/koma-script/scrlfile.sty
@@ -39,9 +39,9 @@
%% find a complete unmodified copy of LaTeX2e at
%% <http://mirror.ctan.org/tex-archive/macros/latex/base/>.
%%
-%%% 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 $
\ProvidesPackage{scrlfile}[%
- 2019/12/23 v3.28 KOMA-Script
+ 2020/01/24 v3.29 KOMA-Script
package
(loading files)]
\ExecuteOptions{}
@@ -181,23 +181,27 @@
\PackageInfo{scrlfile}{inputing `#1' instead of `#2'}%
}
\newcommand*{\scr@load@hook}[2]{%
- \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
}%
- \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
}
\newcommand*{\scr@set@load@hook}[2]{%
\@ifundefined{#2-@#1}{\@namedef{#2-@#1}{}}{}%