diff options
author | Karl Berry <karl@freefriends.org> | 2019-11-06 22:12:38 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-11-06 22:12:38 +0000 |
commit | 7c55167ecf36309f45793303eea23651cb983f12 (patch) | |
tree | 11c014344f975231c0cb0ed300b892849a481db8 /Master/texmf-dist/tex/latex/base/latexrelease.sty | |
parent | 7b810bfb3e61d6cd1564c490490d6d005dd64813 (diff) |
l2e (6nov19)
git-svn-id: svn://tug.org/texlive/trunk@52656 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/base/latexrelease.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/base/latexrelease.sty | 54 |
1 files changed, 44 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/base/latexrelease.sty b/Master/texmf-dist/tex/latex/base/latexrelease.sty index 541cad79dc6..0dcc571680a 100644 --- a/Master/texmf-dist/tex/latex/base/latexrelease.sty +++ b/Master/texmf-dist/tex/latex/base/latexrelease.sty @@ -419,6 +419,33 @@ of this package available from CTAN} } \EndIncludeInRelease \fi +\IncludeInRelease{2019/10/01}{\filename@simple} + {Final dot for extension}% +\def\filename@simple#1.#2\\{% + \ifx\\#2\\% + \let\filename@ext\relax + \edef\filename@base{#1}% + \else + \filename@dots{#1}#2\\% + \fi} +\def\filename@dots#1#2.#3\\{% + \ifx\\#3\\% + \def\filename@ext{#2}% + \edef\filename@base{#1}% + \else + \filename@dots{#1.#2}#3\\% + \fi} +\EndIncludeInRelease +\IncludeInRelease{0000/00/00}{\filename@simple} + {Final dot for extension}% + \def\filename@simple#1.#2\\{% + \ifx\\#2\\% + \let\filename@ext\relax + \else + \edef\filename@ext{\filename@dot#2\\}% + \fi + \edef\filename@base{#1}} +\EndIncludeInRelease %%% From File: ltdefns.dtx \IncludeInRelease{2019/10/01}{\MakeRobust}{\MakeRobust}% \def\MakeRobust#1{% @@ -1201,7 +1228,9 @@ of this package available from CTAN} \def\set@curr@file#1{% \begingroup \escapechar\m@ne - \xdef\@curr@file{\expandafter\string\csname\@firstofone#1\@empty\endcsname}% + \xdef\@curr@file{% + \expandafter\string + \csname\expandafter\unquote@name\expandafter{\@firstofone#1\@empty}\endcsname}% \endgroup } \def\quote@name#1{"\quote@@name#1\@gobble""} @@ -1209,10 +1238,9 @@ of this package available from CTAN} \def\unquote@name#1{\quote@@name#1\@gobble"} \DeclareRobustCommand\IfFileExists[1]{% \set@curr@file{#1}% - \edef\q@curr@file{\expandafter\quote@name\expandafter{\@curr@file}}% - \expandafter\IfFileExists@\expandafter{\q@curr@file}} + \expandafter\IfFileExists@\expandafter{\@curr@file}} \long\def \IfFileExists@#1#2#3{% - \openin\@inputcheck#1 % + \openin\@inputcheck"#1" % \ifeof\@inputcheck \ifx\input@path\@undefined \def\reserved@a{#3}% @@ -1221,7 +1249,7 @@ of this package available from CTAN} \fi \else \closein\@inputcheck - \edef\@filef@und{#1 }% + \edef\@filef@und{"#1" }% \def\reserved@a{#2}% \fi \reserved@a} @@ -4206,14 +4234,18 @@ of this package available from CTAN} {\protected@file@percent}{Mask line endings}% \protected\def\protected@file@percent{} -\begingroup -\catcode`\%=12 \catcode`\^^A=9 \long\gdef\add@percent@to@temptokena #1\protected@file@percent#2\add@percent@to@temptokena - {\ifx!#2!\@temptokena\expandafter{#1}\else - \@temptokena\expandafter{#1%^^A - }\fi} + {\ifx!#2!\expandafter\dont@add@percent@to@temptokena\else + \expandafter\do@add@percent@to@temptokena\fi{#1}} +\long\def\dont@add@percent@to@temptokena#1{% + \@temptokena\expandafter{#1}} +\begingroup +\catcode`\%=12 +\long\gdef\do@add@percent@to@temptokena#1{% + \@temptokena\expandafter{#1%^^A + }} \endgroup \long\def\@writefile#1#2{% \@ifundefined{tf@#1}\relax @@ -4229,6 +4261,8 @@ of this package available from CTAN} {\protected@file@percent}{Mask line endings}% \let\protected@file@percent\@undefined \let\add@percent@to@temptokena\@undefined +\let\do@add@percent@to@temptokena\@undefined +\let\dont@add@percent@to@temptokena\@undefined \long\def\@writefile#1#2{% \@ifundefined{tf@#1}\relax {\@temptokena{#2}% |