texlive[56775] Master/texmf-dist: latex (26oct20)

commits+karl at tug.org commits+karl at tug.org
Mon Oct 26 22:06:20 CET 2020


Revision: 56775
          http://tug.org/svn/texlive?view=revision&revision=56775
Author:   karl
Date:     2020-10-26 22:06:19 +0100 (Mon, 26 Oct 2020)
Log Message:
-----------
latex (26oct20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/base/README.md
    trunk/Master/texmf-dist/doc/latex/base/alltt.pdf
    trunk/Master/texmf-dist/doc/latex/base/cfgguide.pdf
    trunk/Master/texmf-dist/doc/latex/base/changes.txt
    trunk/Master/texmf-dist/doc/latex/base/classes.pdf
    trunk/Master/texmf-dist/doc/latex/base/clsguide.pdf
    trunk/Master/texmf-dist/doc/latex/base/cmfonts.pdf
    trunk/Master/texmf-dist/doc/latex/base/cyrguide.pdf
    trunk/Master/texmf-dist/doc/latex/base/doc.pdf
    trunk/Master/texmf-dist/doc/latex/base/docstrip.pdf
    trunk/Master/texmf-dist/doc/latex/base/encguide.pdf
    trunk/Master/texmf-dist/doc/latex/base/exscale.pdf
    trunk/Master/texmf-dist/doc/latex/base/fix-cm.pdf
    trunk/Master/texmf-dist/doc/latex/base/fntguide.pdf
    trunk/Master/texmf-dist/doc/latex/base/graphpap.pdf
    trunk/Master/texmf-dist/doc/latex/base/ifthen.pdf
    trunk/Master/texmf-dist/doc/latex/base/inputenc.pdf
    trunk/Master/texmf-dist/doc/latex/base/latexchanges.pdf
    trunk/Master/texmf-dist/doc/latex/base/latexrelease.pdf
    trunk/Master/texmf-dist/doc/latex/base/latexsym.pdf
    trunk/Master/texmf-dist/doc/latex/base/lb2.pdf
    trunk/Master/texmf-dist/doc/latex/base/letter.pdf
    trunk/Master/texmf-dist/doc/latex/base/lgc2.pdf
    trunk/Master/texmf-dist/doc/latex/base/lppl.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltfilehook-code.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltfilehook-doc.pdf
    trunk/Master/texmf-dist/doc/latex/base/lthooks-code.pdf
    trunk/Master/texmf-dist/doc/latex/base/lthooks-doc.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltluatex.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltnews.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltnews01.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltnews02.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltnews03.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltnews04.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltnews05.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltnews06.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltnews07.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltnews08.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltnews09.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltnews10.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltnews11.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltnews12.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltnews13.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltnews14.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltnews15.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltnews16.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltnews17.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltnews18.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltnews19.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltnews20.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltnews21.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltnews22.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltnews23.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltnews24.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltnews25.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltnews26.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltnews27.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltnews28.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltnews29.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltnews30.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltnews31.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltnews32.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltshipout-code.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltshipout-doc.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltx3info.pdf
    trunk/Master/texmf-dist/doc/latex/base/ltxdoc.pdf
    trunk/Master/texmf-dist/doc/latex/base/makeindx.pdf
    trunk/Master/texmf-dist/doc/latex/base/manual.pdf
    trunk/Master/texmf-dist/doc/latex/base/modguide.pdf
    trunk/Master/texmf-dist/doc/latex/base/nfssfont.pdf
    trunk/Master/texmf-dist/doc/latex/base/proc.pdf
    trunk/Master/texmf-dist/doc/latex/base/slides.pdf
    trunk/Master/texmf-dist/doc/latex/base/slifonts.pdf
    trunk/Master/texmf-dist/doc/latex/base/source2e.pdf
    trunk/Master/texmf-dist/doc/latex/base/syntonly.pdf
    trunk/Master/texmf-dist/doc/latex/base/tlc2.pdf
    trunk/Master/texmf-dist/doc/latex/base/tulm.pdf
    trunk/Master/texmf-dist/doc/latex/base/usrguide.pdf
    trunk/Master/texmf-dist/doc/latex/base/utf8ienc.pdf
    trunk/Master/texmf-dist/doc/latex/base/webcomp.pdf
    trunk/Master/texmf-dist/source/latex/base/ltclass.dtx
    trunk/Master/texmf-dist/source/latex/base/ltfilehook.dtx
    trunk/Master/texmf-dist/source/latex/base/lthooks.dtx
    trunk/Master/texmf-dist/source/latex/base/ltmiscen.dtx
    trunk/Master/texmf-dist/source/latex/base/ltvers.dtx
    trunk/Master/texmf-dist/tex/latex/base/atveryend-ltx.sty
    trunk/Master/texmf-dist/tex/latex/base/latex.ltx
    trunk/Master/texmf-dist/tex/latex/base/latexrelease.sty
    trunk/Master/texmf-dist/tex/latex/base/structuredlog.sty

Modified: trunk/Master/texmf-dist/doc/latex/base/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/base/README.md	2020-10-26 20:59:29 UTC (rev 56774)
+++ trunk/Master/texmf-dist/doc/latex/base/README.md	2020-10-26 21:06:19 UTC (rev 56775)
@@ -1,7 +1,7 @@
 The LaTeX kernel
 ================
 
-Release 2020-10-01 patch level 1
+Release 2020-10-01 patch level 2
 
 Overview
 --------

Modified: trunk/Master/texmf-dist/doc/latex/base/alltt.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/cfgguide.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/changes.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex/base/changes.txt	2020-10-26 20:59:29 UTC (rev 56774)
+++ trunk/Master/texmf-dist/doc/latex/base/changes.txt	2020-10-26 21:06:19 UTC (rev 56775)
@@ -11,6 +11,25 @@
 ================================================================================
 
 #########################
+# 2020-10-01 PL 2 Release
+#########################
+
+2020-10-23  Phelype Oleinik  <phelype.oleinik at latex-project.org>
+
+	* ltmiscen.dtx:
+	Make 'enddocument/afteraux' a one-time hook (gh/418).
+
+2020-10-18  Phelype Oleinik  <phelype.oleinik at latex-project.org>
+
+	* ltclass.dtx:
+	Fix passing options to class/package in \input at path (gh/414).
+
+2020-10-11  Phelype Oleinik  <phelype.oleinik at latex-project.org>
+
+	* ltclass.dtx:
+	Reset \@currpkg at reqd after loading a package file (gh/408).
+
+#########################
 # 2020-10-01 PL 1 Release
 #########################
 

Modified: trunk/Master/texmf-dist/doc/latex/base/classes.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/clsguide.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/cmfonts.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/cyrguide.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/docstrip.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/encguide.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/exscale.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/fix-cm.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/fntguide.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/graphpap.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ifthen.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/inputenc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/latexchanges.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/latexrelease.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/latexsym.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/lb2.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/letter.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/lgc2.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/lppl.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltfilehook-code.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltfilehook-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/lthooks-code.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/lthooks-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltluatex.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltnews.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltnews01.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltnews02.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltnews03.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltnews04.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltnews05.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltnews06.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltnews07.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltnews08.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltnews09.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltnews10.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltnews11.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltnews12.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltnews13.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltnews14.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltnews15.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltnews16.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltnews17.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltnews18.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltnews19.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltnews20.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltnews21.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltnews22.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltnews23.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltnews24.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltnews25.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltnews26.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltnews27.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltnews28.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltnews29.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltnews30.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltnews31.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltnews32.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltshipout-code.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltshipout-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltx3info.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/ltxdoc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/makeindx.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/manual.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/modguide.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/nfssfont.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/proc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/slides.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/slifonts.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/source2e.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/syntonly.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/tlc2.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/tulm.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/usrguide.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/utf8ienc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/base/webcomp.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/base/ltclass.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/base/ltclass.dtx	2020-10-26 20:59:29 UTC (rev 56774)
+++ trunk/Master/texmf-dist/source/latex/base/ltclass.dtx	2020-10-26 21:06:19 UTC (rev 56775)
@@ -33,7 +33,7 @@
 %<*driver>
 % \fi
 \ProvidesFile{ltclass.dtx}
-             [2020/10/08 v1.3s LaTeX Kernel (Class & Package Interface)]
+             [2020/10/18 v1.3t LaTeX Kernel (Class & Package Interface)]
 % \iffalse
 \documentclass{ltxdoc}
 \GetFileInfo{ltclass.dtx}
@@ -943,8 +943,9 @@
 \def\@pr at videpackage[#1]{%
   \expandafter\protected at xdef                %     <-- protected...
      \csname ver@\@currname.\@currext\endcsname{#1}% Loaded package
-  \expandafter\protected at xdef                %     <-- protected...
-     \csname ver@\@currpkg at reqd\endcsname{#1}% Requested package
+  \expandafter\let
+    \csname ver@\@currpkg at reqd\expandafter\endcsname % Requested package
+    \csname ver@\@currname.\@currext\endcsname
   \ifx\@currext\@clsextension
     \typeout{Document Class: \@gtempa\space#1}%
   \else
@@ -1064,6 +1065,7 @@
 % \begin{macro}{\PassOptionsToClass}
 % If the package has been loaded, we check that it was first loaded with
 % the options.  Otherwise we add the option list to that of the package.
+% \changes{v1.3t}{2020/10/18}{Drop path from \cs{input at path} (gh/414).}
 %    \begin{macrocode}
 %</2ekernel>
 %<latexrelease>\IncludeInRelease{2020/10/01}{\@pass at ptions}
@@ -1070,7 +1072,9 @@
 %<latexrelease>  {Add file replacement in \@pass at ptions}%
 %<*2ekernel|latexrelease>
 \def\@pass at ptions#1#2#3{%
-  \edef\reserved at a{\@expl@@@filehook at resolve@file at subst@@w #3.#1\@nil}%
+  \@expl@@@filehook at set@curr at file@@nNN
+    {\@expl@@@filehook at resolve@file at subst@@w #3.#1\@nil}%
+      \reserved at a\reserved at b
   \expandafter\xdef\csname opt@\reserved at a\endcsname{%
     \@ifundefined{opt@\reserved at a}\@empty
       {\csname opt@\reserved at a\endcsname,}%
@@ -1801,7 +1805,13 @@
 %    \cs{@currext} are used we lose track of the substitution, so
 %    \cs{CurrentFile} and \cs{CurrentFileUsed} will be (incorrectly)
 %    the same.
+%
+%    \changes{v1.3t}{2020-10-11}{Restore \cs{@currpkg at reqd} after
+%      finished loading a package file (gh/408).}
 %    \begin{macrocode}
+          \expandafter\@swaptwoargs\expandafter
+            {\expandafter{\@currpkg at reqd}}%
+            {% <
           \edef\@currpkg at reqd{\@currname.\@currext}%
           \ifx\CurrentFile\CurrentFileUsed
           \else
@@ -1810,6 +1820,8 @@
             \edef\@currext{\string at makeletter\filename at ext}%
           \fi
           \load at onefile@withoptions{#2}%
+          \def\@currpkg at reqd%{\@currpkg at reqd}
+            }% >
 %    \end{macrocode}
 %    Now just clean up and exit.
 %    \begin{macrocode}
@@ -1836,8 +1848,12 @@
     \@popfilename
     \@reset at ptions}
 %    \end{macrocode}
-%    
+%
 %    \begin{macrocode}
+\let\@currpkg at reqd\@empty
+%    \end{macrocode}
+%
+%    \begin{macrocode}
 \@onlypreamble\@onefilewithoptions
 %    \end{macrocode}
 %

Modified: trunk/Master/texmf-dist/source/latex/base/ltfilehook.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/base/ltfilehook.dtx	2020-10-26 20:59:29 UTC (rev 56774)
+++ trunk/Master/texmf-dist/source/latex/base/ltfilehook.dtx	2020-10-26 21:06:19 UTC (rev 56775)
@@ -31,8 +31,8 @@
 %%% From File: ltfilehook.dtx
 %
 %    \begin{macrocode}
-\providecommand\ltfilehookversion{v1.0b}
-\providecommand\ltfilehookdate{2020/09/26}
+\providecommand\ltfilehookversion{v1.0c}
+\providecommand\ltfilehookdate{2020/10/18}
 %    \end{macrocode}
 %
 %<*driver>
@@ -840,7 +840,7 @@
 %<latexrelease>\IncludeInRelease{2020/10/01}%
 %<latexrelease>          {\declare at file@substitution}{File substitution}%
 \ExplSyntaxOn
-\cs_new_eq:NN \declare at file@substitution   \@@_subst_add:nn 
+\cs_new_eq:NN \declare at file@substitution   \@@_subst_add:nn
 \cs_new_eq:NN \undeclare at file@substitution \@@_subst_remove:n
 \ExplSyntaxOff
 %</2ekernel|latexrelease>
@@ -872,8 +872,8 @@
 %
 % \begin{macro}{\set at curr@file,\@curr at file,\@curr at file@reqd}
 %   Now we hook into \cs{set at curr@file} to resolve a possible file
-%   substitution, and add \cs{@expl@@@filehook at set@curr at file@@N} at the end, after
-%   \cs{@curr at file} is set.
+%   substitution, and add \cs{@expl@@@filehook at set@curr at file@@nNN}
+%   at the end, after \cs{@curr at file} is set.
 %
 %   A file name is built using
 %   \cs{expandafter}\cs{string}\cs{csname}\meta{filename}\cs{endcsname}
@@ -987,24 +987,24 @@
     .tex\else\string#1\fi}
 %    \end{macrocode}
 %    
-%   Then we call \cs{@expl@@@filehook at set@curr at file@@N} once for \cs{@curr at file}
-%   to set \cs[no-index]{CurrentFile(Path)Used} and once for
+%   Then we call \cs{@expl@@@filehook at set@curr at file@@nNN} once for
+%   \cs{@curr at file} to set \cs[no-index]{CurrentFile(Path)Used} and once for
 %   \cs{@curr at file@reqd} to set \cs[no-index]{CurrentFile(Path)}.
 %   Here too the slower route is only used if a substitution happened,
-%   but here \cs{@expl@@@filehook at if@file at replaced@@TF} can't be used because the
-%   flag is reset at the \cs{endgroup} above, so we check if
+%   but here \cs{@expl@@@filehook at if@file at replaced@@TF} can't be used because
+%   the flag is reset at the \cs{endgroup} above, so we check if
 %   \cs{@curr at file} and \cs{@curr at file@reqd} differ.  This macro is
 %   issued separate from \cs{set at curr@file} because it changes
 %   \cs{CurrentFile}, and side-effects would quickly get out of control.
 %    \begin{macrocode}
 \def\@filehook at set@CurrentFile{%
-  \@expl@@@filehook at set@curr at file@@N{\@curr at file}%
+  \@expl@@@filehook at set@curr at file@@nNN{\@curr at file}%
     \CurrentFileUsed\CurrentFilePathUsed
   \ifx\@curr at file@reqd\@curr at file
     \let\CurrentFile\CurrentFileUsed
     \let\CurrentFilePath\CurrentFilePathUsed
   \else
-    \@expl@@@filehook at set@curr at file@@N{\@curr at file@reqd}%
+    \@expl@@@filehook at set@curr at file@@nNN{\@curr at file@reqd}%
       \CurrentFile\CurrentFilePath
   \fi}
 %</2ekernel|latexrelease>
@@ -1016,8 +1016,7 @@
 %
 %
 %
-% \begin{macro}{\@@_set_curr_file:N,
-%               \@@_set_curr_file:nNN,
+% \begin{macro}{\@@_set_curr_file:nNN,
 %               \@@_set_curr_file_assign:nnnNN}
 %   When inputting a file, \cs{set at curr@file} does a file lookup
 %   (in \cs{input at path} and \cs{l_file_search_path_seq}) and returns the
@@ -1032,17 +1031,12 @@
 %</2ekernel>
 %<*2ekernel|latexrelease>
 %<latexrelease>\IncludeInRelease{2020/10/01}%
-%<latexrelease>          {@@_set_curr_file:N}{Set curr file}%
+%<latexrelease>          {@@_set_curr_file:nNN}{Set curr file}%
 \ExplSyntaxOn
 %<@@=filehook>
-\cs_new_protected:Npn \@@_set_curr_file:N #1
-   { \exp_args:NV \@@_set_curr_file:nNN #1 }
-%    \end{macrocode}
-%    
-%    \begin{macrocode}
 \cs_new_protected:Npn \@@_set_curr_file:nNN #1
   {
-    \@@_file_parse_full_name:nN {#1}
+    \exp_args:Nf \@@_file_parse_full_name:nN {#1}
       \@@_set_curr_file_assign:nnnNN
   }
 \cs_new_protected:Npn \@@_set_curr_file_assign:nnnNN #1 #2 #3 #4 #5
@@ -1331,8 +1325,8 @@
 %    \end{macrocode}
 %
 %    \begin{macrocode}
-\cs_new_eq:NN \@expl@@@filehook at set@curr at file@@N
-              \__filehook_set_curr_file:N
+\cs_new_eq:NN \@expl@@@filehook at set@curr at file@@nNN
+              \__filehook_set_curr_file:nNN
 %    \end{macrocode}
 %    
 %    \begin{macrocode}
@@ -1348,7 +1342,6 @@
 %    \begin{macrocode}
 \cs_new_eq:NN \@expl@@@filehook at if@file at replaced@@TF
               \__filehook_if_file_replaced:TF
-
 %    \end{macrocode}
 %    
 %    \begin{macrocode}

Modified: trunk/Master/texmf-dist/source/latex/base/lthooks.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/base/lthooks.dtx	2020-10-26 20:59:29 UTC (rev 56774)
+++ trunk/Master/texmf-dist/source/latex/base/lthooks.dtx	2020-10-26 21:06:19 UTC (rev 56775)
@@ -31,8 +31,8 @@
 %%% From File: lthooks.dtx
 %
 %    \begin{macrocode}
-\def\lthooksversion{v1.0d}
-\def\lthooksdate{2020/10/09}
+\def\lthooksversion{v1.0e}
+\def\lthooksdate{2020/10/23}
 %    \end{macrocode}
 %
 %<*driver>
@@ -1084,6 +1084,7 @@
 %
 % \subsection{Difference between \enquote{normal} and
 %    \enquote{one-time} hooks}
+% \label{sec:onetime-hooks}
 %
 %    When executing a hook a developer has the choice of using
 %    either \cs{UseHook} or \cs{UseOneTimeHook} (or their \pkg{expl3}
@@ -1182,6 +1183,11 @@
 %
 % \subsection{Legacy \LaTeXe{} interfaces}
 %
+% \newcommand\onetimetext{%
+%   This is a one-time hook, so after it is executed, all further
+%   attempts to add code to it will execute such code immediately
+%   (see section~\ref{sec:onetime-hooks}).}
+%
 %  \LaTeXe{} offered a small number of hooks together with commands to
 %    add to them. They are listed here and are retained for backwards
 %    compatibility.
@@ -1211,6 +1217,14 @@
 %    \cs{AddToHook} \texttt{\{begindocument\}} \oarg{label}
 %    \Arg{code}.
 %
+%    \cs{AtBeginDocument} is a wrapper around the \hook{begindocument}
+%    hook (see section~\ref{sec:begindocument-hooks}), which is a
+%    one-time hook.  As such, after the \hook{begindocument} hook is
+%    executed at \verb=\begin{document}= any attempt to add \meta{code}
+%    to this hook with \cs{AtBeginDocument} or with \cs{AddToHook} will
+%    cause that \meta{code} to execute immediately instead.
+%    See section~\ref{sec:onetime-hooks} for more on one-time hooks.
+%
 %    For important packages with known order requirement we may over
 %    time add rules to the kernel (or to those packages) so that they
 %    work regardless of the loading-order in the document.
@@ -1345,9 +1359,9 @@
 % \end{function}
 %
 %
-%    
 %
 % \subsubsection{Hooks provided by \cs{begin}\texttt{\{document\}}}
+% \label{sec:begindocument-hooks}
 %
 %    Until 2020 \cs{begin}\texttt{\{document\}} offered exactly one
 %    hook that one could add to using
@@ -1370,12 +1384,12 @@
 %      section and this is how it is used by \pkg{etoolbox}'s
 %      \cs{AtEndPreamble}.
 %
+%      \onetimetext
 %
-%
 %    \item[\hook{begindocument}]
 %
-%      This hook is added to when using \cs{AtBeginDocument} and it is executed
-%      after the \texttt{.aux} file as be read in and most
+%      This hook is added to when using \cs{AtBeginDocument} and it is
+%      executed after the \texttt{.aux} file as be read in and most
 %      initialization are done, so they can be altered and inspected by
 %      the hook code. It is followed by a small number of further
 %      initializations that shouldn't be altered and are therefore
@@ -1386,6 +1400,8 @@
 %      document body. If such material needs to be added to the document
 %      body use the next hook instead.
 %
+%      \onetimetext
+%
 %    \item[\hook{begindocument/end}]
 %
 %      This hook is executed at the end of the \cs{document} code in
@@ -1392,6 +1408,8 @@
 %      other words at the beginning of the document body. The only
 %      command that follows it is \cs{ignorespaces}.
 %
+%      \onetimetext
+%
 %    \end{description}
 %    The generic hooks executed by \cs{begin} also exist, i.e.,
 %    \hook{env/document/before} and \hook{env/document/begin}, but
@@ -1432,6 +1450,7 @@
 %      called to ensure that all such material gets typeset. If there
 %      is nothing waiting the \cs{clearpage} has no effect.
 %
+%      \onetimetext
 %
 %    \item[\hook{enddocument/afterlastpage}]
 %
@@ -1448,6 +1467,8 @@
 %      closed for writing and then read back in to do some tests
 %      (e.g., looking for missing references or duplicated labels, etc.).
 %
+%      \onetimetext
+%
 %    \item[\hook{enddocument/afteraux}]
 %
 %      At this point, the \texttt{.aux} file has been reprocessed and so
@@ -1456,6 +1477,8 @@
 %      prefer the next hook, so that your information is displayed after the
 %      (possibly longish) list of files if that got requested via \cs{listfiles}.
 %
+%      \onetimetext
+%
 %    \item[\hook{enddocument/info}]
 %
 %      This hook is meant to receive code that write final information
@@ -1470,11 +1493,15 @@
 %      \cs{listfiles} has been used and the warnings for duplicate
 %      labels, missing references, font substitutions etc.
 %
+%      \onetimetext
+%
 %    \item[\hook{enddocument/end}]
 %
 %      Finally, this hook is executed just in front of the final call
 %      to \cs{@{}@end}.
 %
+%      \onetimetext % is it even possible to add code after this one?
+%
 %    \end{description}
 %
 %
@@ -3314,7 +3341,7 @@
 \cs_new_protected:Npn \@@_log:nN #1 #2
   {
     \@@_preamble_hook:n {#1}
-    \iow_term:x { ^^J ->~The~hook~'#1': }
+    \@@_log_cmd:x { ^^J ->~The~hook~'#1': }
 %    \end{macrocode}
 %    
 %    \begin{macrocode}

Modified: trunk/Master/texmf-dist/source/latex/base/ltmiscen.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/base/ltmiscen.dtx	2020-10-26 20:59:29 UTC (rev 56774)
+++ trunk/Master/texmf-dist/source/latex/base/ltmiscen.dtx	2020-10-26 21:06:19 UTC (rev 56775)
@@ -32,7 +32,7 @@
 %<*driver>
 % \fi
 \ProvidesFile{ltmiscen.dtx}
-             [2020/08/21 v1.1v LaTeX Kernel (Misc. Environments)]
+             [2020/10/23 v1.1w LaTeX Kernel (Misc. Environments)]
 % \iffalse
 \documentclass{ltxdoc}
 \GetFileInfo{ltmiscen.dtx}
@@ -239,6 +239,7 @@
 % \changes{v1.1k}{2010/08/17}{Use braces around \cs{input} arg (pr/4124)}
 % \changes{v1.1l}{2010/08/17}{Change of plan: use \cs{@@input} instead
 %                             (pr/4124)}
+% \changes{v1.1w}{2020/10/23}{Make \texttt{enddocument/afteraux} one-time}
 %    We use |\@@input| to load the \texttt{.aux} file, so that it doesn't
 %    show up in the list of files produced by |\listfiles|.
 %    \begin{macrocode}
@@ -245,7 +246,7 @@
        \@tempswafalse
        \makeatletter \@@input\jobname.aux
      \fi
-     \UseHook{enddocument/afteraux}%
+     \UseOneTimeHook{enddocument/afteraux}%
 %    \end{macrocode}
 %    Next hook is expect to contain only code for writing info
 %    messages on the terminal.

Modified: trunk/Master/texmf-dist/source/latex/base/ltvers.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/base/ltvers.dtx	2020-10-26 20:59:29 UTC (rev 56774)
+++ trunk/Master/texmf-dist/source/latex/base/ltvers.dtx	2020-10-26 21:06:19 UTC (rev 56775)
@@ -115,7 +115,7 @@
    {2020-10-01}
 %</2ekernel|latexrelease>
 %<*2ekernel>
-\def\patch at level{1}
+\def\patch at level{2}
 %    \end{macrocode}
 %
 % \begin{macro}{\development at branch@name}

Modified: trunk/Master/texmf-dist/tex/latex/base/atveryend-ltx.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/base/atveryend-ltx.sty	2020-10-26 20:59:29 UTC (rev 56774)
+++ trunk/Master/texmf-dist/tex/latex/base/atveryend-ltx.sty	2020-10-26 21:06:19 UTC (rev 56775)
@@ -45,8 +45,8 @@
 %% File: ltfilehook.dtx (C) Copyright 2020 Frank Mittelbach,
 %%                                         Phelype Oleinik & LaTeX Team
 %%% From File: ltfilehook.dtx
-\providecommand\ltfilehookversion{v1.0b}
-\providecommand\ltfilehookdate{2020/09/26}
+\providecommand\ltfilehookversion{v1.0c}
+\providecommand\ltfilehookdate{2020/10/18}
 \ProvidesPackage{atveryend-ltx}
    [2020/08/19 v1.0a
      Emulation of the original atvery package^^Jwith kernel methods]

Modified: trunk/Master/texmf-dist/tex/latex/base/latex.ltx
===================================================================
--- trunk/Master/texmf-dist/tex/latex/base/latex.ltx	2020-10-26 20:59:29 UTC (rev 56774)
+++ trunk/Master/texmf-dist/tex/latex/base/latex.ltx	2020-10-26 21:06:19 UTC (rev 56775)
@@ -710,7 +710,7 @@
 \def\fmtname{LaTeX2e}
 \edef\fmtversion
    {2020-10-01}
-\def\patch at level{1}
+\def\patch at level{2}
 \edef\development at branch@name{}
 \iffalse
 \def\reserved at a#1/#2/#3\@nil{%
@@ -1628,8 +1628,8 @@
 %% File: lthooks.dtx (C) Copyright 2020 Frank Mittelbach,
 %%                                      Phelype Oleinik & LaTeX Team
 %%% From File: lthooks.dtx
-\def\lthooksversion{v1.0d}
-\def\lthooksdate{2020/10/09}
+\def\lthooksversion{v1.0e}
+\def\lthooksdate{2020/10/23}
 \ExplSyntaxOn
 \bool_new:N \g__hook_debug_bool
 \cs_new_eq:NN \__hook_debug:n \use_none:n
@@ -2258,7 +2258,7 @@
 \cs_new_protected:Npn \__hook_log:nN #1 #2
   {
     \__hook_preamble_hook:n {#1}
-    \iow_term:x { ^^J ->~The~hook~'#1': }
+    \__hook_log_cmd:x { ^^J ->~The~hook~'#1': }
     \hook_if_exist:nF {#1}
       { \__hook_log_line:x { is~not~declared! } }
     \__hook_if_exist:nTF {#1}
@@ -7140,7 +7140,7 @@
        \@tempswafalse
        \makeatletter \@@input\jobname.aux
      \fi
-     \UseHook{enddocument/afteraux}%
+     \UseOneTimeHook{enddocument/afteraux}%
      \UseOneTimeHook{enddocument/info}%
    \endgroup
    \UseOneTimeHook{enddocument/end}%
@@ -9739,8 +9739,9 @@
 \def\@pr at videpackage[#1]{%
   \expandafter\protected at xdef                %     <-- protected...
      \csname ver@\@currname.\@currext\endcsname{#1}% Loaded package
-  \expandafter\protected at xdef                %     <-- protected...
-     \csname ver@\@currpkg at reqd\endcsname{#1}% Requested package
+  \expandafter\let
+    \csname ver@\@currpkg at reqd\expandafter\endcsname % Requested package
+    \csname ver@\@currname.\@currext\endcsname
   \ifx\@currext\@clsextension
     \typeout{Document Class: \@gtempa\space#1}%
   \else
@@ -9764,7 +9765,9 @@
     \@makeother\&%
     \kernel at ifnextchar[{\@providesfile{#1}}{\@providesfile{#1}[]}}
 \def\@pass at ptions#1#2#3{%
-  \edef\reserved at a{\@expl@@@filehook at resolve@file at subst@@w #3.#1\@nil}%
+  \@expl@@@filehook at set@curr at file@@nNN
+    {\@expl@@@filehook at resolve@file at subst@@w #3.#1\@nil}%
+      \reserved at a\reserved at b
   \expandafter\xdef\csname opt@\reserved at a\endcsname{%
     \@ifundefined{opt@\reserved at a}\@empty
       {\csname opt@\reserved at a\endcsname,}%
@@ -9993,6 +9996,9 @@
          {\@expl@@@filehook at file@push@@
           \set at curr@file{\@currname.\@currext}%
           \@filehook at set@CurrentFile
+          \expandafter\@swaptwoargs\expandafter
+            {\expandafter{\@currpkg at reqd}}%
+            {% <
           \edef\@currpkg at reqd{\@currname.\@currext}%
           \ifx\CurrentFile\CurrentFileUsed
           \else
@@ -10001,6 +10007,8 @@
             \edef\@currext{\string at makeletter\filename at ext}%
           \fi
           \load at onefile@withoptions{#2}%
+          \def\@currpkg at reqd%{\@currpkg at reqd}
+            }% >
           \@expl@@@filehook at file@pop@@}%
        \expandafter\@firstofone
      \fi}%
@@ -10015,6 +10023,7 @@
      \ifx\@currext\@clsextension\let\LoadClass\@twoloadclasserror\fi}%
     \@popfilename
     \@reset at ptions}
+\let\@currpkg at reqd\@empty
 \@onlypreamble\@onefilewithoptions
 \let\@unprocessedoptions\@undefined
 \def\@missing at onefilewithoptions#1{%
@@ -10465,8 +10474,8 @@
 %% File: ltfilehook.dtx (C) Copyright 2020 Frank Mittelbach,
 %%                                         Phelype Oleinik & LaTeX Team
 %%% From File: ltfilehook.dtx
-\providecommand\ltfilehookversion{v1.0b}
-\providecommand\ltfilehookdate{2020/09/26}
+\providecommand\ltfilehookversion{v1.0c}
+\providecommand\ltfilehookdate{2020/10/18}
 \ExplSyntaxOn
 \tl_new:N \CurrentFile
 \tl_new:N \CurrentFilePath
@@ -10612,21 +10621,19 @@
   \expandafter\ifx\csname\endcsname#1%
     .tex\else\string#1\fi}
 \def\@filehook at set@CurrentFile{%
-  \@expl@@@filehook at set@curr at file@@N{\@curr at file}%
+  \@expl@@@filehook at set@curr at file@@nNN{\@curr at file}%
     \CurrentFileUsed\CurrentFilePathUsed
   \ifx\@curr at file@reqd\@curr at file
     \let\CurrentFile\CurrentFileUsed
     \let\CurrentFilePath\CurrentFilePathUsed
   \else
-    \@expl@@@filehook at set@curr at file@@N{\@curr at file@reqd}%
+    \@expl@@@filehook at set@curr at file@@nNN{\@curr at file@reqd}%
       \CurrentFile\CurrentFilePath
   \fi}
 \ExplSyntaxOn
-\cs_new_protected:Npn \__filehook_set_curr_file:N #1
-   { \exp_args:NV \__filehook_set_curr_file:nNN #1 }
 \cs_new_protected:Npn \__filehook_set_curr_file:nNN #1
   {
-    \__filehook_file_parse_full_name:nN {#1}
+    \exp_args:Nf \__filehook_file_parse_full_name:nN {#1}
       \__filehook_set_curr_file_assign:nnnNN
   }
 \cs_new_protected:Npn \__filehook_set_curr_file_assign:nnnNN #1 #2 #3 #4 #5
@@ -10700,8 +10707,8 @@
 \ExplSyntaxOn
 \cs_new_eq:NN \@expl@@@filehook at if@no at extension@@nTF
               \__filehook_if_no_extension:nTF
-\cs_new_eq:NN \@expl@@@filehook at set@curr at file@@N
-              \__filehook_set_curr_file:N
+\cs_new_eq:NN \@expl@@@filehook at set@curr at file@@nNN
+              \__filehook_set_curr_file:nNN
 \cs_new_eq:NN \@expl@@@filehook at resolve@file at subst@@w
               \__filehook_resolve_file_subst:w
 \cs_new_eq:NN \@expl@@@filehook at normalize@file at name@@w
@@ -10708,7 +10715,6 @@
               \__filehook_normalize_file_name:w
 \cs_new_eq:NN \@expl@@@filehook at if@file at replaced@@TF
               \__filehook_if_file_replaced:TF
-
 \cs_new_eq:NN \@expl@@@filehook at drop@extension@@N
               \__filehook_drop_extension:N
 \cs_new_eq:NN \@expl@@@filehook at file@push@@

Modified: trunk/Master/texmf-dist/tex/latex/base/latexrelease.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/base/latexrelease.sty	2020-10-26 20:59:29 UTC (rev 56774)
+++ trunk/Master/texmf-dist/tex/latex/base/latexrelease.sty	2020-10-26 21:06:19 UTC (rev 56775)
@@ -1011,8 +1011,8 @@
 %% File: lthooks.dtx (C) Copyright 2020 Frank Mittelbach,
 %%                                      Phelype Oleinik & LaTeX Team
 %%% From File: lthooks.dtx
-\def\lthooksversion{v1.0d}
-\def\lthooksdate{2020/10/09}
+\def\lthooksversion{v1.0e}
+\def\lthooksdate{2020/10/23}
 \IncludeInRelease{2020/10/01}%
                  {\NewHook}{The hook management}%
 \ExplSyntaxOn
@@ -1643,7 +1643,7 @@
 \cs_new_protected:Npn \__hook_log:nN #1 #2
   {
     \__hook_preamble_hook:n {#1}
-    \iow_term:x { ^^J ->~The~hook~'#1': }
+    \__hook_log_cmd:x { ^^J ->~The~hook~'#1': }
     \hook_if_exist:nF {#1}
       { \__hook_log_line:x { is~not~declared! } }
     \__hook_if_exist:nTF {#1}
@@ -4047,8 +4047,8 @@
 %% File: ltfilehook.dtx (C) Copyright 2020 Frank Mittelbach,
 %%                                         Phelype Oleinik & LaTeX Team
 %%% From File: ltfilehook.dtx
-\providecommand\ltfilehookversion{v1.0b}
-\providecommand\ltfilehookdate{2020/09/26}
+\providecommand\ltfilehookversion{v1.0c}
+\providecommand\ltfilehookdate{2020/10/18}
 \IncludeInRelease{2020/10/01}%
                  {\CurrentFile}{Hook management file}%
 \ExplSyntaxOn
@@ -4261,24 +4261,22 @@
   \expandafter\ifx\csname\endcsname#1%
     .tex\else\string#1\fi}
 \def\@filehook at set@CurrentFile{%
-  \@expl@@@filehook at set@curr at file@@N{\@curr at file}%
+  \@expl@@@filehook at set@curr at file@@nNN{\@curr at file}%
     \CurrentFileUsed\CurrentFilePathUsed
   \ifx\@curr at file@reqd\@curr at file
     \let\CurrentFile\CurrentFileUsed
     \let\CurrentFilePath\CurrentFilePathUsed
   \else
-    \@expl@@@filehook at set@curr at file@@N{\@curr at file@reqd}%
+    \@expl@@@filehook at set@curr at file@@nNN{\@curr at file@reqd}%
       \CurrentFile\CurrentFilePath
   \fi}
 \EndIncludeInRelease
 \IncludeInRelease{2020/10/01}%
-          {@@_set_curr_file:N}{Set curr file}%
+          {@@_set_curr_file:nNN}{Set curr file}%
 \ExplSyntaxOn
-\cs_new_protected:Npn \__filehook_set_curr_file:N #1
-   { \exp_args:NV \__filehook_set_curr_file:nNN #1 }
 \cs_new_protected:Npn \__filehook_set_curr_file:nNN #1
   {
-    \__filehook_file_parse_full_name:nN {#1}
+    \exp_args:Nf \__filehook_file_parse_full_name:nN {#1}
       \__filehook_set_curr_file_assign:nnnNN
   }
 \cs_new_protected:Npn \__filehook_set_curr_file_assign:nnnNN #1 #2 #3 #4 #5
@@ -4371,8 +4369,8 @@
 \ExplSyntaxOn
 \cs_new_eq:NN \@expl@@@filehook at if@no at extension@@nTF
               \__filehook_if_no_extension:nTF
-\cs_new_eq:NN \@expl@@@filehook at set@curr at file@@N
-              \__filehook_set_curr_file:N
+\cs_new_eq:NN \@expl@@@filehook at set@curr at file@@nNN
+              \__filehook_set_curr_file:nNN
 \cs_new_eq:NN \@expl@@@filehook at resolve@file at subst@@w
               \__filehook_resolve_file_subst:w
 \cs_new_eq:NN \@expl@@@filehook at normalize@file at name@@w
@@ -4379,7 +4377,6 @@
               \__filehook_normalize_file_name:w
 \cs_new_eq:NN \@expl@@@filehook at if@file at replaced@@TF
               \__filehook_if_file_replaced:TF
-
 \cs_new_eq:NN \@expl@@@filehook at drop@extension@@N
               \__filehook_drop_extension:N
 \cs_new_eq:NN \@expl@@@filehook at file@push@@
@@ -5710,8 +5707,9 @@
 \def\@pr at videpackage[#1]{%
   \expandafter\protected at xdef                %     <-- protected...
      \csname ver@\@currname.\@currext\endcsname{#1}% Loaded package
-  \expandafter\protected at xdef                %     <-- protected...
-     \csname ver@\@currpkg at reqd\endcsname{#1}% Requested package
+  \expandafter\let
+    \csname ver@\@currpkg at reqd\expandafter\endcsname % Requested package
+    \csname ver@\@currname.\@currext\endcsname
   \ifx\@currext\@clsextension
     \typeout{Document Class: \@gtempa\space#1}%
   \else
@@ -5750,7 +5748,9 @@
 \IncludeInRelease{2020/10/01}{\@pass at ptions}
   {Add file replacement in \@pass at ptions}%
 \def\@pass at ptions#1#2#3{%
-  \edef\reserved at a{\@expl@@@filehook at resolve@file at subst@@w #3.#1\@nil}%
+  \@expl@@@filehook at set@curr at file@@nNN
+    {\@expl@@@filehook at resolve@file at subst@@w #3.#1\@nil}%
+      \reserved at a\reserved at b
   \expandafter\xdef\csname opt@\reserved at a\endcsname{%
     \@ifundefined{opt@\reserved at a}\@empty
       {\csname opt@\reserved at a\endcsname,}%
@@ -5920,6 +5920,9 @@
          {\@expl@@@filehook at file@push@@
           \set at curr@file{\@currname.\@currext}%
           \@filehook at set@CurrentFile
+          \expandafter\@swaptwoargs\expandafter
+            {\expandafter{\@currpkg at reqd}}%
+            {% <
           \edef\@currpkg at reqd{\@currname.\@currext}%
           \ifx\CurrentFile\CurrentFileUsed
           \else
@@ -5928,6 +5931,8 @@
             \edef\@currext{\string at makeletter\filename at ext}%
           \fi
           \load at onefile@withoptions{#2}%
+          \def\@currpkg at reqd%{\@currpkg at reqd}
+            }% >
           \@expl@@@filehook at file@pop@@}%
        \expandafter\@firstofone
      \fi}%
@@ -5942,6 +5947,7 @@
      \ifx\@currext\@clsextension\let\LoadClass\@twoloadclasserror\fi}%
     \@popfilename
     \@reset at ptions}
+\let\@currpkg at reqd\@empty
 \@onlypreamble\@onefilewithoptions
 \let\@unprocessedoptions\@undefined
 \def\@missing at onefilewithoptions#1{%
@@ -9693,7 +9699,7 @@
        \@tempswafalse
        \makeatletter \@@input\jobname.aux
      \fi
-     \UseHook{enddocument/afteraux}%
+     \UseOneTimeHook{enddocument/afteraux}%
      \UseOneTimeHook{enddocument/info}%
    \endgroup
    \UseOneTimeHook{enddocument/end}%

Modified: trunk/Master/texmf-dist/tex/latex/base/structuredlog.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/base/structuredlog.sty	2020-10-26 20:59:29 UTC (rev 56774)
+++ trunk/Master/texmf-dist/tex/latex/base/structuredlog.sty	2020-10-26 21:06:19 UTC (rev 56775)
@@ -45,8 +45,8 @@
 %% File: ltfilehook.dtx (C) Copyright 2020 Frank Mittelbach,
 %%                                         Phelype Oleinik & LaTeX Team
 %%% From File: ltfilehook.dtx
-\providecommand\ltfilehookversion{v1.0b}
-\providecommand\ltfilehookdate{2020/09/26}
+\providecommand\ltfilehookversion{v1.0c}
+\providecommand\ltfilehookdate{2020/10/18}
 \ProvidesExplPackage
     {structuredlog}{\ltfilehookdate}{\ltfilehookversion}
     {Structuring the TeX transcript file}



More information about the tex-live-commits mailing list.