[latex3-commits] [latex3/latex2e] cmd-args: If in the preamble, declare cmd hooks with 9 args (cffa1da8)

github at latex-project.org github at latex-project.org
Thu May 18 05:28:59 CEST 2023


Repository : https://github.com/latex3/latex2e
On branch  : cmd-args
Link       : https://github.com/latex3/latex2e/commit/cffa1da8261b481842a5700774e3a7d40bce27e7

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

commit cffa1da8261b481842a5700774e3a7d40bce27e7
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Thu May 18 00:28:59 2023 -0300

    If in the preamble, declare cmd hooks with 9 args


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

cffa1da8261b481842a5700774e3a7d40bce27e7
 base/lthooks.dtx | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/base/lthooks.dtx b/base/lthooks.dtx
index d0348ccc..20a20425 100644
--- a/base/lthooks.dtx
+++ b/base/lthooks.dtx
@@ -3917,6 +3917,11 @@
             \str_if_eq:nnT {#1} { cmd }
               {
                 \@@_try_put_cmd_hook:n {#5}
+                \cs_if_exist:NT \@@_cmd_begindocument_code:
+                  {
+                    \@@_make_usable:nn {#5} { 9 }
+                    \use_none:nnn
+                  }
               }
 %    \end{macrocode}
 %





More information about the latex3-commits mailing list.