2 % Written by Thomas Esser, Heiko Oberdiek, Sebastian Rahtz, and others.
3 \ProvidesFile{graphics.cfg}%
4 [2010/04/23 v1.9 graphics configuration of TeX Live]%
6 % Select an appropriate default driver
10 \@ifundefined{pdfoutput}{}{%
17 \@ifundefined{OpMode}{}{%
21 \@ifundefined{XeTeXversion}{}{%
27 \def\Gin@driver{dvips.def}%
28 \ExecuteOptions{dvips}%
30 % pdfTeX is running in pdf mode
31 \def\Gin@driver{pdftex.def}%
32 \ExecuteOptions{pdftex}%
33 % Load package epstopdf if
34 % a) LaTeX is running (plain TeX users are on their own),
35 % b) and shell escape (\write18) is enabled (possibly restricted),
36 % c) and \DoNotLoadEpstopdf either does not exist or is not \relax,
37 % d) and neither pst-pdf nor pdftricks is loaded (by \begin{document}).
39 % In other words, by default .eps files will be automatically
40 % converted to .pdf files when outputting pdf. This can be wrong!
41 % If the .pdf is the source, rather than the .eps, you should put
42 % \newcommand{\DoNotLoadEpstopdf}{}
43 % before even the \documentclass line of your document.
45 % More information about the epstopdf run will be in the .log file;
46 % see http://ctan.org/pkg/epstopdf-pkg for more info about the
47 % epstopdf package itself. In turn, it calls the epstopdf script
48 % (http://ctan.org/pkg/epstopdf).
50 % For the first discussion and background on this, see the thread on latex-l:
51 % http://thread.gmane.org/gmane.comp.tex.latex.latex3/1465
53 \begingroup\expandafter\expandafter\expandafter\endgroup
54 \expandafter\ifx\csname DoNotLoadEpstopdf\endcsname\relax
55 \begingroup\expandafter\expandafter\expandafter\endgroup
56 \expandafter\ifx\csname AtEndOfPackage\endcsname\relax
60 \@ifpackageloaded{pst-pdf}{}{%
61 \@ifpackageloaded{pdftricks}{}{%
62 \RequirePackage{pdftexcmds}[2007/11/11]%
63 \expandafter\ifx\csname pdf@shellescape\endcsname\relax
65 \ifnum\pdf@shellescape>0 %
66 \RequirePackage{epstopdf-base}[2009/07/12]%
69 }% pdftricks not loaded
71 }% AtBeginDocument block
72 }% AtEndofPackage block
73 \fi % AtEndofPackage not defined
74 \fi % DoNotLoadEpstopdf not defined
77 \def\Gin@driver{vtex.def}%
78 \ExecuteOptions{vtex}%
81 \def\Gin@driver{xetex.def}%
82 \ExecuteOptions{xetex}%
85 % Fix for dvips and xdvi versions that can uncompress
86 % graphic files without an explicite call of gunzip.
87 % (The fix is not applied for miniltx.tex, because
88 % \AtEndOfPackage is not available in plainTeX.)
89 \begingroup\expandafter\expandafter\expandafter\endgroup
90 \expandafter\ifx\csname AtEndOfPackage\endcsname\relax
94 \@ifundefined{DeclareGraphicsRule}{%
100 \DeclareGraphicsRule{.pz}{eps}{.bb}{}%
101 \DeclareGraphicsRule{.eps.Z}{eps}{.eps.bb}{}%
102 \DeclareGraphicsRule{.ps.Z}{eps}{.ps.bb}{}%
103 \DeclareGraphicsRule{.ps.gz}{eps}{.ps.bb}{}%
104 \DeclareGraphicsRule{.eps.gz}{eps}{.eps.bb}{}%