diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/mwe/mwe.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/mwe/mwe.sty | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/mwe/mwe.sty b/Master/texmf-dist/tex/latex/mwe/mwe.sty index 35157e4c1ac..306d887dace 100644 --- a/Master/texmf-dist/tex/latex/mwe/mwe.sty +++ b/Master/texmf-dist/tex/latex/mwe/mwe.sty @@ -17,10 +17,24 @@ %% and the derived filebase mwe.sty and example-*.{pdf,eps,png,eps}. %% \ProvidesPackage{mwe}[% - 2012/05/08 - v0.2 + 2012/05/15 + v0.3 Package to support minimal working examples (MWE)] \RequirePackage{graphicx} +\expandafter\ifx\csname Ginput@path\endcsname\relax + \graphicspath{{example-}} +\fi +\begingroup +\def\@tempa#1,.pdf,#2\@nnil{% + \ifx\@nnil#2\@nnil\else + \def\@tempa##1\relax##2\@nnil{% + \gdef\Gin@extensions{.pdf,#1,##1}% + }% + \@tempa#2\@nnil + \fi +} +\expandafter\@tempa\Gin@extensions\relax,.pdf,\@nnil +\endgroup \IfFileExists{lipsum.sty}{% \RequirePackage{lipsum} }{} |