[latex3-commits] [git/LaTeX3-latex3-latex2e] lthooks-doc-updates: Minor doc fixes (9c789057)

PhelypeOleinik phelype.oleinik at latex-project.org
Fri Aug 6 04:12:27 CEST 2021


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

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

commit 9c789057c4e1fe8b710ab053038b066f388e6031
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Thu Aug 5 23:12:27 2021 -0300

    Minor doc fixes


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

9c789057c4e1fe8b710ab053038b066f388e6031
 base/lthooks.dtx | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/base/lthooks.dtx b/base/lthooks.dtx
index 22bf9712..ad12d42f 100644
--- a/base/lthooks.dtx
+++ b/base/lthooks.dtx
@@ -210,11 +210,12 @@
 %   \begin{syntax}
 %     \cs{ActivateGenericHook} \Arg{hook}
 %   \end{syntax}
-%    This delcaration activates a generic hook provided by a package/class
+%    This declaration activates a generic hook provided by a package/class
 %    (e.g., one used in code with \cs{UseHook} or
-%    \cs{UseOnteTimeHook} without it being explicitly declared with
+%    \cs{UseOneTimeHook} without it being explicitly declared with
 %    \cs{NewHook}).
-%    If already activated it does nothing.
+%    This command undoes the effect of \cs{DisableGenericHook}.
+%    If the hook is already activated, this command does nothing.
 %
 %    See section~\ref{sec:generic-hooks} for a discussion of when this
 %    declaration is appropriate.
@@ -2295,7 +2296,7 @@
 %
 %    \item[disabled]
 %
-%       A hook in any state is moved to this state when
+%       A generic hook in any state is moved to this state when
 %       \cs{DisableGenericHook} is used. This changes the tests to give the
 %       following results:
 %     \begin{itemize}
@@ -2305,7 +2306,7 @@
 %       \item [@@_if_disabled:nTF]  returns |true|.
 %     \end{itemize}
 %       The  structure test is unchanged (if the hook was unknown before it is
-%       false, otherwise true). The usable test returns false so that
+%       |false|, otherwise |true|). The usable test returns |false| so that
 %       any \cs{UseHook} will bypass the hook from now on. The
 %       declared test returns true so that any further \cs{NewHook}
 %       generates an error and the disabled test returns true so that
@@ -4814,11 +4815,10 @@
 % \changes{v1.0m}{2021/04/29}{Add \cs{ProvideHook} etc.}
 % \changes{v1.0o}{2021/08/02}{Change name}
 %    \begin{macrocode}
-\NewDocumentCommand \ActivateGenericHook{ m }{ \hook_activate_generic:n {#1} }
+\NewDocumentCommand \ActivateGenericHook { m }{ \hook_activate_generic:n {#1} }
 %    \end{macrocode}
 %  \end{macro}
 %
-%
 %  \begin{macro}{\DisableGenericHook}
 %    Disabling a generic hook.
 % \changes{v1.0o}{2021/08/02}{Change name}





More information about the latex3-commits mailing list.