[latex3-commits] [git/LaTeX3-latex3-latex2e] lthooks-doc-updates: small rewrite (2c407a85)

Frank Mittelbach frank.mittelbach at latex-project.org
Fri Jul 23 11:48:53 CEST 2021


Repository : https://github.com/latex3/latex2e
On branch  : lthooks-doc-updates
Link       : https://github.com/latex3/latex2e/commit/2c407a8573bc74e408c9fcffbd710d5da74c8c51

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

commit 2c407a8573bc74e408c9fcffbd710d5da74c8c51
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Fri Jul 23 11:48:53 2021 +0200

    small rewrite


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

2c407a8573bc74e408c9fcffbd710d5da74c8c51
 base/lthooks.dtx | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/base/lthooks.dtx b/base/lthooks.dtx
index cbb0cd84..102b8191 100644
--- a/base/lthooks.dtx
+++ b/base/lthooks.dtx
@@ -32,7 +32,7 @@
 %
 %    \begin{macrocode}
 \def\lthooksversion{v1.0n}
-\def\lthooksdate{2021/07/18}
+\def\lthooksdate{2021/07/23}
 %    \end{macrocode}
 %
 %<*driver>
@@ -385,13 +385,14 @@
 %    executed in the order in which it was declared.\footnotemark
 %
 %    If this command is used with a one-time hook the code is only
-%    used if the call happens before the hook execution, i.e., in
-%    contrast to \cs{AddToHook} it is not executed immediately if it
-%    comes afterwards---in other words it truely executes on the next
-%    invocation only there is none in case of a one-time hook.  This
-%    gives you a choice: should my code executes always or should it
-%    only execute exactly at the point where the one-time hook is
-%    called or not at all? For both there are use cases.
+%    ever used if we arebefore the hook execution, i.e., in contrast
+%    to \cs{AddToHook} the code is not executed immediately if the
+%    hook execution already happened---in other words it truely
+%    executes on the next invocation, only there is none in case of a
+%    one-time hook.  This gives you a choice: should my code execute
+%    always or should it only execute only at the point where the
+%    one-time hook is used and not at all if this is impossible? For
+%    both there are use cases.
 %
 %    It is possible to nest declarations using the same hook (or
 %    different hooks), e.g.,





More information about the latex3-commits mailing list.