diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/oberdiek/grffile.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/oberdiek/grffile.sty | 45 |
1 files changed, 39 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/oberdiek/grffile.sty b/Master/texmf-dist/tex/latex/oberdiek/grffile.sty index c08d08e5b70..2f8682a5ba9 100644 --- a/Master/texmf-dist/tex/latex/oberdiek/grffile.sty +++ b/Master/texmf-dist/tex/latex/oberdiek/grffile.sty @@ -9,9 +9,9 @@ %% This is a generated file. %% %% Project: grffile -%% Version: 2010/12/09 v1.13 +%% Version: 2012/04/05 v1.16 %% -%% Copyright (C) 2006-2010 by +%% Copyright (C) 2006-2012 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -35,7 +35,7 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{grffile}% - [2010/12/09 v1.13 Extended file name support for graphics (HO)]% + [2012/04/05 v1.16 Extended file name support for graphics (HO)]% \edef\grffile@RestoreCatcodes{% \catcode`\noexpand\=\the\catcode`\=\relax \catcode`\noexpand\:\the\catcode`\:\relax @@ -171,9 +171,8 @@ \fi \fi \fi - \toks@\expandafter{\grffile@filename}% \edef\x{\endgroup - \noexpand\grffile@Ginclude@graphics{\the\toks@}% + \noexpand\grffile@Ginclude@graphics{\grffile@filename}% }% \x } @@ -229,7 +228,7 @@ \grffile@XeTeX@IfFileExists{\reserved@b#1}{% \edef\grffile@file@found{\reserved@b#1}% \let\reserved@a\@firstoftwo - \@break@tfor + \iftrue\@break@tfor\fi }{}% }% \fi @@ -268,6 +267,40 @@ }% \fi \fi + \let\grffile@org@Gread@eps\Gread@eps + \def\grffile@temp#1\immediate\openin#2 #3\grffile@nil#4\grffile@NIL{% + \begingroup + \toks@{#2}% + \edef\grffile@temp{\the\toks@}% + \def\grffile@test{\@inputcheck####1}% + \ifx\grffile@temp\grffile@test + \expandafter\@firstoftwo + \else + \expandafter\@secondoftwo + \fi + {% + \toks@{% + #1% + \immediate\openin\@inputcheck"##1"\relax + #3% + }% + \expandafter\endgroup + \expandafter\def\expandafter\Gread@eps + \expandafter##\expandafter1\expandafter{% + \the\toks@ + }% + \PackageInfo{grffile}{% + \string\Gread@eps\space patched% + }% + }{% + \PackageWarning{grffile}{% + Unsupported \string\Gread@eps\space not patched% + }% + \endgroup + }% + }% + \expandafter\grffile@temp\Gread@eps{#1}\grffile@nil + \immediate\openin{} \grffile@nil\grffile@NIL \else \begingroup \let\on@line\@empty |