[latex3-commits] [git/LaTeX3-latex3-latex2e] gh386: The other "below" (f445d3b0)

PhelypeOleinik phelype.oleinik at latex-project.org
Mon Sep 7 18:41:31 CEST 2020


Repository : https://github.com/latex3/latex2e
On branch  : gh386
Link       : https://github.com/latex3/latex2e/commit/f445d3b06d004936be22f89e21c920ec9da24fe8

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

commit f445d3b06d004936be22f89e21c920ec9da24fe8
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Mon Sep 7 13:41:31 2020 -0300

    The other "below"
    
    And document the need for \@currpkg at reqd [ci skip]


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

f445d3b06d004936be22f89e21c920ec9da24fe8
 base/ltclass.dtx | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/base/ltclass.dtx b/base/ltclass.dtx
index 8504d260..44fe0f88 100644
--- a/base/ltclass.dtx
+++ b/base/ltclass.dtx
@@ -1746,10 +1746,17 @@
 %    \changes{v1.3q}{2020/09/06}
 %         {Save \cs{@currpkg at reqd} so that we don't lose track of
 %          package substitutions.}
-%    The \cs{set at curr@file} line below might have replaced the file, so
+%    The \cs{set at curr@file} line above might have replaced the file, so
 %    \cs{@currname} and \cs{@currext} may no longer hold the actual
 %    package being loaded, so in that case we need to update these two
-%    token lists
+%    token lists (\cs{@curr at file} holds the file name after replacement,
+%    so we parse that).
+%
+%    The requested file is saved in \cs{@currpkg at reqd} to be used in
+%    \cs{InputIfFileExists} later:  if the updated \cs{@currname} and
+%    \cs{@currext} are used we lose track of the substitution, so
+%    \cs{CurrentFile} and \cs{CurrentFileUsed} will be (incorrectly)
+%    the same.
 %    \begin{macrocode}
           \edef\@currpkg at reqd{\@currname.\@currext}%
           \ifx\CurrentFile\CurrentFileUsed





More information about the latex3-commits mailing list.