[latex3-commits] [git/LaTeX3-latex3-latex2e] gh648: Hooks like file/before are not actually generic (f4c5e476)

PhelypeOleinik phelype.oleinik at latex-project.org
Mon Aug 16 07:18:06 CEST 2021


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

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

commit f4c5e4765e10fd3795c576b699d6d579292d5569
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Mon Aug 16 02:18:06 2021 -0300

    Hooks like file/before are not actually generic


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

f4c5e4765e10fd3795c576b699d6d579292d5569
 base/ltclass.dtx                          |  8 +++++--
 base/ltfilehook.dtx                       |  5 +++++
 base/ltfiles.dtx                          |  6 ++++++
 base/testfiles-lthooks/ltcmdhooks-001.tlg |  9 ++++++++
 base/testfiles-lthooks/lthooks-000.tlg    |  9 ++++++++
 base/testfiles-lthooks/lthooks-001.tlg    | 27 +++++++++++++++++++++++
 base/testfiles-lthooks/lthooks-002.tlg    | 27 +++++++++++++++++++++++
 base/testfiles-lthooks/lthooks-003.tlg    | 18 ++++++++++++++++
 base/testfiles-lthooks/lthooks-004.tlg    | 18 ++++++++++++++++
 base/testfiles-lthooks/lthooks-005.tlg    | 18 ++++++++++++++++
 base/testfiles-lthooks/lthooks-006.tlg    | 18 ++++++++++++++++
 base/testfiles-lthooks/lthooks-007.tlg    | 27 +++++++++++++++++++++++
 base/testfiles-lthooks/lthooks-008.tlg    | 18 ++++++++++++++++
 base/testfiles-lthooks/lthooks-009.tlg    |  9 ++++++++
 base/testfiles-lthooks/lthooks-011.tlg    | 36 +++++++++++++++++++++++++++++++
 base/testfiles-lthooks/lthooks-021.tlg    |  9 ++++++++
 base/testfiles-lthooks/lthooks-legacy.tlg |  9 ++++++++
 17 files changed, 269 insertions(+), 2 deletions(-)

diff --git a/base/ltclass.dtx b/base/ltclass.dtx
index 0566e3cf..b7e32567 100644
--- a/base/ltclass.dtx
+++ b/base/ltclass.dtx
@@ -2446,13 +2446,17 @@
 %-----------------------------------------
   \@ifl at aded\@currext\@currname{}{\reserved at a}}
 %    \end{macrocode}
-%  \end{macro}
 %
 %    \begin{macrocode}
-%</2ekernel|latexrelease>
+\NewHook{package/before}
+\NewHook{class/before}
+\NewReversedHook{package/after}
+\NewReversedHook{class/after}
 %    \end{macrocode}
+%  \end{macro}
 %
 %    \begin{macrocode}
+%</2ekernel|latexrelease>
 %<latexrelease>\EndIncludeInRelease
 %<latexrelease>\IncludeInRelease{0000/00/00}%
 %<latexrelease>      {\@onefilewithoptions}{Hooks and unused options issue}%
diff --git a/base/ltfilehook.dtx b/base/ltfilehook.dtx
index fdafb00b..37a7da47 100644
--- a/base/ltfilehook.dtx
+++ b/base/ltfilehook.dtx
@@ -850,6 +850,11 @@
 %</2ekernel|latexrelease>
 %    \end{macrocode}
 %
+%    \begin{macrocode}
+\NewHook{file/before}
+\NewReversedHook{file/after}
+%    \end{macrocode}
+%
 % \changes{v0.9b}
 %         {1993/12/04}{Macro added}
 % \changes{v0.9p}
diff --git a/base/ltfiles.dtx b/base/ltfiles.dtx
index 21e8cd01..c18f1f44 100644
--- a/base/ltfiles.dtx
+++ b/base/ltfiles.dtx
@@ -892,6 +892,12 @@
     \@nameuse{cp@#1}%
   \fi
   \let\@auxout\@mainaux}
+%    \end{macrocode}
+%
+%    \begin{macrocode}
+\NewHook{include/before}
+\NewReversedHook{include/end}
+\NewReversedHook{include/after}
 %<latexrelease>\EndIncludeInRelease
 %</2ekernel|latexrelease>
 %    \end{macrocode}
diff --git a/base/testfiles-lthooks/ltcmdhooks-001.tlg b/base/testfiles-lthooks/ltcmdhooks-001.tlg
index 1f0a4ca2..6997277d 100644
--- a/base/testfiles-lthooks/ltcmdhooks-001.tlg
+++ b/base/testfiles-lthooks/ltcmdhooks-001.tlg
@@ -67,6 +67,9 @@ Update code for hook 'para/end' on input line ...:
 Update code for hook 'begindocument' on input line ...:
 Update code for hook 'begindocument/before' on input line ...:
 Update code for hook 'begindocument/end' on input line ...:
+Update code for hook 'include/before' on input line ...:
+Update code for hook 'include/end' on input line ...:
+Update code for hook 'include/after' on input line ...:
 Update code for hook 'selectfont' on input line ...:
 Update code for hook 'rmfamily' on input line ...:
 Update code for hook 'sffamily' on input line ...:
@@ -90,6 +93,12 @@ Data structure for label rules:
 Handled code for kernel/filelist
 Handled code for kernel/warnings
 Update code for hook 'enddocument/end' on input line ...:
+Update code for hook 'package/before' on input line ...:
+Update code for hook 'class/before' on input line ...:
+Update code for hook 'package/after' on input line ...:
+Update code for hook 'class/after' on input line ...:
+Update code for hook 'file/before' on input line ...:
+Update code for hook 'file/after' on input line ...:
 Update code for hook 'shipout/before' on input line ...:
 Update code for hook 'shipout/after' on input line ...:
 Update code for hook 'shipout/foreground' on input line ...:
diff --git a/base/testfiles-lthooks/lthooks-000.tlg b/base/testfiles-lthooks/lthooks-000.tlg
index c21ff077..8e94371a 100644
--- a/base/testfiles-lthooks/lthooks-000.tlg
+++ b/base/testfiles-lthooks/lthooks-000.tlg
@@ -7,6 +7,9 @@ Update code for hook 'para/end' on input line ...:
 Update code for hook 'begindocument' on input line ...:
 Update code for hook 'begindocument/before' on input line ...:
 Update code for hook 'begindocument/end' on input line ...:
+Update code for hook 'include/before' on input line ...:
+Update code for hook 'include/end' on input line ...:
+Update code for hook 'include/after' on input line ...:
 Update code for hook 'selectfont' on input line ...:
 Update code for hook 'rmfamily' on input line ...:
 Update code for hook 'sffamily' on input line ...:
@@ -30,6 +33,12 @@ Data structure for label rules:
 Handled code for kernel/filelist
 Handled code for kernel/warnings
 Update code for hook 'enddocument/end' on input line ...:
+Update code for hook 'package/before' on input line ...:
+Update code for hook 'class/before' on input line ...:
+Update code for hook 'package/after' on input line ...:
+Update code for hook 'class/after' on input line ...:
+Update code for hook 'file/before' on input line ...:
+Update code for hook 'file/after' on input line ...:
 Update code for hook 'shipout/before' on input line ...:
 Update code for hook 'shipout/after' on input line ...:
 Update code for hook 'shipout/foreground' on input line ...:
diff --git a/base/testfiles-lthooks/lthooks-001.tlg b/base/testfiles-lthooks/lthooks-001.tlg
index f8052f1a..b7b3fbcc 100644
--- a/base/testfiles-lthooks/lthooks-001.tlg
+++ b/base/testfiles-lthooks/lthooks-001.tlg
@@ -13,6 +13,9 @@ Update code for hook 'para/end' on input line ...:
 Update code for hook 'begindocument' on input line ...:
 Update code for hook 'begindocument/before' on input line ...:
 Update code for hook 'begindocument/end' on input line ...:
+Update code for hook 'include/before' on input line ...:
+Update code for hook 'include/end' on input line ...:
+Update code for hook 'include/after' on input line ...:
 Update code for hook 'selectfont' on input line ...:
 Update code for hook 'rmfamily' on input line ...:
 Update code for hook 'sffamily' on input line ...:
@@ -36,6 +39,12 @@ Data structure for label rules:
 Handled code for kernel/filelist
 Handled code for kernel/warnings
 Update code for hook 'enddocument/end' on input line ...:
+Update code for hook 'package/before' on input line ...:
+Update code for hook 'class/before' on input line ...:
+Update code for hook 'package/after' on input line ...:
+Update code for hook 'class/after' on input line ...:
+Update code for hook 'file/before' on input line ...:
+Update code for hook 'file/after' on input line ...:
 Update code for hook 'shipout/before' on input line ...:
 Update code for hook 'shipout/after' on input line ...:
 Update code for hook 'shipout/foreground' on input line ...:
@@ -124,6 +133,9 @@ The sequence \g__hook_all_seq contains the items (without outer braces):
 >  {begindocument}
 >  {begindocument/before}
 >  {begindocument/end}
+>  {include/before}
+>  {include/end}
+>  {include/after}
 >  {selectfont}
 >  {rmfamily}
 >  {sffamily}
@@ -139,6 +151,12 @@ The sequence \g__hook_all_seq contains the items (without outer braces):
 >  {enddocument/afteraux}
 >  {enddocument/info}
 >  {enddocument/end}
+>  {package/before}
+>  {class/before}
+>  {package/after}
+>  {class/after}
+>  {file/before}
+>  {file/after}
 >  {shipout/before}
 >  {shipout/after}
 >  {shipout/foreground}
@@ -161,6 +179,9 @@ Update code for hook 'para/end' on input line ...:
 Update code for hook 'begindocument' on input line ...:
 Update code for hook 'begindocument/before' on input line ...:
 Update code for hook 'begindocument/end' on input line ...:
+Update code for hook 'include/before' on input line ...:
+Update code for hook 'include/end' on input line ...:
+Update code for hook 'include/after' on input line ...:
 Update code for hook 'selectfont' on input line ...:
 Update code for hook 'rmfamily' on input line ...:
 Update code for hook 'sffamily' on input line ...:
@@ -184,6 +205,12 @@ Data structure for label rules:
 Handled code for kernel/filelist
 Handled code for kernel/warnings
 Update code for hook 'enddocument/end' on input line ...:
+Update code for hook 'package/before' on input line ...:
+Update code for hook 'class/before' on input line ...:
+Update code for hook 'package/after' on input line ...:
+Update code for hook 'class/after' on input line ...:
+Update code for hook 'file/before' on input line ...:
+Update code for hook 'file/after' on input line ...:
 Update code for hook 'shipout/before' on input line ...:
 Update code for hook 'shipout/after' on input line ...:
 Update code for hook 'shipout/foreground' on input line ...:
diff --git a/base/testfiles-lthooks/lthooks-002.tlg b/base/testfiles-lthooks/lthooks-002.tlg
index 25237d14..1668672f 100644
--- a/base/testfiles-lthooks/lthooks-002.tlg
+++ b/base/testfiles-lthooks/lthooks-002.tlg
@@ -13,6 +13,9 @@ Update code for hook 'para/end' on input line ...:
 Update code for hook 'begindocument' on input line ...:
 Update code for hook 'begindocument/before' on input line ...:
 Update code for hook 'begindocument/end' on input line ...:
+Update code for hook 'include/before' on input line ...:
+Update code for hook 'include/end' on input line ...:
+Update code for hook 'include/after' on input line ...:
 Update code for hook 'selectfont' on input line ...:
 Update code for hook 'rmfamily' on input line ...:
 Update code for hook 'sffamily' on input line ...:
@@ -36,6 +39,12 @@ Data structure for label rules:
 Handled code for kernel/filelist
 Handled code for kernel/warnings
 Update code for hook 'enddocument/end' on input line ...:
+Update code for hook 'package/before' on input line ...:
+Update code for hook 'class/before' on input line ...:
+Update code for hook 'package/after' on input line ...:
+Update code for hook 'class/after' on input line ...:
+Update code for hook 'file/before' on input line ...:
+Update code for hook 'file/after' on input line ...:
 Update code for hook 'shipout/before' on input line ...:
 Update code for hook 'shipout/after' on input line ...:
 Update code for hook 'shipout/foreground' on input line ...:
@@ -126,6 +135,9 @@ The sequence \g__hook_all_seq contains the items (without outer braces):
 >  {begindocument}
 >  {begindocument/before}
 >  {begindocument/end}
+>  {include/before}
+>  {include/end}
+>  {include/after}
 >  {selectfont}
 >  {rmfamily}
 >  {sffamily}
@@ -141,6 +153,12 @@ The sequence \g__hook_all_seq contains the items (without outer braces):
 >  {enddocument/afteraux}
 >  {enddocument/info}
 >  {enddocument/end}
+>  {package/before}
+>  {class/before}
+>  {package/after}
+>  {class/after}
+>  {file/before}
+>  {file/after}
 >  {shipout/before}
 >  {shipout/after}
 >  {shipout/foreground}
@@ -163,6 +181,9 @@ Update code for hook 'para/end' on input line ...:
 Update code for hook 'begindocument' on input line ...:
 Update code for hook 'begindocument/before' on input line ...:
 Update code for hook 'begindocument/end' on input line ...:
+Update code for hook 'include/before' on input line ...:
+Update code for hook 'include/end' on input line ...:
+Update code for hook 'include/after' on input line ...:
 Update code for hook 'selectfont' on input line ...:
 Update code for hook 'rmfamily' on input line ...:
 Update code for hook 'sffamily' on input line ...:
@@ -186,6 +207,12 @@ Data structure for label rules:
 Handled code for kernel/filelist
 Handled code for kernel/warnings
 Update code for hook 'enddocument/end' on input line ...:
+Update code for hook 'package/before' on input line ...:
+Update code for hook 'class/before' on input line ...:
+Update code for hook 'package/after' on input line ...:
+Update code for hook 'class/after' on input line ...:
+Update code for hook 'file/before' on input line ...:
+Update code for hook 'file/after' on input line ...:
 Update code for hook 'shipout/before' on input line ...:
 Update code for hook 'shipout/after' on input line ...:
 Update code for hook 'shipout/foreground' on input line ...:
diff --git a/base/testfiles-lthooks/lthooks-003.tlg b/base/testfiles-lthooks/lthooks-003.tlg
index 1d22b77c..607b9e8e 100644
--- a/base/testfiles-lthooks/lthooks-003.tlg
+++ b/base/testfiles-lthooks/lthooks-003.tlg
@@ -28,6 +28,9 @@ The sequence \g__hook_all_seq contains the items (without outer braces):
 >  {begindocument}
 >  {begindocument/before}
 >  {begindocument/end}
+>  {include/before}
+>  {include/end}
+>  {include/after}
 >  {selectfont}
 >  {rmfamily}
 >  {sffamily}
@@ -43,6 +46,12 @@ The sequence \g__hook_all_seq contains the items (without outer braces):
 >  {enddocument/afteraux}
 >  {enddocument/info}
 >  {enddocument/end}
+>  {package/before}
+>  {class/before}
+>  {package/after}
+>  {class/after}
+>  {file/before}
+>  {file/after}
 >  {shipout/before}
 >  {shipout/after}
 >  {shipout/foreground}
@@ -76,6 +85,9 @@ Update code for hook 'para/end' on input line ...:
 Update code for hook 'begindocument' on input line ...:
 Update code for hook 'begindocument/before' on input line ...:
 Update code for hook 'begindocument/end' on input line ...:
+Update code for hook 'include/before' on input line ...:
+Update code for hook 'include/end' on input line ...:
+Update code for hook 'include/after' on input line ...:
 Update code for hook 'selectfont' on input line ...:
 Update code for hook 'rmfamily' on input line ...:
 Update code for hook 'sffamily' on input line ...:
@@ -99,6 +111,12 @@ Data structure for label rules:
 Handled code for kernel/filelist
 Handled code for kernel/warnings
 Update code for hook 'enddocument/end' on input line ...:
+Update code for hook 'package/before' on input line ...:
+Update code for hook 'class/before' on input line ...:
+Update code for hook 'package/after' on input line ...:
+Update code for hook 'class/after' on input line ...:
+Update code for hook 'file/before' on input line ...:
+Update code for hook 'file/after' on input line ...:
 Update code for hook 'shipout/before' on input line ...:
 Update code for hook 'shipout/after' on input line ...:
 Update code for hook 'shipout/foreground' on input line ...:
diff --git a/base/testfiles-lthooks/lthooks-004.tlg b/base/testfiles-lthooks/lthooks-004.tlg
index de77c81f..cb41dd0b 100644
--- a/base/testfiles-lthooks/lthooks-004.tlg
+++ b/base/testfiles-lthooks/lthooks-004.tlg
@@ -18,6 +18,9 @@ The sequence \g__hook_all_seq contains the items (without outer braces):
 >  {begindocument}
 >  {begindocument/before}
 >  {begindocument/end}
+>  {include/before}
+>  {include/end}
+>  {include/after}
 >  {selectfont}
 >  {rmfamily}
 >  {sffamily}
@@ -33,6 +36,12 @@ The sequence \g__hook_all_seq contains the items (without outer braces):
 >  {enddocument/afteraux}
 >  {enddocument/info}
 >  {enddocument/end}
+>  {package/before}
+>  {class/before}
+>  {package/after}
+>  {class/after}
+>  {file/before}
+>  {file/after}
 >  {shipout/before}
 >  {shipout/after}
 >  {shipout/foreground}
@@ -60,6 +69,9 @@ Update code for hook 'para/end' on input line ...:
 Update code for hook 'begindocument' on input line ...:
 Update code for hook 'begindocument/before' on input line ...:
 Update code for hook 'begindocument/end' on input line ...:
+Update code for hook 'include/before' on input line ...:
+Update code for hook 'include/end' on input line ...:
+Update code for hook 'include/after' on input line ...:
 Update code for hook 'selectfont' on input line ...:
 Update code for hook 'rmfamily' on input line ...:
 Update code for hook 'sffamily' on input line ...:
@@ -83,6 +95,12 @@ Data structure for label rules:
 Handled code for kernel/filelist
 Handled code for kernel/warnings
 Update code for hook 'enddocument/end' on input line ...:
+Update code for hook 'package/before' on input line ...:
+Update code for hook 'class/before' on input line ...:
+Update code for hook 'package/after' on input line ...:
+Update code for hook 'class/after' on input line ...:
+Update code for hook 'file/before' on input line ...:
+Update code for hook 'file/after' on input line ...:
 Update code for hook 'shipout/before' on input line ...:
 Update code for hook 'shipout/after' on input line ...:
 Update code for hook 'shipout/foreground' on input line ...:
diff --git a/base/testfiles-lthooks/lthooks-005.tlg b/base/testfiles-lthooks/lthooks-005.tlg
index d4228689..9a094bb1 100644
--- a/base/testfiles-lthooks/lthooks-005.tlg
+++ b/base/testfiles-lthooks/lthooks-005.tlg
@@ -35,6 +35,9 @@ The sequence \g__hook_all_seq contains the items (without outer braces):
 >  {begindocument}
 >  {begindocument/before}
 >  {begindocument/end}
+>  {include/before}
+>  {include/end}
+>  {include/after}
 >  {selectfont}
 >  {rmfamily}
 >  {sffamily}
@@ -50,6 +53,12 @@ The sequence \g__hook_all_seq contains the items (without outer braces):
 >  {enddocument/afteraux}
 >  {enddocument/info}
 >  {enddocument/end}
+>  {package/before}
+>  {class/before}
+>  {package/after}
+>  {class/after}
+>  {file/before}
+>  {file/after}
 >  {shipout/before}
 >  {shipout/after}
 >  {shipout/foreground}
@@ -83,6 +92,9 @@ Update code for hook 'para/end' on input line ...:
 Update code for hook 'begindocument' on input line ...:
 Update code for hook 'begindocument/before' on input line ...:
 Update code for hook 'begindocument/end' on input line ...:
+Update code for hook 'include/before' on input line ...:
+Update code for hook 'include/end' on input line ...:
+Update code for hook 'include/after' on input line ...:
 Update code for hook 'selectfont' on input line ...:
 Update code for hook 'rmfamily' on input line ...:
 Update code for hook 'sffamily' on input line ...:
@@ -106,6 +118,12 @@ Data structure for label rules:
 Handled code for kernel/filelist
 Handled code for kernel/warnings
 Update code for hook 'enddocument/end' on input line ...:
+Update code for hook 'package/before' on input line ...:
+Update code for hook 'class/before' on input line ...:
+Update code for hook 'package/after' on input line ...:
+Update code for hook 'class/after' on input line ...:
+Update code for hook 'file/before' on input line ...:
+Update code for hook 'file/after' on input line ...:
 Update code for hook 'shipout/before' on input line ...:
 Update code for hook 'shipout/after' on input line ...:
 Update code for hook 'shipout/foreground' on input line ...:
diff --git a/base/testfiles-lthooks/lthooks-006.tlg b/base/testfiles-lthooks/lthooks-006.tlg
index 5465c6b5..45f6038e 100644
--- a/base/testfiles-lthooks/lthooks-006.tlg
+++ b/base/testfiles-lthooks/lthooks-006.tlg
@@ -16,6 +16,9 @@ The sequence \g__hook_all_seq contains the items (without outer braces):
 >  {begindocument}
 >  {begindocument/before}
 >  {begindocument/end}
+>  {include/before}
+>  {include/end}
+>  {include/after}
 >  {selectfont}
 >  {rmfamily}
 >  {sffamily}
@@ -31,6 +34,12 @@ The sequence \g__hook_all_seq contains the items (without outer braces):
 >  {enddocument/afteraux}
 >  {enddocument/info}
 >  {enddocument/end}
+>  {package/before}
+>  {class/before}
+>  {package/after}
+>  {class/after}
+>  {file/before}
+>  {file/after}
 >  {shipout/before}
 >  {shipout/after}
 >  {shipout/foreground}
@@ -56,6 +65,9 @@ Update code for hook 'para/end' on input line ...:
 Update code for hook 'begindocument' on input line ...:
 Update code for hook 'begindocument/before' on input line ...:
 Update code for hook 'begindocument/end' on input line ...:
+Update code for hook 'include/before' on input line ...:
+Update code for hook 'include/end' on input line ...:
+Update code for hook 'include/after' on input line ...:
 Update code for hook 'selectfont' on input line ...:
 Update code for hook 'rmfamily' on input line ...:
 Update code for hook 'sffamily' on input line ...:
@@ -79,6 +91,12 @@ Data structure for label rules:
 Handled code for kernel/filelist
 Handled code for kernel/warnings
 Update code for hook 'enddocument/end' on input line ...:
+Update code for hook 'package/before' on input line ...:
+Update code for hook 'class/before' on input line ...:
+Update code for hook 'package/after' on input line ...:
+Update code for hook 'class/after' on input line ...:
+Update code for hook 'file/before' on input line ...:
+Update code for hook 'file/after' on input line ...:
 Update code for hook 'shipout/before' on input line ...:
 Update code for hook 'shipout/after' on input line ...:
 Update code for hook 'shipout/foreground' on input line ...:
diff --git a/base/testfiles-lthooks/lthooks-007.tlg b/base/testfiles-lthooks/lthooks-007.tlg
index ad444352..46da1865 100644
--- a/base/testfiles-lthooks/lthooks-007.tlg
+++ b/base/testfiles-lthooks/lthooks-007.tlg
@@ -16,6 +16,9 @@ The sequence \g__hook_all_seq contains the items (without outer braces):
 >  {begindocument}
 >  {begindocument/before}
 >  {begindocument/end}
+>  {include/before}
+>  {include/end}
+>  {include/after}
 >  {selectfont}
 >  {rmfamily}
 >  {sffamily}
@@ -31,6 +34,12 @@ The sequence \g__hook_all_seq contains the items (without outer braces):
 >  {enddocument/afteraux}
 >  {enddocument/info}
 >  {enddocument/end}
+>  {package/before}
+>  {class/before}
+>  {package/after}
+>  {class/after}
+>  {file/before}
+>  {file/after}
 >  {shipout/before}
 >  {shipout/after}
 >  {shipout/foreground}
@@ -57,6 +66,9 @@ Update code for hook 'para/end' on input line ...:
 Update code for hook 'begindocument' on input line ...:
 Update code for hook 'begindocument/before' on input line ...:
 Update code for hook 'begindocument/end' on input line ...:
+Update code for hook 'include/before' on input line ...:
+Update code for hook 'include/end' on input line ...:
+Update code for hook 'include/after' on input line ...:
 Update code for hook 'selectfont' on input line ...:
 Update code for hook 'rmfamily' on input line ...:
 Update code for hook 'sffamily' on input line ...:
@@ -80,6 +92,12 @@ Data structure for label rules:
 Handled code for kernel/filelist
 Handled code for kernel/warnings
 Update code for hook 'enddocument/end' on input line ...:
+Update code for hook 'package/before' on input line ...:
+Update code for hook 'class/before' on input line ...:
+Update code for hook 'package/after' on input line ...:
+Update code for hook 'class/after' on input line ...:
+Update code for hook 'file/before' on input line ...:
+Update code for hook 'file/after' on input line ...:
 Update code for hook 'shipout/before' on input line ...:
 Update code for hook 'shipout/after' on input line ...:
 Update code for hook 'shipout/foreground' on input line ...:
@@ -166,6 +184,9 @@ Update code for hook 'para/end' on input line ...:
 Update code for hook 'begindocument' on input line ...:
 Update code for hook 'begindocument/before' on input line ...:
 Update code for hook 'begindocument/end' on input line ...:
+Update code for hook 'include/before' on input line ...:
+Update code for hook 'include/end' on input line ...:
+Update code for hook 'include/after' on input line ...:
 Update code for hook 'selectfont' on input line ...:
 Update code for hook 'rmfamily' on input line ...:
 Update code for hook 'sffamily' on input line ...:
@@ -189,6 +210,12 @@ Data structure for label rules:
 Handled code for kernel/filelist
 Handled code for kernel/warnings
 Update code for hook 'enddocument/end' on input line ...:
+Update code for hook 'package/before' on input line ...:
+Update code for hook 'class/before' on input line ...:
+Update code for hook 'package/after' on input line ...:
+Update code for hook 'class/after' on input line ...:
+Update code for hook 'file/before' on input line ...:
+Update code for hook 'file/after' on input line ...:
 Update code for hook 'shipout/before' on input line ...:
 Update code for hook 'shipout/after' on input line ...:
 Update code for hook 'shipout/foreground' on input line ...:
diff --git a/base/testfiles-lthooks/lthooks-008.tlg b/base/testfiles-lthooks/lthooks-008.tlg
index 03684eca..8612ab70 100644
--- a/base/testfiles-lthooks/lthooks-008.tlg
+++ b/base/testfiles-lthooks/lthooks-008.tlg
@@ -18,6 +18,9 @@ The sequence \g__hook_all_seq contains the items (without outer braces):
 >  {begindocument}
 >  {begindocument/before}
 >  {begindocument/end}
+>  {include/before}
+>  {include/end}
+>  {include/after}
 >  {selectfont}
 >  {rmfamily}
 >  {sffamily}
@@ -33,6 +36,12 @@ The sequence \g__hook_all_seq contains the items (without outer braces):
 >  {enddocument/afteraux}
 >  {enddocument/info}
 >  {enddocument/end}
+>  {package/before}
+>  {class/before}
+>  {package/after}
+>  {class/after}
+>  {file/before}
+>  {file/after}
 >  {shipout/before}
 >  {shipout/after}
 >  {shipout/foreground}
@@ -55,6 +64,9 @@ Update code for hook 'para/end' on input line ...:
 Update code for hook 'begindocument' on input line ...:
 Update code for hook 'begindocument/before' on input line ...:
 Update code for hook 'begindocument/end' on input line ...:
+Update code for hook 'include/before' on input line ...:
+Update code for hook 'include/end' on input line ...:
+Update code for hook 'include/after' on input line ...:
 Update code for hook 'selectfont' on input line ...:
 Update code for hook 'rmfamily' on input line ...:
 Update code for hook 'sffamily' on input line ...:
@@ -87,6 +99,12 @@ Data structure for label rules:
 Handled code for kernel/filelist
 Handled code for kernel/warnings
 Update code for hook 'enddocument/end' on input line ...:
+Update code for hook 'package/before' on input line ...:
+Update code for hook 'class/before' on input line ...:
+Update code for hook 'package/after' on input line ...:
+Update code for hook 'class/after' on input line ...:
+Update code for hook 'file/before' on input line ...:
+Update code for hook 'file/after' on input line ...:
 Update code for hook 'shipout/before' on input line ...:
 Update code for hook 'shipout/after' on input line ...:
 Update code for hook 'shipout/foreground' on input line ...:
diff --git a/base/testfiles-lthooks/lthooks-009.tlg b/base/testfiles-lthooks/lthooks-009.tlg
index ecf74371..08b93f07 100644
--- a/base/testfiles-lthooks/lthooks-009.tlg
+++ b/base/testfiles-lthooks/lthooks-009.tlg
@@ -8,6 +8,9 @@ Update code for hook 'para/end' on input line ...:
 Update code for hook 'begindocument' on input line ...:
 Update code for hook 'begindocument/before' on input line ...:
 Update code for hook 'begindocument/end' on input line ...:
+Update code for hook 'include/before' on input line ...:
+Update code for hook 'include/end' on input line ...:
+Update code for hook 'include/after' on input line ...:
 Update code for hook 'selectfont' on input line ...:
 Update code for hook 'rmfamily' on input line ...:
 Update code for hook 'sffamily' on input line ...:
@@ -36,6 +39,12 @@ Data structure for label rules:
 Handled code for kernel/filelist
 Handled code for kernel/warnings
 Update code for hook 'enddocument/end' on input line ...:
+Update code for hook 'package/before' on input line ...:
+Update code for hook 'class/before' on input line ...:
+Update code for hook 'package/after' on input line ...:
+Update code for hook 'class/after' on input line ...:
+Update code for hook 'file/before' on input line ...:
+Update code for hook 'file/after' on input line ...:
 Update code for hook 'shipout/before' on input line ...:
 Update code for hook 'shipout/after' on input line ...:
 Update code for hook 'shipout/foreground' on input line ...:
diff --git a/base/testfiles-lthooks/lthooks-011.tlg b/base/testfiles-lthooks/lthooks-011.tlg
index 64621a07..14897cf7 100644
--- a/base/testfiles-lthooks/lthooks-011.tlg
+++ b/base/testfiles-lthooks/lthooks-011.tlg
@@ -8,6 +8,9 @@ Update code for hook 'para/end' on input line ...:
 Update code for hook 'begindocument' on input line ...:
 Update code for hook 'begindocument/before' on input line ...:
 Update code for hook 'begindocument/end' on input line ...:
+Update code for hook 'include/before' on input line ...:
+Update code for hook 'include/end' on input line ...:
+Update code for hook 'include/after' on input line ...:
 Update code for hook 'selectfont' on input line ...:
 Update code for hook 'rmfamily' on input line ...:
 Update code for hook 'sffamily' on input line ...:
@@ -31,6 +34,12 @@ Data structure for label rules:
 Handled code for kernel/filelist
 Handled code for kernel/warnings
 Update code for hook 'enddocument/end' on input line ...:
+Update code for hook 'package/before' on input line ...:
+Update code for hook 'class/before' on input line ...:
+Update code for hook 'package/after' on input line ...:
+Update code for hook 'class/after' on input line ...:
+Update code for hook 'file/before' on input line ...:
+Update code for hook 'file/after' on input line ...:
 Update code for hook 'shipout/before' on input line ...:
 Update code for hook 'shipout/after' on input line ...:
 Update code for hook 'shipout/foreground' on input line ...:
@@ -115,6 +124,9 @@ Update code for hook 'para/end' on input line ...:
 Update code for hook 'begindocument' on input line ...:
 Update code for hook 'begindocument/before' on input line ...:
 Update code for hook 'begindocument/end' on input line ...:
+Update code for hook 'include/before' on input line ...:
+Update code for hook 'include/end' on input line ...:
+Update code for hook 'include/after' on input line ...:
 Update code for hook 'selectfont' on input line ...:
 Update code for hook 'rmfamily' on input line ...:
 Update code for hook 'sffamily' on input line ...:
@@ -138,6 +150,12 @@ Data structure for label rules:
 Handled code for kernel/filelist
 Handled code for kernel/warnings
 Update code for hook 'enddocument/end' on input line ...:
+Update code for hook 'package/before' on input line ...:
+Update code for hook 'class/before' on input line ...:
+Update code for hook 'package/after' on input line ...:
+Update code for hook 'class/after' on input line ...:
+Update code for hook 'file/before' on input line ...:
+Update code for hook 'file/after' on input line ...:
 Update code for hook 'shipout/before' on input line ...:
 Update code for hook 'shipout/after' on input line ...:
 Update code for hook 'shipout/foreground' on input line ...:
@@ -224,6 +242,9 @@ Update code for hook 'para/end' on input line ...:
 Update code for hook 'begindocument' on input line ...:
 Update code for hook 'begindocument/before' on input line ...:
 Update code for hook 'begindocument/end' on input line ...:
+Update code for hook 'include/before' on input line ...:
+Update code for hook 'include/end' on input line ...:
+Update code for hook 'include/after' on input line ...:
 Update code for hook 'selectfont' on input line ...:
 Update code for hook 'rmfamily' on input line ...:
 Update code for hook 'sffamily' on input line ...:
@@ -247,6 +268,12 @@ Data structure for label rules:
 Handled code for kernel/filelist
 Handled code for kernel/warnings
 Update code for hook 'enddocument/end' on input line ...:
+Update code for hook 'package/before' on input line ...:
+Update code for hook 'class/before' on input line ...:
+Update code for hook 'package/after' on input line ...:
+Update code for hook 'class/after' on input line ...:
+Update code for hook 'file/before' on input line ...:
+Update code for hook 'file/after' on input line ...:
 Update code for hook 'shipout/before' on input line ...:
 Update code for hook 'shipout/after' on input line ...:
 Update code for hook 'shipout/foreground' on input line ...:
@@ -335,6 +362,9 @@ Update code for hook 'para/end' on input line ...:
 Update code for hook 'begindocument' on input line ...:
 Update code for hook 'begindocument/before' on input line ...:
 Update code for hook 'begindocument/end' on input line ...:
+Update code for hook 'include/before' on input line ...:
+Update code for hook 'include/end' on input line ...:
+Update code for hook 'include/after' on input line ...:
 Update code for hook 'selectfont' on input line ...:
 Update code for hook 'rmfamily' on input line ...:
 Update code for hook 'sffamily' on input line ...:
@@ -358,6 +388,12 @@ Data structure for label rules:
 Handled code for kernel/filelist
 Handled code for kernel/warnings
 Update code for hook 'enddocument/end' on input line ...:
+Update code for hook 'package/before' on input line ...:
+Update code for hook 'class/before' on input line ...:
+Update code for hook 'package/after' on input line ...:
+Update code for hook 'class/after' on input line ...:
+Update code for hook 'file/before' on input line ...:
+Update code for hook 'file/after' on input line ...:
 Update code for hook 'shipout/before' on input line ...:
 Update code for hook 'shipout/after' on input line ...:
 Update code for hook 'shipout/foreground' on input line ...:
diff --git a/base/testfiles-lthooks/lthooks-021.tlg b/base/testfiles-lthooks/lthooks-021.tlg
index 4a10901b..0a4b72e3 100644
--- a/base/testfiles-lthooks/lthooks-021.tlg
+++ b/base/testfiles-lthooks/lthooks-021.tlg
@@ -7,6 +7,9 @@ Update code for hook 'para/end' on input line ...:
 Update code for hook 'begindocument' on input line ...:
 Update code for hook 'begindocument/before' on input line ...:
 Update code for hook 'begindocument/end' on input line ...:
+Update code for hook 'include/before' on input line ...:
+Update code for hook 'include/end' on input line ...:
+Update code for hook 'include/after' on input line ...:
 Update code for hook 'selectfont' on input line ...:
 Update code for hook 'rmfamily' on input line ...:
 Update code for hook 'sffamily' on input line ...:
@@ -30,6 +33,12 @@ Data structure for label rules:
 Handled code for kernel/filelist
 Handled code for kernel/warnings
 Update code for hook 'enddocument/end' on input line ...:
+Update code for hook 'package/before' on input line ...:
+Update code for hook 'class/before' on input line ...:
+Update code for hook 'package/after' on input line ...:
+Update code for hook 'class/after' on input line ...:
+Update code for hook 'file/before' on input line ...:
+Update code for hook 'file/after' on input line ...:
 Update code for hook 'shipout/before' on input line ...:
 Update code for hook 'shipout/after' on input line ...:
 Update code for hook 'shipout/foreground' on input line ...:
diff --git a/base/testfiles-lthooks/lthooks-legacy.tlg b/base/testfiles-lthooks/lthooks-legacy.tlg
index 22a3b13e..2d5cbdd5 100644
--- a/base/testfiles-lthooks/lthooks-legacy.tlg
+++ b/base/testfiles-lthooks/lthooks-legacy.tlg
@@ -14,6 +14,9 @@ Data structure for label rules:
 Handled code for legacy
 Update code for hook 'begindocument/before' on input line ...:
 Update code for hook 'begindocument/end' on input line ...:
+Update code for hook 'include/before' on input line ...:
+Update code for hook 'include/end' on input line ...:
+Update code for hook 'include/after' on input line ...:
 Update code for hook 'selectfont' on input line ...:
 Update code for hook 'rmfamily' on input line ...:
 **** Add to hook rmfamily (legacy) on input line ... <- \typeout {legacy rmfamily\on at line }
@@ -55,6 +58,12 @@ Data structure for label rules:
 Handled code for kernel/filelist
 Handled code for kernel/warnings
 Update code for hook 'enddocument/end' on input line ...:
+Update code for hook 'package/before' on input line ...:
+Update code for hook 'class/before' on input line ...:
+Update code for hook 'package/after' on input line ...:
+Update code for hook 'class/after' on input line ...:
+Update code for hook 'file/before' on input line ...:
+Update code for hook 'file/after' on input line ...:
 Update code for hook 'shipout/before' on input line ...:
 Update code for hook 'shipout/after' on input line ...:
 Update code for hook 'shipout/foreground' on input line ...:





More information about the latex3-commits mailing list.