summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/mwe/mwe.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-05-15 23:31:52 +0000
committerKarl Berry <karl@freefriends.org>2012-05-15 23:31:52 +0000
commit7083389477705019f50a254b8b50665343e54c9e (patch)
tree9ffc25c5a6a1793d19189e36ed8ca6b8a9ba2d1a /Master/texmf-dist/tex/latex/mwe/mwe.sty
parent72358836133e467497a2df5e5c03a3b66ec1567d (diff)
mwe (15may12)
git-svn-id: svn://tug.org/texlive/trunk@26422 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/mwe/mwe.sty')
-rw-r--r--Master/texmf-dist/tex/latex/mwe/mwe.sty18
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}
}{}