summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/koma-script/source/scrlfile-patcholdlatex.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/koma-script/source/scrlfile-patcholdlatex.dtx')
-rw-r--r--macros/latex/contrib/koma-script/source/scrlfile-patcholdlatex.dtx30
1 files changed, 25 insertions, 5 deletions
diff --git a/macros/latex/contrib/koma-script/source/scrlfile-patcholdlatex.dtx b/macros/latex/contrib/koma-script/source/scrlfile-patcholdlatex.dtx
index 070d28a5dd..bae36b7a3f 100644
--- a/macros/latex/contrib/koma-script/source/scrlfile-patcholdlatex.dtx
+++ b/macros/latex/contrib/koma-script/source/scrlfile-patcholdlatex.dtx
@@ -1,7 +1,7 @@
% \iffalse^^A meta-comment
% ======================================================================
% scrlfile-patcholdlatex.dtx
-% Copyright (c) Markus Kohm, 2002-2020
+% Copyright (c) Markus Kohm, 2002-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-patcholdlatex.dtx
-% Copyright (c) Markus Kohm, 2002-2020
+% Copyright (c) Markus Kohm, 2002-2021
%
% Diese Datei ist Teil des Werks `scrlfile', das wiederum Teil des
% LaTeX2e KOMA-Script Pakets ist.
@@ -58,14 +58,14 @@
% Right brace \} Tilde \~}
%
% \iffalse
-%%% From File: $Id: scrlfile-patcholdlatex.dtx 3527 2020-09-11 09:44:32Z kohm $
+%%% From File: $Id: scrlfile-patcholdlatex.dtx 3593 2021-04-21 10:11:38Z 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: 2020-09-11 11:44:32 +0200 (Fri, 11 Sep 2020) $
+ \filedate$Date: 2021-04-21 12:11:38 +0200 (Wed, 21 Apr 2021) $
\def\filerevision$#1: #2 ${\gdef\filerevision{r#2}}
- \filerevision$Revision: 3527 $
+ \filerevision$Revision: 3593 $
\edef\reserved@a{%
\noexpand\endgroup
\noexpand\ProvidesFile{scrlfile-patcholdlatex.dtx}%
@@ -139,6 +139,26 @@
%
% \subsection{Patching \LaTeX{} Kernel Macros}
%
+% Test whether the used \LaTeX{} is old enough.
+% \changes{v3.34}{2021/04/21}{make it more robust agains not recommended
+% direct usage}
+% \begin{macrocode}
+\@ifundefined{IfFormatAtLeastTF}{}{%
+ \IfFormatAtLeastTF{2020/10/01}{%
+ \PackageError{scrlfile-hook}{LaTeX too young for this package}{%
+ It seems this package has been loaded directly using a LaTeX
+ version\MessageBreak
+ 2020-10-01 or newer. This is not recommend. Please always load
+ package\MessageBreak
+ scrlfile instead of scrlfile-patcholdlatex.\MessageBreak
+ If you would continue, I will try to load scrlfile-hook%
+ }%
+ \RequirePackage{scrlfile-hook}%
+ \endinput
+ }{}%
+}
+% \end{macrocode}
+%
% \begin{macro}{\InputIfFileExists}
% \changes{v2.96}{2006/07/19}{replacement code added}%^^A
% \LaTeX{} uses this macro for loading files with