[latex3-commits] [git/LaTeX3-latex3-latex2e] lthooks: a smallfix in the code and some docu updates (8188c9a4)

Frank Mittelbach frank.mittelbach at latex-project.org
Thu Jul 9 23:55:49 CEST 2020


Repository : https://github.com/latex3/latex2e
On branch  : lthooks
Link       : https://github.com/latex3/latex2e/commit/8188c9a4ac2fcbee2fbbca542e50ec0e686207fc

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

commit 8188c9a4ac2fcbee2fbbca542e50ec0e686207fc
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Thu Jul 9 23:55:49 2020 +0200

    a smallfix in the code and some docu updates


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

8188c9a4ac2fcbee2fbbca542e50ec0e686207fc
 base/ltfilehook.dtx |  9 ++-------
 base/lthooks.dtx    | 24 ++++++++++++------------
 2 files changed, 14 insertions(+), 19 deletions(-)

diff --git a/base/ltfilehook.dtx b/base/ltfilehook.dtx
index 56314915..acee2b3f 100644
--- a/base/ltfilehook.dtx
+++ b/base/ltfilehook.dtx
@@ -17,8 +17,8 @@
 % for those people who are interested or want to report an issue.
 %
 %    \begin{macrocode}
-\providecommand\ltfilehookversion{v0.6a}
-\providecommand\ltfilehookdate{2020/07/07}
+\providecommand\ltfilehookversion{v0.6b}
+\providecommand\ltfilehookdate{2020/07/09}
 %    \end{macrocode}
 %
 %<*driver>
@@ -1025,11 +1025,6 @@
   }                      
 }                      
 %    \end{macrocode}
-%    \fmi{bug: AddToHookNext doesn't work in the preamble, so had
-%         to force the init}
-%    \begin{macrocode}
-\AddToHook{file/after}{}
-%    \end{macrocode}
 %
 %    We have to manually increment the level because now that we have
 %    installed the code in \texttt{file/after} it gets decremented
diff --git a/base/lthooks.dtx b/base/lthooks.dtx
index 577d9529..8add392d 100644
--- a/base/lthooks.dtx
+++ b/base/lthooks.dtx
@@ -299,18 +299,18 @@
 % \meta{label} throughout the sub-packages in order to avoid
 % that the labels change if you internally reorganize your code.
 %
-% It is not enforced, but highly recommended that the label contains the
-% package name to easily identify the source of the code chunk and to
-% prevent clashes.  This should be the standard practice, so this hook
-% management code provides a shortcut to refer to the current package
-% name in a \meta{label}.  In a \meta{label}, a single dot (|.|), or a
-% dot followed by a slash (|./|) denote the \meta{default label}
-% (usually the current package or class
-% name---see~\cs{DeclareDefaultHookLabel}).
-% A \enquote{|.|} or \enquote{|./|} anywhere else in a \meta{label} is
-% treated literally and not replaced.
-% For example, inside the package \texttt{mypackage.sty}, the default
-% label is \texttt{mypackage}, so the instructions:
+% It is not enforced, but highly recommended that the label contains
+% the package name to easily identify the source of the code chunk and
+% to prevent clashes.  This should be the standard practice, so this
+% hook management code provides a shortcut to refer to the current
+% package name in a \meta{label}.  If a \meta{label} consists just of
+% a single dot (|.|), or starts with a dot followed by a slash (|./|)
+% then the dot denotes the \meta{default label} (usually the current
+% package or class name---see~\cs{DeclareDefaultHookLabel}).  A
+% \enquote{|.|} or \enquote{|./|} anywhere else in a \meta{label} is
+% treated literally and is not replaced.  For example, inside the package
+% \texttt{mypackage.sty}, the default label is \texttt{mypackage}, so
+% the instructions:
 % \begin{verbatim}
 %   \AddToHook {hook}[.]{code} % Same as \AddToHook {hook}{code}
 %   \AddToHook {hook}[./sub]{code}





More information about the latex3-commits mailing list.