View | Details | Raw Unified | Return to bug 1219376
Collapse All | Expand All

(-) (-12 / +56 lines)
Line  Link Here
-- tex/latex/base/latex.ltx
Lines 7159-7179 Type H <return> for immediate help.}% Link Here
7159
  \set@curr@file{#1}%
7159
  \set@curr@file{#1}%
7160
  \expandafter\IfFileExists@\expandafter{\@curr@file}}
7160
  \expandafter\IfFileExists@\expandafter{\@curr@file}}
7161
\long\def \IfFileExists@#1#2#3{%
7161
\long\def \IfFileExists@#1#2#3{%
7162
  \openin\@inputcheck"#1" %
7162
  \edef\@filef@und{\IfFileExists@@{#1}}%
7163
  \ifeof\@inputcheck
7163
  \ifx\@filef@und\@empty
7164
    \ifx\input@path\@undefined
7164
    \if\relax\detokenize{#1}\relax
7165
      \let\reserved@a\@secondoftwo
7165
      \let\reserved@a\@firstoftwo
7166
      \def\@filef@und{".tex" }%
7166
    \else
7167
    \else
7167
      \def\reserved@a{\@iffileonpath{#1}}%
7168
      \let\reserved@a\@secondoftwo
7168
    \fi
7169
    \fi
7169
  \else
7170
  \else
7170
    \closein\@inputcheck
7171
    \edef\@filef@und{"#1" }%
7172
    \let\reserved@a\@firstoftwo
7171
    \let\reserved@a\@firstoftwo
7172
    \edef\@filef@und{"\@filef@und" }%
7173
  \fi
7173
  \fi
7174
  \expandafter\def\expandafter\reserved@a
7174
  \expandafter\def\expandafter\reserved@a
7175
    \expandafter{\reserved@a{#2}{#3}}%
7175
    \expandafter{\reserved@a{#2}{#3}}%
7176
\reserved@a}
7176
\reserved@a}
7177
\ExplSyntaxOn
7178
\cs_new:Npn \IfFileExists@@ #1
7179
  {
7180
    \tl_if_blank:nF {#1}
7181
      {
7182
        \tl_if_head_eq_charcode:oNTF { \use:n #1 } |
7183
          {#1}
7184
          { \file_full_name:n {#1} }
7185
      }
7186
  }
7187
\cs_generate_variant:Nn \tl_if_head_eq_charcode:nNTF { o }
7188
\ExplSyntaxOff
7177
\long\def\@iffileonpath#1{%
7189
\long\def\@iffileonpath#1{%
7178
  \let\reserved@a\@secondoftwo
7190
  \let\reserved@a\@secondoftwo
7179
  \expandafter\@tfor\expandafter\reserved@b\expandafter
7191
  \expandafter\@tfor\expandafter\reserved@b\expandafter
7180
-- tex/latex/base/latexrelease.sty
Lines 7758-7765 of this package available from CTAN} Link Here
7758
  \reserved@a}
7758
  \reserved@a}
7759
7759
7760
\EndIncludeInRelease
7760
\EndIncludeInRelease
7761
\IncludeInRelease{2023/06/01}%
7762
                 {\IfFileExists@}{IfFileExists}
7763
\long\def \IfFileExists@#1#2#3{%
7764
  \edef\@filef@und{\IfFileExists@@{#1}}%
7765
  \ifx\@filef@und\@empty
7766
    \if\relax\detokenize{#1}\relax
7767
      \let\reserved@a\@firstoftwo
7768
      \def\@filef@und{".tex" }%
7769
    \else
7770
      \let\reserved@a\@secondoftwo
7771
    \fi
7772
  \else
7773
    \let\reserved@a\@firstoftwo
7774
    \edef\@filef@und{"\@filef@und" }%
7775
  \fi
7776
  \expandafter\def\expandafter\reserved@a
7777
    \expandafter{\reserved@a{#2}{#3}}%
7778
\reserved@a}
7779
\ExplSyntaxOn
7780
\cs_new:Npn \IfFileExists@@ #1
7781
  {
7782
    \tl_if_blank:nF {#1}
7783
      {
7784
        \tl_if_head_eq_charcode:oNTF { \use:n #1 } |
7785
          {#1}
7786
          { \file_full_name:n {#1} }
7787
      }
7788
  }
7789
\cs_generate_variant:Nn \tl_if_head_eq_charcode:nNTF { o }
7790
\ExplSyntaxOff
7791
\EndIncludeInRelease
7761
\IncludeInRelease{2021/06/01}%
7792
\IncludeInRelease{2021/06/01}%
7762
                 {\IfFileExists@}{manage unbalanced conditionals}
7793
                 {\IfFileExists@}{IfFileExists}
7794
7763
\long\def \IfFileExists@#1#2#3{%
7795
\long\def \IfFileExists@#1#2#3{%
7764
  \openin\@inputcheck"#1" %
7796
  \openin\@inputcheck"#1" %
7765
  \ifeof\@inputcheck
7797
  \ifeof\@inputcheck
Lines 7776-7784 of this package available from CTAN} Link Here
7776
  \expandafter\def\expandafter\reserved@a
7808
  \expandafter\def\expandafter\reserved@a
7777
    \expandafter{\reserved@a{#2}{#3}}%
7809
    \expandafter{\reserved@a{#2}{#3}}%
7778
\reserved@a}
7810
\reserved@a}
7811
\let\IfFileExists@@\@undefined
7779
\EndIncludeInRelease
7812
\EndIncludeInRelease
7813
7780
\IncludeInRelease{2019/10/01}%
7814
\IncludeInRelease{2019/10/01}%
7781
                 {\IfFileExists@}{manage unbalanced conditionals}
7815
                 {\IfFileExists@}{IfFileExists}
7782
7816
7783
\long\def \IfFileExists@#1#2#3{%
7817
\long\def \IfFileExists@#1#2#3{%
7784
  \openin\@inputcheck"#1" %
7818
  \openin\@inputcheck"#1" %
Lines 7796-7802 of this package available from CTAN} Link Here
7796
  \reserved@a}
7830
  \reserved@a}
7797
\EndIncludeInRelease
7831
\EndIncludeInRelease
7798
\IncludeInRelease{0000/00/00}%
7832
\IncludeInRelease{0000/00/00}%
7799
                 {\IfFileExists@}{manage unbalanced conditionals}
7833
                 {\IfFileExists@}{IfFileExists}
7800
7834
7801
\let\IfFileExists@\@undefined
7835
\let\IfFileExists@\@undefined
7802
7836

Return to bug 1219376