summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/koma-script/source/scrlfile-hook.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/koma-script/source/scrlfile-hook.dtx')
-rw-r--r--macros/latex/contrib/koma-script/source/scrlfile-hook.dtx121
1 files changed, 51 insertions, 70 deletions
diff --git a/macros/latex/contrib/koma-script/source/scrlfile-hook.dtx b/macros/latex/contrib/koma-script/source/scrlfile-hook.dtx
index 8fda6365e3..d58f529904 100644
--- a/macros/latex/contrib/koma-script/source/scrlfile-hook.dtx
+++ b/macros/latex/contrib/koma-script/source/scrlfile-hook.dtx
@@ -1,7 +1,7 @@
% \iffalse^^A meta-comment
% ======================================================================
% scrlfile-hook.dtx
-% Copyright (c) Markus Kohm, 2021
+% Copyright (c) Markus Kohm, 2021-2022
%
% This file is part of the work `scrlfile' which is part of the LaTeX2e
% KOMA-Script bundle.
@@ -18,26 +18,6 @@
% The Current Maintainer and author of this work is Markus Kohm.
%
% This work consists of all files listed in manifest.txt.
-% ----------------------------------------------------------------------
-% scrlfile-hook.dtx
-% Copyright (c) Markus Kohm, 2021
-%
-% Diese Datei ist Teil des Werks `scrlfile', das wiederum Teil des
-% LaTeX2e KOMA-Script Pakets ist.
-%
-% Dieses Werk darf nach den Bedingungen der LaTeX Project Public Lizenz,
-% Version 1.3c, verteilt und/oder veraendert werden.
-% Die neuste Version dieser Lizenz ist
-% http://www.latex-project.org/lppl.txt
-% und Version 1.3c ist Teil aller Verteilungen von LaTeX
-% Version 2005/12/01 oder spaeter und dieses Werks.
-%
-% Dieses Werk hat den LPPL-Verwaltungs-Status "author-maintained"
-% (allein durch den Autor verwaltet).
-%
-% Der Aktuelle Verwalter und Autor dieses Werkes ist Markus Kohm.
-%
-% Dieses Werk besteht aus den in manifest.txt aufgeführten Dateien.
% ======================================================================
%
%%% From File: $Id: scrlfile-hook.dtx$
@@ -45,9 +25,9 @@
\ifx\ProvidesFile\undefined\def\ProvidesFile#1[#2]{}\fi
\begingroup
\def\filedate$#1: #2-#3-#4 #5${\gdef\filedate{#2/#3/#4}}
- \filedate$Date: 2021-11-09 10:36:18 +0100 (Tue, 09 Nov 2021) $
+ \filedate$Date: 2022-03-29 08:27:55 +0200 (Tue, 29 Mar 2022) $
\def\filerevision$#1: #2 ${\gdef\filerevision{r#2}}
- \filerevision$Revision: 3635 $
+ \filerevision$Revision: 3773 $
\edef\reserved@a{%
\noexpand\endgroup
\noexpand\ProvidesFile{scrlfile-hook.dtx}%
@@ -70,9 +50,11 @@
\generate{\usepreamble\defaultpreamble
\file{scrlfile-hook.sty}{%
\from{scrlfile-hook.dtx}{package,current}%
+ \from{scrlogo.dtx}{logo}%
}%
\file{scrlfile-hook-3.34.sty}{%
\from{scrlfile-hook.dtx}{package,3.34}%
+ \from{scrlogo.dtx}{logo}%
}%
}%
\@@input scrstrop.inc
@@ -80,48 +62,48 @@
\let\endbatchfile\relax
\fi
\endbatchfile
-\documentclass{l3doc}
-\usepackage[english]{babel}
-\DeclareRobustCommand{\KOMAScript}{\textsf{K\kern.05em O\kern.05em%
- M\kern.05em A\kern.1em-\kern.1em Script}}
+\documentclass[USenglish]{l3doc}% Using class for documentation of expl3 style packages.
+\usepackage{babel}
+\expandafter\let\expandafter\nodriver\csname iffalse\endcsname
+\expandafter\let\expandafter\endnodriver\csname fi\endcsname
+\makeatletter\input{scrlogo.dtx}\makeatother
\CodelineIndex
-\GetFileInfo{scrlfile-hook.dtx}
-\title{\KOMAScript{} \partname\ \texttt{\filename}%
- \thanks{This file is revision \fileversion\ of file \texttt{\filename}.}}
-\date{\filedate}
-\author{Markus Kohm\thanks{mailto:komascript@gmx.info}}
\begin{document}
- \maketitle
- \begin{abstract}
- This package provides hooks before and after loading files, packages or
- classes. It also provides a hook after the last \cs{clearpage} of the
- document. It allowes to replace files, packages and classes by other
- files, packages and classes. It is inteded to be used by package and class
- authors but may also be used by \LaTeX{} users.
- \end{abstract}
-
- \tableofcontents
-
- \DocInput{\filename}
+ \DocInput{scrlfile-hook.dtx}
\end{document}
%</dtx>
% \fi^^A meta-comment
%
% \changes{v3.32}{2020/08/25}{new (sub-)package}
-%^^A TODO: We should use docstrip3 instead of of docstrip. This would enable
-%^^A usability of @@-syntax in the source. But for this, additional
-%^^A changes would be needed to setup the version string. Because of
-%^^A this it should be done together with switch over to l3build.
+% \changes{v3.36}{2022/02/03}{use new documentation style}
+% \changes{v3.36}{2022/02/03}{using \file{scrlogo.dtx} to define the logo}
+%
+% \GetFileInfo{scrlfile-hook.dtx}
+% \title{\pkg{scrlfile} \KOMAScript{} Sub-Packages \pkg{scrlfile-hook} and
+% \pkg{scrlfile-hook-3.34}}
+% \author{\href{mailto:komascript@gmx.info}{Markus Kohm}}
+% \date{Revision \fileversion{} of \filedate}
+% \maketitle
+% \begin{abstract}
+% This package provides hooks before and after loading files, packages or
+% classes. It also provides a hook after the last \cs{clearpage} of the
+% document. It allowes to replace files, packages and classes by other
+% files, packages and classes. It is inteded to be used by package and class
+% authors but may also be used by \LaTeX{} users.
+% \end{abstract}
+% \tableofcontents
+%
%
-% \section{The User Manual of \textsf{scrlfile-hook}}
+% \section{User Manual}
%
-% \textsf{scrlfile-hook} implements the \LaTeX-hook-based part of
-% \textsf{scrlfile}.
+% \pkg{scrlfile-hook} implements the \LaTeX-hook-based part of
+% \pkg{scrlfile}. \pkg{scrlfile-hook-3.34} is a variant for \LaTeX{} kernel
+% versions before 2021/06/01.
%
% There isn't any user manual for the user level \LaTeXe{} commands in this
-% file. Please see the manual of \textsf{scrlfile} for more information about
-% \textsf{scrlfile-hook}.
+% file. Please see the manual of \pkg{scrlfile} for more information about
+% \pkg{scrlfile-hook} and \pkg{scrlfile-hook-3.34}.
%
% This section, however, contains the user manual of the \LaTeX3{} package
% author commands.
@@ -135,17 +117,17 @@
% Tests if the class \meta{class name} resp. the package \meta{package name}
% has been loaded completely. It runs the \Arg{true code} only, if the input
% of the class file with the name \meta{class
-% name}\texttt{.}\cs{@clsextension} resp. the package file with the name
-% \meta{package name}\texttt{.}\cs{@pkgextension} has already been
+% name}\file{.}\cs{@clsextension} resp. the package file with the name
+% \meta{package name}\file{.}\cs{@pkgextension} has already been
% finished. It runs the \Arg{false code}, if the class or package has not
% been loaded or the input of the class or package file is still in
% progress.
% \end{function}
%
%
-% \StopEventually{\PrintIndex\PrintChanges}
+% \MaybeStop{\PrintIndex}
%
-% \section{The Implementation of \textsf{scrlfile-hook}}
+% \section{Implementation of \pkg{scrlfile-hook}}
%
% \begin{macrocode}
%<@@=scrlfile>
@@ -156,6 +138,7 @@
% direct usage}
% \changes{v3.35}{2021/10/31}{new file version because \LaTeX{} kernel
% 2021/11/15 has changed the field order of gerneric hooks}
+% \changes{v3.36}{2022/02/03}{package name in messages fixed}
% \begin{macrocode}
\@ifundefined{IfFormatAtLeastTF}{%
\PackageError{scrlfile-hook}{not recommended usage of package}{%
@@ -171,7 +154,7 @@
\IfFormatAtLeastTF{2020/10/01}{%
\IfFormatAtLeastTF{2021/11/15}{%
%<*3.34>
- \PackageError{scrfile-hook-3.34}{LaTeX too new for this package}{%
+ \PackageError{scrlfile-hook-3.34}{LaTeX too new for this package}{%
It seems this package has ben loaded directly using a LaTeX
version\MessageBreak
newer than 2021-06-01. This is not recommended. Please always load
@@ -189,7 +172,7 @@
prior to 2021-11-15. This is not recommended. Please always load
package\MessageBreak
scrlfile instead of scrlfile-hook.\MessageBreak
- If you would continue, I will try to load scrfile-hook-3.34%
+ If you would continue, I will try to load scrlfile-hook-3.34%
}%
\RequirePackage{scrlfile-hook-3.34}\endinput
%</current>
@@ -357,9 +340,10 @@
% Unfortunately we need an ugly hack to initialise the stack using an internal
% kernel variable. This is a no go but I do not know a better solution for
% this, because loading of the package could be done late.
-% TODO: Decide, if the second or fourth token is correct. If fourth,
-% \cs{CurrentFile} has to be used always instead of
-% \cs{CurrentFileUsed}.
+% \begin{description}
+% \item[ToDo:] Decide, if the second or fourth token is correct. If fourth,
+% \cs{CurrentFile} has to be used always instead of \cs{CurrentFileUsed}.
+% \end{description}
% \begin{macrocode}
\cs_if_exist:NTF \g__filehook_input_file_seq
{
@@ -709,18 +693,15 @@
% \end{macrocode}
% \end{macro}
%
-% \subsection{The \KOMAScript{} Logo}
-%
-% Last but not least this is a \KOMAScript{} package, so we also define the
-% \KOMAScript{} logo:
-% \begin{macrocode}
-\RequirePackage{scrlogo}
-% \end{macrocode}
-%
% \Finale
+% \PrintChanges
%
% \endinput
% Local Variables:
% mode: doctex
+% ispell-local-dictionary: "en_US"
+% eval: (flyspell-mode 1)
% TeX-master: t
+% TeX-engine: luatex-dev
+% eval: (setcar (or (cl-member "Index" (setq-local TeX-command-list (copy-alist TeX-command-list)) :key #'car :test #'string-equal) (setq-local TeX-command-list (cons nil TeX-command-list))) '("Index" "mkindex %s" TeX-run-index nil t :help "makeindex for dtx"))
% End: