summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/koma-script/scrlfile-hook.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/koma-script/scrlfile-hook.sty')
-rw-r--r--Master/texmf-dist/tex/latex/koma-script/scrlfile-hook.sty34
1 files changed, 24 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/koma-script/scrlfile-hook.sty b/Master/texmf-dist/tex/latex/koma-script/scrlfile-hook.sty
index c60da49d8a3..b4ba26aadfd 100644
--- a/Master/texmf-dist/tex/latex/koma-script/scrlfile-hook.sty
+++ b/Master/texmf-dist/tex/latex/koma-script/scrlfile-hook.sty
@@ -40,20 +40,34 @@
%%
%%% From File: $Id: scrlfile-hook.dtx$
\ProvidesPackage{scrlfile-hook}[%
- 2021/03/17 v3.33 KOMA-Script
+ 2021/06/25 v3.34 KOMA-Script
package
(using LaTeX hooks)]
-\@ifundefined{AddToHook}{%
- \PackageError{scrlfile-hook}{LaTeX too old for this package}{%
- \string\AddToHook\space of LaTeX 2020-10-01 or newer is
- needed.\MessageBreak
- Please update LaTeX or use package scrlfile-patch instead of\MessageBreak
- scrlfile-hook.\MessageBreak
- If you would continue, I will try to load scrlfile-patch
+\@ifundefined{IfFormatAtLeastTF}{%
+ \PackageError{scrlfile-hook}{not recommended usage of package}{%
+ It seems this package has been loaded directly using a LaTeX
+ version\MessageBreak
+ prior to 2020-10-01. This is not recommend. Please always load
+ package\MessageBreak
+ scrlfile instead of scrlfile-hook.\MessageBreak
+ If you would continue, I will try to load scrlfile-patcholdlatex%
}%
- \RequirePackage{scrlfile-patch}%
+ \RequirePackage{scrlfile-patcholdlatex}%
\endinput
-}{}
+}{%
+ \IfFormatAtLeastTF{2020/10/01}{}{%
+ \PackageError{scrlfile-hook}{LaTeX too old for this package}{%
+ It seems this package has been loaded directly using a LaTeX
+ version\MessageBreak
+ prior to 2020-10-01. This is not recommend. Please always load
+ package\MessageBreak
+ scrlfile instead of scrlfile-hook.\MessageBreak
+ If you would continue, I will try to load scrlfile-patcholdlatex%
+ }%
+ \RequirePackage{scrlfile-patcholdlatex}%
+ \endinput
+ }{}%
+}
\ExplSyntaxOn
\NewDocumentCommand \BeforeFile { m }
{