[latex3-commits] [git/LaTeX3-latex3-latex2e] master: Fix for #414 in firstaid (a893f796)

PhelypeOleinik phelype.oleinik at latex-project.org
Sun Oct 18 20:33:11 CEST 2020


Repository : https://github.com/latex3/latex2e
On branch  : master
Link       : https://github.com/latex3/latex2e/commit/a893f796548a2fcdd9edf8aad1d57a2ffbc51f24

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

commit a893f796548a2fcdd9edf8aad1d57a2ffbc51f24
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date:   Sun Oct 18 15:33:11 2020 -0300

    Fix for #414 in firstaid


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

a893f796548a2fcdd9edf8aad1d57a2ffbc51f24
 required/firstaid/changes.txt                      |  5 +++
 .../latex2e-first-aid-for-external-files.dtx       | 41 ++++++++++++++++++++--
 2 files changed, 44 insertions(+), 2 deletions(-)

diff --git a/required/firstaid/changes.txt b/required/firstaid/changes.txt
index 75067562..1b95383a 100644
--- a/required/firstaid/changes.txt
+++ b/required/firstaid/changes.txt
@@ -1,3 +1,8 @@
+2020-10-18  Phelype Oleinik  <phelype.oleinik at latex-project.org>
+
+	* latex2e-first-aid-for-external-files.dtx:
+	Fix for gh414 to be taken out later when it moves to the kernel.
+
 2020-10-13  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
 
 	* latex2e-first-aid-for-external-files.dtx:
diff --git a/required/firstaid/latex2e-first-aid-for-external-files.dtx b/required/firstaid/latex2e-first-aid-for-external-files.dtx
index 55e0d01e..71696b45 100644
--- a/required/firstaid/latex2e-first-aid-for-external-files.dtx
+++ b/required/firstaid/latex2e-first-aid-for-external-files.dtx
@@ -110,8 +110,8 @@
 %    \end{macrocode}
 %
 %    \begin{macrocode}
-\def\LaTeXFirstAidDate{2020/10/13}
-\def\LaTeXFirstAidVersion{v1.0f}
+\def\LaTeXFirstAidDate{2020/10/18}
+\def\LaTeXFirstAidVersion{v1.0g}
 %    \end{macrocode}
 %
 %    \begin{macrocode}
@@ -435,6 +435,43 @@
 %    \end{macrocode}
 %
 %
+%
+%    This is fixing GitHub issue 414.
+%    \begin{macrocode}
+\def\@pass at ptions#1#2#3{%
+  \@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,}%
+    \zap at space#2 \@empty}}
+\def\@filehook at set@CurrentFile{%
+  \@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@@nNN{\@curr at file@reqd}%
+      \CurrentFile\CurrentFilePath
+  \fi}
+%    \end{macrocode}
+%
+%    \begin{macrocode}
+\ExplSyntaxOn
+\cs_gset_protected:Npn \__filehook_set_curr_file:nNN #1
+  {
+    \exp_args:Nf \__filehook_file_parse_full_name:nN {#1}
+      \__filehook_set_curr_file_assign:nnnNN
+  }
+\cs_gset_eq:NN \@expl@@@filehook at set@curr at file@@nNN
+               \__filehook_set_curr_file:nNN
+\cs_undefine:N \__filehook_set_curr_file:N
+\cs_undefine:N \@expl@@@filehook at set@curr at file@@N
+\ExplSyntaxOff
+%    \end{macrocode}
+%
 %    \begin{macrocode}
 %</kernel>
 %    \end{macrocode}





More information about the latex3-commits mailing list.