[latex3-commits] [git/LaTeX3-latex3-latex2e] copyedits-chris: copyedits ltfilehook (with alterations) [ci skip] (c83e254f)

Frank Mittelbach frank.mittelbach at latex-project.org
Tue Sep 7 08:58:19 CEST 2021


Repository : https://github.com/latex3/latex2e
On branch  : copyedits-chris
Link       : https://github.com/latex3/latex2e/commit/c83e254f05d65b43b7436eaa1157a504f917ecbd

>---------------------------------------------------------------

commit c83e254f05d65b43b7436eaa1157a504f917ecbd
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Tue Sep 7 08:58:19 2021 +0200

    copyedits ltfilehook  (with alterations) [ci skip]


>---------------------------------------------------------------

c83e254f05d65b43b7436eaa1157a504f917ecbd
 base/ltfilehook.dtx | 23 +++++++++++------------
 1 file changed, 11 insertions(+), 12 deletions(-)

diff --git a/base/ltfilehook.dtx b/base/ltfilehook.dtx
index bd69aa51..379f5fda 100644
--- a/base/ltfilehook.dtx
+++ b/base/ltfilehook.dtx
@@ -278,15 +278,14 @@
 %
 %    All class or package hooks involving the name of the class or
 %    package are implemented as
-%    one-time hooks, the other as normal hooks. This allows for the
+%    one-time hooks, whereas those without a name are normal hooks. This allows for the
 %    following use case
 %\begin{verbatim}
 %  \AddToHook{package/varioref/after}
 %        { ... apply my customizations if the package gets
 %          loaded (or was loaded already) ... }
 %\end{verbatim}
-%    without the need to first test if the package was already loaded
-%    before.
+%    without the need to first test if the package is already loaded.
 %
 %
 %
@@ -357,8 +356,8 @@
 %      got added this way.}
 %
 %
-%    All include hooks involving the include file name are implemented as
-%    one-time hooks, the other as normal hooks.
+%    All include hooks involving the name of the included file are implemented as
+%    one-time hooks (whereas all other such hooks are normal hooks).
 %
 %
 %
@@ -720,14 +719,14 @@
 %
 % \subsection{Declaring the file-related hooks}
 %
-% Three-part hooks starting with \hook{file/} \hook{include/},
-% \hook{class/} or \hook{package/} and ending with \hook{/before} or
-% \hook{/after} (or \hook{/end} in case of \hook{include/}) are generic
-% and will be allocated if code is added to them.
+% These are three-part hooks. they start with \hook{file/}, \hook{include/},
+% \hook{class/} or \hook{package/} and end with \hook{/before} or
+% \hook{/after} (or \hook{/end} in case of \hook{include/}). They are all generic
+% so will be automatically declared if code is added to them.
+%
+% Those named \hook{.../after} and \texttt{include/.../end}
+% are, when code is added, automatically declared as reversed hooks.
 %
-% Furthermore, those named \hook{.../after} and \texttt{include/.../end}
-% are automatically declared as reversed hooks if filled with code, so
-% this is also automatically taken care of.
 %
 % \subsection{Patching \LaTeX{}'s \cs{InputIfFileExists} command}
 %





More information about the latex3-commits mailing list.