[latex3-commits] [git/LaTeX3-latex3-latex2e] everymath: Use kernel hook for delayed loading (8418c323)

Joseph Wright joseph.wright at morningstar2.co.uk
Thu Jan 5 16:32:49 CET 2023


Repository : https://github.com/latex3/latex2e
On branch  : everymath
Link       : https://github.com/latex3/latex2e/commit/8418c323398acc40328993ba01a6ca33cf662e64

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

commit 8418c323398acc40328993ba01a6ca33cf662e64
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Thu Jan 5 15:32:49 2023 +0000

    Use kernel hook for delayed loading


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

8418c323398acc40328993ba01a6ca33cf662e64
 required/latex-lab/latex-lab-mathcapture.dtx | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/required/latex-lab/latex-lab-mathcapture.dtx b/required/latex-lab/latex-lab-mathcapture.dtx
index 159e5421..0cde5e7e 100644
--- a/required/latex-lab/latex-lab-mathcapture.dtx
+++ b/required/latex-lab/latex-lab-mathcapture.dtx
@@ -2,7 +2,7 @@
 %
 %% File: latex-lab-mathcapture.dtx
 %
-% Copyright (C) 2022 The LaTeX Project
+% Copyright (C) 2022,2023 The LaTeX Project
 %
 % It may be distributed and/or modified under the conditions of the
 % LaTeX Project Public License (LPPL), either version 1.3c of this
@@ -72,7 +72,7 @@
 % \subsection{File declaration}
 %    \begin{macrocode}
 \ProvidesFile{latex-lab-mathcapture.ltx}
-        [2022-12-12 v0.1a Grab all the math(s)]
+        [2023-01-05 v0.1a Grab all the math(s)]
 %    \end{macrocode}
 %
 %    \begin{macrocode}
@@ -85,7 +85,7 @@
 % have conditional definitions and deals with how to define \cs{[}/\cs{]}
 % neatly.
 %    \begin{macrocode}
-\AddToHook { begindocument / before }
+\tl_gput_right:Nn \@kernel at before@begindocument
   { \RequirePackage { amsmath } }
 %    \end{macrocode} 
 %
@@ -178,7 +178,7 @@
 %   so we do that here. This has to be done \emph{after} we can be sure
 %   \pkg{amsmath} is loaded.
 %    \begin{macrocode}
-\AddToHook { begindocument }
+\tl_gput_right:Nn \@kernel at before@begindocument
   {
     \cs_new_eq:NN \@@_equation_begin: \equation
     \cs_new_eq:NN \@@_equation_end: \endequation
@@ -236,7 +236,7 @@
 %   The flag usage here is to cover the case where \cs{[}/\cs{]} is nested
 %   inside another environment.
 %    \begin{macrocode}
-\AddToHook { begindocument }
+\tl_gput_right:Nn \@kernel at before@begindocument
   {
     \cs_gset_protected:Npn \[ % \]
       {





More information about the latex3-commits mailing list.