[latex3-commits] [git/LaTeX3-latex3-latex2e] gh992: In latexrelease, define \load at onefilewithoptions (9c14977f)

PhelypeOleinik phelype.oleinik at latex-project.org
Sat Apr 15 04:53:25 CEST 2023


Repository : https://github.com/latex3/latex2e
On branch  : gh992
Link       : https://github.com/latex3/latex2e/commit/9c14977fcc129519ff853b1bb1f5bfdb7cc1bbc6

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

commit 9c14977fcc129519ff853b1bb1f5bfdb7cc1bbc6
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Fri Apr 14 23:53:25 2023 -0300

    In latexrelease, define \load at onefilewithoptions
    
    Fixes #992


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

9c14977fcc129519ff853b1bb1f5bfdb7cc1bbc6
 base/ltclass.dtx | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/base/ltclass.dtx b/base/ltclass.dtx
index 52ccddff..3d4e87ad 100644
--- a/base/ltclass.dtx
+++ b/base/ltclass.dtx
@@ -2144,8 +2144,21 @@
 %<*2ekernel|latexrelease>
 %<latexrelease>\IncludeInRelease{2020/10/01}%
 %<latexrelease>      {\@onefilewithoptions}{Hooks and unused options issue}%
+%    \end{macrocode}
+%
+%   Here this macro is called \cs{@onefilewithoptions}, but further
+%   ahead in this file it is renamed to \cs{load at onefilewithoptions},
+%   and \cs{@onefilewithoptions} becomes a wrapper around this, used for
+%   bookkeeping when rolling back.  Therefore, when in
+%   \pkg{latexrelease}, we need to define \cs{load at onefilewithoptions}
+%   instead, thus the extra guarded \cs{def} line below:
+%    \begin{macrocode}
+%<*2ekernel>
 \def\@onefilewithoptions#1[#2][#3]#4{%
+%</2ekernel>
+%<latexrelease>\def\load at onefilewithoptions#1[#2][#3]#4{%
 %    \end{macrocode}
+%
 %    We have to sanitise file names, so that something like
 % \begin{verbatim}
 %   \usepackage{some/local/path/array}





More information about the latex3-commits mailing list.