~ubuntu-branches/ubuntu/raring/texlive-extra/raring

« back to all changes in this revision

Viewing changes to texmf-dist/tex/latex/mwe/mwe.sty

  • Committer: Package Import Robot
  • Author(s): Norbert Preining
  • Date: 2012-05-16 08:22:07 UTC
  • mfrom: (1.1.12) (3.1.20 sid)
  • Revision ID: package-import@ubuntu.com-20120516082207-41ox35jj1qsu46a7
Tags: 2012.20120516-1
* new upstream snapshot based on TL2012 tlpretest
* switch to xz compression for orig and deb (Closes: #672428)

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
%% and the derived filebase mwe.sty and example-*.{pdf,eps,png,eps}.
18
18
%%
19
19
\ProvidesPackage{mwe}[%
20
 
    2012/05/08
21
 
    v0.2
 
20
    2012/05/15
 
21
    v0.3
22
22
    Package to support minimal working examples (MWE)]
23
23
\RequirePackage{graphicx}
 
24
\expandafter\ifx\csname Ginput@path\endcsname\relax
 
25
    \graphicspath{{example-}}
 
26
\fi
 
27
\begingroup
 
28
\def\@tempa#1,.pdf,#2\@nnil{%
 
29
    \ifx\@nnil#2\@nnil\else
 
30
        \def\@tempa##1\relax##2\@nnil{%
 
31
            \gdef\Gin@extensions{.pdf,#1,##1}%
 
32
        }%
 
33
        \@tempa#2\@nnil
 
34
    \fi
 
35
}
 
36
\expandafter\@tempa\Gin@extensions\relax,.pdf,\@nnil
 
37
\endgroup
24
38
\IfFileExists{lipsum.sty}{%
25
39
    \RequirePackage{lipsum}
26
40
}{}