[latex3-commits] [git/LaTeX3-latex3-latex2e] lthooks: take kernel stuff out of the begindocument hook (e74961f8)

Frank Mittelbach frank.mittelbach at latex-project.org
Mon Jul 13 12:51:32 CEST 2020


Repository : https://github.com/latex3/latex2e
On branch  : lthooks
Link       : https://github.com/latex3/latex2e/commit/e74961f8b3f17cc7db64bcd71767da5c6a8d70a6

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

commit e74961f8b3f17cc7db64bcd71767da5c6a8d70a6
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Mon Jul 13 12:51:32 2020 +0200

    take kernel stuff out of the begindocument hook


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

e74961f8b3f17cc7db64bcd71767da5c6a8d70a6
 base/ltfinal.dtx | 25 ++++++++++---------------
 1 file changed, 10 insertions(+), 15 deletions(-)

diff --git a/base/ltfinal.dtx b/base/ltfinal.dtx
index 9edeaf56..a7b5073f 100644
--- a/base/ltfinal.dtx
+++ b/base/ltfinal.dtx
@@ -33,7 +33,7 @@
 %<*driver>
 % \fi
 \ProvidesFile{ltfinal.dtx}
-             [2020-07-09 v2.2d LaTeX Kernel (Final Settings)]
+             [2020-07-13 v2.2e LaTeX Kernel (Final Settings)]
 % \iffalse
 \documentclass{ltxdoc}
 \GetFileInfo{ltfinal.dtx}
@@ -1127,14 +1127,6 @@
 % \end{macro}
 % \end{macro}
 %
-%    \subsection{Some last minute initializations \ldots}
-%
-%    This initializes the 2020/02/02 extensions to NFSS after any changes
-%    in the preamble.
-%    \begin{macrocode}
-\AtBeginDocument{\reinstall at nfss@defs\init at series@setup}
-%    \end{macrocode}
-%
 %
 %
 % \subsection{Do some temporary work for pre-release}
@@ -1353,19 +1345,22 @@
 %<latexrelease>\let  \AtEndDvi \@undefined
 %<latexrelease>\expandafter\let \csname ver at atenddvi.sty\endcsname \@undefined
 %<latexrelease>
+%<latexrelease>\AtBeginDocument{\reinstall at nfss@defs\init at series@setup}
 %<latexrelease>
 %<latexrelease>\EndIncludeInRelease
 %<*2ekernel>
 %    \end{macrocode}
-%    Stuff that needs rollback
+%
+%    \subsection{Some last minute initializations \ldots}
+%
+%    This initializes the 2020/02/02 extensions to NFSS after any changes
+%    in the preamble.
 %    \begin{macrocode}
-\iffalse
-% ltfilehook
-\load at onefilewithoptions
-\@include
-\fi
+\g at addto@macro\@kernel at after@env at document@begin
+              {\reinstall at nfss@defs\init at series@setup}
 %    \end{macrocode}
 %
+%
 % \subsection{Dumping the format}
 %    Finally we make |@| into a letter, ensure the format will
 % be in the `normal' error mode, and dump everything into the





More information about the latex3-commits mailing list.