[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: same game for \InputIfFileExists (21e13d77)

Frank Mittelbach frank.mittelbach at latex-project.org
Mon Feb 8 18:20:46 CET 2021


Repository : https://github.com/latex3/latex2e
On branch  : develop
Link       : https://github.com/latex3/latex2e/commit/21e13d77c79242e1c06f4b7435b8630aebaccc00

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

commit 21e13d77c79242e1c06f4b7435b8630aebaccc00
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Mon Feb 8 18:20:46 2021 +0100

    same game for \InputIfFileExists


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

21e13d77c79242e1c06f4b7435b8630aebaccc00
 base/changes.txt    |  5 +++++
 base/ltfilehook.dtx | 15 +++++++++++++--
 2 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/base/changes.txt b/base/changes.txt
index e350435e..0cb97cf9 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -6,6 +6,11 @@ completeness or accuracy and it contains some references to files that
 are not part of the distribution.
 ================================================================================
 
+2021-02-08  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
+
+	* ltfilehook.dtx (subsection{Patching \LaTeX{}'s \InputIfFileExists command}):
+	Undo the internal for robust \InputIfFileExists in rollback (gh/494)
+
 2021-02-08  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
 
 	* ltmiscen.dtx (subsection{Environments}):
diff --git a/base/ltfilehook.dtx b/base/ltfilehook.dtx
index ac35a3be..85c758ae 100644
--- a/base/ltfilehook.dtx
+++ b/base/ltfilehook.dtx
@@ -31,8 +31,8 @@
 %%% From File: ltfilehook.dtx
 %
 %    \begin{macrocode}
-\providecommand\ltfilehookversion{v1.0f}
-\providecommand\ltfilehookdate{2021/01/31}
+\providecommand\ltfilehookversion{v1.0g}
+\providecommand\ltfilehookdate{2021/02/08}
 %    \end{macrocode}
 %
 %<*driver>
@@ -855,6 +855,17 @@
 %<latexrelease>\long\def \InputIfFileExists#1#2{%
 %<latexrelease>  \IfFileExists{#1}%
 %<latexrelease>    {#2\@addtofilelist{#1}\@@input \@filef at und}}
+%    \end{macrocode}
+%
+%    Also undo the internal command as some packages unfortunately test
+%    for their existence instead of using \cs{IfFormatAtLeastTF}.
+% \changes{v1.0g}{2021/02/08}{Undo the internal for robust
+%                 \cs{InputIfFileExists} in rollback (gh/494)}
+%    \begin{macrocode}
+%<latexrelease>\expandafter\let\csname InputIfFileExists \endcsname\@undefined
+%    \end{macrocode}
+%
+%    \begin{macrocode}
 %<latexrelease>\let\@input at file@exists at with@hooks\@undefined
 %<latexrelease>\let\unqu at tefilef@und\@undefined
 %<latexrelease>\EndIncludeInRelease





More information about the latex3-commits mailing list.