[latex3-commits] [git/LaTeX3-latex3-latex2e] gh386: Loading has to be done on the requested package (afe1e2cf)

PhelypeOleinik phelype.oleinik at latex-project.org
Mon Sep 7 15:21:22 CEST 2020


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

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

commit afe1e2cfafe749f518bc1163c73e53b001f05681
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Mon Sep 7 10:21:22 2020 -0300

    Loading has to be done on the requested package
    
    \InputIfFileExists resolves the replacement before inputting


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

afe1e2cfafe749f518bc1163c73e53b001f05681
 base/ltclass.dtx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/base/ltclass.dtx b/base/ltclass.dtx
index 74feb2c2..c9707765 100644
--- a/base/ltclass.dtx
+++ b/base/ltclass.dtx
@@ -1748,6 +1748,7 @@
 %    package being loaded, so in that case we need to update these two
 %    token lists
 %    \begin{macrocode}
+          \edef\@currpkg at reqd{\@currname.\@currext}%
           \ifx\CurrentFile\CurrentFileUsed
           \else
             \filename at parse\@curr at file
@@ -1843,7 +1844,7 @@
 %    Now actually load the file (at this point we are certain it exists,
 %    but use \cs{InputIfFileExists} so that file hooks are executed):
 %    \begin{macrocode}
-    \InputIfFileExists{\@currname.\@currext}{}{}%
+    \InputIfFileExists{\@currpkg at reqd}{}{}%
 %-----------------------------------------
 %    \end{macrocode}
 %    In older versions of the code |\@unprocessedoptions| would





More information about the latex3-commits mailing list.