[latex3-commits] [latex3/latex2e] cmd-args: More tests (ba45c02a)

github at latex-project.org github at latex-project.org
Fri May 19 04:17:47 CEST 2023


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

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

commit ba45c02a7789531a01aab429440a25c16ec7fae7
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Thu May 18 23:17:47 2023 -0300

    More tests


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

ba45c02a7789531a01aab429440a25c16ec7fae7
 base/testfiles-lthooks/ltcmdhooks-013.lvt | 13 +++--
 base/testfiles-lthooks/ltcmdhooks-013.tlg | 21 +++++--
 base/testfiles-lthooks/ltcmdhooks-014.lvt | 23 +++++++-
 base/testfiles-lthooks/ltcmdhooks-014.tlg | 92 +++++++++++++++++++++++++++++--
 base/testfiles-lthooks/ltcmdhooks-015.lvt | 23 +++++++-
 base/testfiles-lthooks/ltcmdhooks-015.tlg | 92 +++++++++++++++++++++++++++++--
 6 files changed, 240 insertions(+), 24 deletions(-)

diff --git a/base/testfiles-lthooks/ltcmdhooks-013.lvt b/base/testfiles-lthooks/ltcmdhooks-013.lvt
index d8f37258..fc1a89c5 100755
--- a/base/testfiles-lthooks/ltcmdhooks-013.lvt
+++ b/base/testfiles-lthooks/ltcmdhooks-013.lvt
@@ -1,7 +1,7 @@
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% \RequirePackage[enable-debug,check-declarations]{expl3}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\RequirePackage[enable-debug,check-declarations]{expl3}
 \ExplSyntaxOn
-% \debug_on:n { deprecation }
+\debug_on:n { deprecation }
 \ExplSyntaxOff
 
 \input{regression-test}
@@ -15,6 +15,11 @@
 \AddToHookWithArguments{cmd/bar/before}[X]{\typeout{[bar/before] (#1)}}
 \AddToHookWithArguments{cmd/bar/after}[X]{\typeout{[bar/after] (#2)}}
 
+% again
+\AddToHookWithArguments{cmd/foo/before}[X]{\typeout{[foo/before/2] (#1)}}
+\AddToHookWithArguments{cmd/bar/before}[X]{\typeout{[bar/before/2] (#1)}}
+\AddToHookWithArguments{cmd/bar/after}[X]{\typeout{[bar/after/2] (#2)}}
+
 \ShowHook{cmdfoobefore}
 \ShowHook{cmd/foo/before} % (unknown arguments)
 
@@ -31,7 +36,7 @@
 \ShowHook{cmd/bar/before} % (1 argument)
 \ShowHook{cmd/bar/after} % (1 argument)
 
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 \def\Abar#1{\typeout{[Abar/body] (#1)}}
 
diff --git a/base/testfiles-lthooks/ltcmdhooks-013.tlg b/base/testfiles-lthooks/ltcmdhooks-013.tlg
index d7b0eb20..6464d687 100755
--- a/base/testfiles-lthooks/ltcmdhooks-013.tlg
+++ b/base/testfiles-lthooks/ltcmdhooks-013.tlg
@@ -16,7 +16,7 @@ Don't change this file in any respect.
 l. ...\ShowHook{cmdfoobefore}
 -> The generic hook 'cmd/foo/before' (unknown arguments):
 > Code chunks:
->     X -> \typeout {[foo/before] (#1)}
+>     X -> \typeout {[foo/before] (#1)}\typeout {[foo/before/2] (#1)}
 > Document-level (top-level) code (executed last):
 >     ---
 > Extra code for next invocation:
@@ -33,7 +33,7 @@ l. ...\ShowHook{cmd/foo/before}
 l. ...\show\bar
 -> The generic hook 'cmd/bar/before' (unknown arguments):
 > Code chunks:
->     X -> \typeout {[bar/before] (#1)}
+>     X -> \typeout {[bar/before] (#1)}\typeout {[bar/before/2] (#1)}
 > Document-level (top-level) code (executed last):
 >     ---
 > Extra code for next invocation:
@@ -47,7 +47,7 @@ l. ...\ShowHook{cmd/bar/before}
                                % (unknown arguments)
 -> The generic hook 'cmd/bar/after' (unknown arguments):
 > Code chunks:
->     X -> \typeout {[bar/after] (#2)}
+>     X -> \typeout {[bar/after] (#2)}\typeout {[bar/after/2] (#2)}
 > Document-level (top-level) code (executed first):
 >     ---
 > Extra code for next invocation:
@@ -68,6 +68,15 @@ l. ......e __hook_cmd_begindocument_code:\endcsname
 You meant to type ## instead of #, right?
 Or maybe a } was forgotten somewhere earlier, and things
 are all screwed up? I'm going to assume that you meant ##.
+! Illegal parameter number in definition of hook 'cmd/bar/after'.
+(hooks)             Offending label: 'X'.
+<to be read again> 
+                   2
+l. ......e __hook_cmd_begindocument_code:\endcsname
+                                                   % \begin{document}
+You meant to type ## instead of #, right?
+Or maybe a } was forgotten somewhere earlier, and things
+are all screwed up? I'm going to assume that you meant ##.
 -> The hook 'cmdfoobefore':
 > The hook is not declared.
 > Code chunks:
@@ -84,7 +93,7 @@ are all screwed up? I'm going to assume that you meant ##.
 l. ...\ShowHook{cmdfoobefore}
 -> The generic hook 'cmd/foo/before' (unknown arguments):
 > Code chunks:
->     X -> \typeout {[foo/before] (#1)}
+>     X -> \typeout {[foo/before] (#1)}\typeout {[foo/before/2] (#1)}
 > Document-level (top-level) code (executed last):
 >     ---
 > Extra code for next invocation:
@@ -101,7 +110,7 @@ l. ...\ShowHook{cmd/foo/before}
 l. ...\show\bar
 -> The generic hook 'cmd/bar/before' (1 argument):
 > Code chunks:
->     X -> \typeout {[bar/before] (#1)}
+>     X -> \typeout {[bar/before] (#1)}\typeout {[bar/before/2] (#1)}
 > Document-level (top-level) code (executed last):
 >     ---
 > Extra code for next invocation:
@@ -115,7 +124,7 @@ l. ...\ShowHook{cmd/bar/before}
                                % (1 argument)
 -> The generic hook 'cmd/bar/after' (1 argument):
 > Code chunks:
->     X -> \typeout {[bar/after] (##2)}
+>     X -> \typeout {[bar/after] (##2)}\typeout {[bar/after/2] (##2)}
 > Document-level (top-level) code (executed first):
 >     ---
 > Extra code for next invocation:
diff --git a/base/testfiles-lthooks/ltcmdhooks-014.lvt b/base/testfiles-lthooks/ltcmdhooks-014.lvt
index c83d6aac..c4187842 100755
--- a/base/testfiles-lthooks/ltcmdhooks-014.lvt
+++ b/base/testfiles-lthooks/ltcmdhooks-014.lvt
@@ -1,4 +1,4 @@
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \RequirePackage[enable-debug,check-declarations]{expl3}
 \ExplSyntaxOn
 \debug_on:n { deprecation }
@@ -15,6 +15,11 @@
 \AddToHookWithArguments{cmd/bar/before}[top-level]{\typeout{[bar/before] (#1)}}
 \AddToHookWithArguments{cmd/bar/after}[top-level]{\typeout{[bar/after] (#2)}}
 
+% again
+\AddToHookWithArguments{cmd/foo/before}[top-level]{\typeout{[foo/before/2] (#1)}}
+\AddToHookWithArguments{cmd/bar/before}[top-level]{\typeout{[bar/before/2] (#1)}}
+\AddToHookWithArguments{cmd/bar/after}[top-level]{\typeout{[bar/after/2] (#2)}}
+
 \ShowHook{cmdfoobefore}
 \ShowHook{cmd/foo/before} % (unknown arguments)
 
@@ -31,4 +36,20 @@
 \ShowHook{cmd/bar/before} % (1 argument)
 \ShowHook{cmd/bar/after} % (1 argument)
 
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\def\Abar#1{\typeout{[Abar/body] (#1)}}
+
+\AddToHookWithArguments{cmdAfoobefore}[top-level]{\typeout{[Afoo/before] (#1)}}
+\AddToHookWithArguments{cmd/Afoo/before}[top-level]{\typeout{[Afoo/before] (#1)}}
+\AddToHookWithArguments{cmd/Abar/before}[top-level]{\typeout{[Abar/before] (#1)}}
+\AddToHookWithArguments{cmd/Abar/after}[top-level]{\typeout{[Abar/after] (#2)}}
+
+\ShowHook{cmdAfoobefore}
+\ShowHook{cmd/Afoo/before} % (unknown arguments)
+
+\show\Abar
+\ShowHook{cmd/Abar/before} % (1 argument)
+\ShowHook{cmd/Abar/after} % (1 argument)
+
 \END
diff --git a/base/testfiles-lthooks/ltcmdhooks-014.tlg b/base/testfiles-lthooks/ltcmdhooks-014.tlg
index a578a2ac..9b03c626 100755
--- a/base/testfiles-lthooks/ltcmdhooks-014.tlg
+++ b/base/testfiles-lthooks/ltcmdhooks-014.tlg
@@ -18,7 +18,7 @@ l. ...\ShowHook{cmdfoobefore}
 > Code chunks:
 >     ---
 > Document-level (top-level) code (executed last):
->     -> \typeout {[foo/before] (#1)}
+>     -> \typeout {[foo/before] (#1)}\typeout {[foo/before/2] (#1)}
 > Extra code for next invocation:
 >     ---
 > Rules:
@@ -35,7 +35,7 @@ l. ...\show\bar
 > Code chunks:
 >     ---
 > Document-level (top-level) code (executed last):
->     -> \typeout {[bar/before] (#1)}
+>     -> \typeout {[bar/before] (#1)}\typeout {[bar/before/2] (#1)}
 > Extra code for next invocation:
 >     ---
 > Rules:
@@ -49,7 +49,7 @@ l. ...\ShowHook{cmd/bar/before}
 > Code chunks:
 >     ---
 > Document-level (top-level) code (executed first):
->     -> \typeout {[bar/after] (#2)}
+>     -> \typeout {[bar/after] (#2)}\typeout {[bar/after/2] (#2)}
 > Extra code for next invocation:
 >     ---
 > Rules:
@@ -67,6 +67,14 @@ l. ......e __hook_cmd_begindocument_code:\endcsname
 You meant to type ## instead of #, right?
 Or maybe a } was forgotten somewhere earlier, and things
 are all screwed up? I'm going to assume that you meant ##.
+! Illegal parameter number in definition of \__hook_toplevel cmd/bar/after.
+<to be read again> 
+                   2
+l. ......e __hook_cmd_begindocument_code:\endcsname
+                                                   % \begin{document}
+You meant to type ## instead of #, right?
+Or maybe a } was forgotten somewhere earlier, and things
+are all screwed up? I'm going to assume that you meant ##.
 -> The hook 'cmdfoobefore':
 > The hook is not declared.
 > Code chunks:
@@ -85,7 +93,7 @@ l. ...\ShowHook{cmdfoobefore}
 > Code chunks:
 >     ---
 > Document-level (top-level) code (executed last):
->     -> \typeout {[foo/before] (#1)}
+>     -> \typeout {[foo/before] (#1)}\typeout {[foo/before/2] (#1)}
 > Extra code for next invocation:
 >     ---
 > Rules:
@@ -102,7 +110,7 @@ l. ...\show\bar
 > Code chunks:
 >     ---
 > Document-level (top-level) code (executed last):
->     -> \typeout {[bar/before] (#1)}
+>     -> \typeout {[bar/before] (#1)}\typeout {[bar/before/2] (#1)}
 > Extra code for next invocation:
 >     ---
 > Rules:
@@ -116,7 +124,7 @@ l. ...\ShowHook{cmd/bar/before}
 > Code chunks:
 >     ---
 > Document-level (top-level) code (executed first):
->     -> \typeout {[bar/after] (##2)}
+>     -> \typeout {[bar/after] (##2)}\typeout {[bar/after/2] (##2)}
 > Extra code for next invocation:
 >     ---
 > Rules:
@@ -126,3 +134,75 @@ l. ...\ShowHook{cmd/bar/before}
 <recently read> }
 l. ...\ShowHook{cmd/bar/after}
                               % (1 argument)
+! LaTeX hooks Error: Generic hooks cannot be added to '\Afoo'.
+For immediate help type H <return>.
+ ...                                              
+l. ......}[top-level]{\typeout{[Afoo/before] (#1)}}
+You tried to add a hook to '\Afoo', but LaTeX was unable to patch the command
+because it doesn't exist.
+! Illegal parameter number in definition of \__hook_toplevel cmd/Abar/after.
+<to be read again> 
+                   2
+l. ......r}[top-level]{\typeout{[Abar/after] (#2)}}
+You meant to type ## instead of #, right?
+Or maybe a } was forgotten somewhere earlier, and things
+are all screwed up? I'm going to assume that you meant ##.
+-> The hook 'cmdAfoobefore':
+> The hook is not declared.
+> Code chunks:
+>     ---
+> Document-level (top-level) code:
+>     -> \typeout {[Afoo/before] (#1)}
+> Extra code for next invocation:
+>     ---
+> Rules:
+>     ---
+> Execution order:
+>     Not set because the hook is undeclared.
+<recently read> }
+l. ...\ShowHook{cmdAfoobefore}
+-> The generic hook 'cmd/Afoo/before' (unknown arguments):
+> Code chunks:
+>     ---
+> Document-level (top-level) code (executed last):
+>     -> \typeout {[Afoo/before] (#1)}
+> Extra code for next invocation:
+>     ---
+> Rules:
+>     ---
+> Execution order:
+>     ---.
+<recently read> }
+l. ...\ShowHook{cmd/Afoo/before}
+                                % (unknown arguments)
+> \Abar=macro:
+#1->\UseHookWithArguments {cmd/Abar/before}{1}{#1}\typeout {[Abar/body] (#1)}\UseHookWithArguments {cmd/Abar/after}{1}{#1}.
+l. ...\show\Abar
+-> The generic hook 'cmd/Abar/before' (1 argument):
+> Code chunks:
+>     ---
+> Document-level (top-level) code (executed last):
+>     -> \typeout {[Abar/before] (#1)}
+> Extra code for next invocation:
+>     ---
+> Rules:
+>     ---
+> Execution order:
+>     ---.
+<recently read> }
+l. ...\ShowHook{cmd/Abar/before}
+                                % (1 argument)
+-> The generic hook 'cmd/Abar/after' (1 argument):
+> Code chunks:
+>     ---
+> Document-level (top-level) code (executed first):
+>     -> \typeout {[Abar/after] (##2)}
+> Extra code for next invocation:
+>     ---
+> Rules:
+>     ---
+> Execution order (after reversal):
+>     ---.
+<recently read> }
+l. ...\ShowHook{cmd/Abar/after}
+                               % (1 argument)
diff --git a/base/testfiles-lthooks/ltcmdhooks-015.lvt b/base/testfiles-lthooks/ltcmdhooks-015.lvt
index c0412d74..708d8c8e 100755
--- a/base/testfiles-lthooks/ltcmdhooks-015.lvt
+++ b/base/testfiles-lthooks/ltcmdhooks-015.lvt
@@ -1,4 +1,4 @@
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \RequirePackage[enable-debug,check-declarations]{expl3}
 \ExplSyntaxOn
 \debug_on:n { deprecation }
@@ -15,6 +15,11 @@
 \AddToHookNextWithArguments{cmd/bar/before}{\typeout{[bar/before] (#1)}}
 \AddToHookNextWithArguments{cmd/bar/after}{\typeout{[bar/after] (#2)}}
 
+% again
+\AddToHookNextWithArguments{cmd/foo/before}{\typeout{[foo/before/2] (#1)}}
+\AddToHookNextWithArguments{cmd/bar/before}{\typeout{[bar/before/2] (#1)}}
+\AddToHookNextWithArguments{cmd/bar/after}{\typeout{[bar/after/2] (#2)}}
+
 \ShowHook{cmdfoobefore}
 \ShowHook{cmd/foo/before} % (unknown arguments)
 
@@ -31,4 +36,20 @@
 \ShowHook{cmd/bar/before} % (1 argument)
 \ShowHook{cmd/bar/after} % (1 argument)
 
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\def\Abar#1{\typeout{[Abar/body] (#1)}}
+
+\AddToHookNextWithArguments{cmdAfoobefore}{\typeout{[Afoo/before] (#1)}}
+\AddToHookNextWithArguments{cmd/Afoo/before}{\typeout{[Afoo/before] (#1)}}
+\AddToHookNextWithArguments{cmd/Abar/before}{\typeout{[Abar/before] (#1)}}
+\AddToHookNextWithArguments{cmd/Abar/after}{\typeout{[Abar/after] (#2)}}
+
+\ShowHook{cmdAfoobefore}
+\ShowHook{cmd/Afoo/before} % (unknown arguments)
+
+\show\Abar
+\ShowHook{cmd/Abar/before} % (1 argument)
+\ShowHook{cmd/Abar/after} % (1 argument)
+
 \END
diff --git a/base/testfiles-lthooks/ltcmdhooks-015.tlg b/base/testfiles-lthooks/ltcmdhooks-015.tlg
index d303e2fa..5cd639d2 100755
--- a/base/testfiles-lthooks/ltcmdhooks-015.tlg
+++ b/base/testfiles-lthooks/ltcmdhooks-015.tlg
@@ -20,7 +20,7 @@ l. ...\ShowHook{cmdfoobefore}
 > Document-level (top-level) code (executed last):
 >     ---
 > Extra code for next invocation:
->     -> \typeout {[foo/before] (#1)}
+>     -> \typeout {[foo/before] (#1)}\typeout {[foo/before/2] (#1)}
 > Rules:
 >     ---
 > Execution order:
@@ -37,7 +37,7 @@ l. ...\show\bar
 > Document-level (top-level) code (executed last):
 >     ---
 > Extra code for next invocation:
->     -> \typeout {[bar/before] (#1)}
+>     -> \typeout {[bar/before] (#1)}\typeout {[bar/before/2] (#1)}
 > Rules:
 >     ---
 > Execution order:
@@ -51,7 +51,7 @@ l. ...\ShowHook{cmd/bar/before}
 > Document-level (top-level) code (executed first):
 >     ---
 > Extra code for next invocation:
->     -> \typeout {[bar/after] (#2)}
+>     -> \typeout {[bar/after] (#2)}\typeout {[bar/after/2] (#2)}
 > Rules:
 >     ---
 > Execution order (after reversal):
@@ -67,6 +67,14 @@ l. ......e __hook_cmd_begindocument_code:\endcsname
 You meant to type ## instead of #, right?
 Or maybe a } was forgotten somewhere earlier, and things
 are all screwed up? I'm going to assume that you meant ##.
+! Illegal parameter number in definition of \__hook_next cmd/bar/after.
+<to be read again> 
+                   2
+l. ......e __hook_cmd_begindocument_code:\endcsname
+                                                   % \begin{document}
+You meant to type ## instead of #, right?
+Or maybe a } was forgotten somewhere earlier, and things
+are all screwed up? I'm going to assume that you meant ##.
 -> The hook 'cmdfoobefore':
 > The hook is not declared.
 > Code chunks:
@@ -87,7 +95,7 @@ l. ...\ShowHook{cmdfoobefore}
 > Document-level (top-level) code (executed last):
 >     ---
 > Extra code for next invocation:
->     -> \typeout {[foo/before] (#1)}
+>     -> \typeout {[foo/before] (#1)}\typeout {[foo/before/2] (#1)}
 > Rules:
 >     ---
 > Execution order:
@@ -104,7 +112,7 @@ l. ...\show\bar
 > Document-level (top-level) code (executed last):
 >     ---
 > Extra code for next invocation:
->     -> \typeout {[bar/before] (#1)}
+>     -> \typeout {[bar/before] (#1)}\typeout {[bar/before/2] (#1)}
 > Rules:
 >     ---
 > Execution order:
@@ -118,7 +126,7 @@ l. ...\ShowHook{cmd/bar/before}
 > Document-level (top-level) code (executed first):
 >     ---
 > Extra code for next invocation:
->     -> \typeout {[bar/after] (##2)}
+>     -> \typeout {[bar/after] (##2)}\typeout {[bar/after/2] (##2)}
 > Rules:
 >     ---
 > Execution order (after reversal):
@@ -126,3 +134,75 @@ l. ...\ShowHook{cmd/bar/before}
 <recently read> }
 l. ...\ShowHook{cmd/bar/after}
                               % (1 argument)
+! LaTeX hooks Error: Generic hooks cannot be added to '\Afoo'.
+For immediate help type H <return>.
+ ...                                              
+l. ......Afoo/before}{\typeout{[Afoo/before] (#1)}}
+You tried to add a hook to '\Afoo', but LaTeX was unable to patch the command
+because it doesn't exist.
+! Illegal parameter number in definition of \__hook_next cmd/Abar/after.
+<to be read again> 
+                   2
+l. ......d/Abar/after}{\typeout{[Abar/after] (#2)}}
+You meant to type ## instead of #, right?
+Or maybe a } was forgotten somewhere earlier, and things
+are all screwed up? I'm going to assume that you meant ##.
+-> The hook 'cmdAfoobefore':
+> The hook is not declared.
+> Code chunks:
+>     ---
+> Document-level (top-level) code:
+>     ---
+> Extra code for next invocation:
+>     -> \typeout {[Afoo/before] (#1)}
+> Rules:
+>     ---
+> Execution order:
+>     Not set because the hook is undeclared.
+<recently read> }
+l. ...\ShowHook{cmdAfoobefore}
+-> The generic hook 'cmd/Afoo/before' (unknown arguments):
+> Code chunks:
+>     ---
+> Document-level (top-level) code (executed last):
+>     ---
+> Extra code for next invocation:
+>     -> \typeout {[Afoo/before] (#1)}
+> Rules:
+>     ---
+> Execution order:
+>     ---.
+<recently read> }
+l. ...\ShowHook{cmd/Afoo/before}
+                                % (unknown arguments)
+> \Abar=macro:
+#1->\UseHookWithArguments {cmd/Abar/before}{1}{#1}\typeout {[Abar/body] (#1)}\UseHookWithArguments {cmd/Abar/after}{1}{#1}.
+l. ...\show\Abar
+-> The generic hook 'cmd/Abar/before' (1 argument):
+> Code chunks:
+>     ---
+> Document-level (top-level) code (executed last):
+>     ---
+> Extra code for next invocation:
+>     -> \typeout {[Abar/before] (#1)}
+> Rules:
+>     ---
+> Execution order:
+>     ---.
+<recently read> }
+l. ...\ShowHook{cmd/Abar/before}
+                                % (1 argument)
+-> The generic hook 'cmd/Abar/after' (1 argument):
+> Code chunks:
+>     ---
+> Document-level (top-level) code (executed first):
+>     ---
+> Extra code for next invocation:
+>     -> \typeout {[Abar/after] (##2)}
+> Rules:
+>     ---
+> Execution order (after reversal):
+>     ---.
+<recently read> }
+l. ...\ShowHook{cmd/Abar/after}
+                               % (1 argument)





More information about the latex3-commits mailing list.