[latex3-commits] [git/LaTeX3-latex3-latex2e] gh648: Minor doc fixes (6ae0dad0)

PhelypeOleinik phelype.oleinik at latex-project.org
Sat Aug 28 15:48:26 CEST 2021


Repository : https://github.com/latex3/latex2e
On branch  : gh648
Link       : https://github.com/latex3/latex2e/commit/6ae0dad0750ca215684f2c9bd3381cf656093e42

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

commit 6ae0dad0750ca215684f2c9bd3381cf656093e42
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Sat Aug 28 10:48:26 2021 -0300

    Minor doc fixes


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

6ae0dad0750ca215684f2c9bd3381cf656093e42
 base/ltcmdhooks.dtx |  5 ++---
 base/ltfilehook.dtx | 13 ++++++++-----
 2 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/base/ltcmdhooks.dtx b/base/ltcmdhooks.dtx
index ac1ab900..2fabad10 100644
--- a/base/ltcmdhooks.dtx
+++ b/base/ltcmdhooks.dtx
@@ -403,9 +403,8 @@
 % \begin{macro}{\@@_try_put_cmd_hook:n,\@@_try_put_cmd_hook:w}
 %   Before |\begin{document}| all patching is delayed.
 %   This function is called from within \cs{AddToHook}, when code is
-%   added to a generic |cmd| hook is newly declared.  It checks either
-%   tries to patch or delay patching to |\begin{document}| if in the
-%   preamble.
+%   first added to a generic |cmd| hook.  It either tries to patch
+%   or delay patching to |\begin{document}| if in the preamble.
 % \changes{v1.0d}{2021/08/25}{Simplify generic hook detection}
 %    \begin{macrocode}
 %<latexrelease>\IncludeInRelease{2021/11/15}{\@@_try_put_cmd_hook:n}%
diff --git a/base/ltfilehook.dtx b/base/ltfilehook.dtx
index 21341bb4..bd69aa51 100644
--- a/base/ltfilehook.dtx
+++ b/base/ltfilehook.dtx
@@ -720,11 +720,14 @@
 %
 % \subsection{Declaring the file-related hooks}
 %
-%  Three-part hooks starting with \texttt{file/} \texttt{include/},
-%  \texttt{class/} or \texttt{package/} and ending with \texttt{/before}
-%  or \texttt{/after} (or \texttt{/end} in case of \texttt{include/})
-%  are generic and will be allocated if code is added to them.
-%
+% 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.
+%
+% 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.