diff options
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/graphics/graphics.cfg')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/graphics/graphics.cfg | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/xelatex/graphics/graphics.cfg b/Master/texmf-dist/tex/xelatex/graphics/graphics.cfg new file mode 100644 index 00000000000..d9fe21767e6 --- /dev/null +++ b/Master/texmf-dist/tex/xelatex/graphics/graphics.cfg @@ -0,0 +1,68 @@ +\ProvidesFile{graphics.cfg}% + [2005/10/12 v1.3b graphics configuration of teTeX/TeXLive, extended for XeTeX] + +% 2005/10/12 moved this here to avoid shipping modified graphics.sty +\DeclareOption{xetex}{\def\Gin@driver{xetex.def}} + +% Select an appropriate default driver +\begingroup + \chardef\x=0\relax + % check pdfTeX + \@ifundefined{pdfoutput}{}{% + \ifcase\pdfoutput + \else + \chardef\x=1\relax + \fi + }% + % check VTeX + \@ifundefined{OpMode}{}{% + \chardef\x=2\relax + }% + % check XeTeX + \@ifundefined{XeTeXversion}{}{% + \chardef\x=3\relax + }% +\expandafter\endgroup +\ifcase\x + % default case + \def\Gin@driver{dvips.def}% + \ExecuteOptions{dvips}% +\or + % pdfTeX is running in pdf mode + \def\Gin@driver{pdftex.def}% + \ExecuteOptions{pdftex}% +\or + % VTeX is running + \def\Gin@driver{vtex.def}% + \ExecuteOptions{vtex}% +\else + % XeTeX is running + \def\Gin@driver{xetex.def}% + \ExecuteOptions{xetex}% +\fi + +% Fix for dvips and xdvi versions that can uncompress +% graphic files without an explicite call of gunzip. +% (The fix is not applied for miniltx.tex, because +% \AtEndOfPackage is not available in plainTeX.) +\begingroup\expandafter\expandafter\expandafter\endgroup +\expandafter\ifx\csname AtEndOfPackage\endcsname\relax +\else + \AtEndOfPackage{% + \begingroup + \@ifundefined{DeclareGraphicsRule}{% + \endgroup + }{% + \def\x{dvips.def}% + \expandafter\endgroup + \ifx\x\Gin@driver + \DeclareGraphicsRule{.pz}{eps}{.bb}{}% + \DeclareGraphicsRule{.eps.Z}{eps}{.eps.bb}{}% + \DeclareGraphicsRule{.ps.Z}{eps}{.ps.bb}{}% + \DeclareGraphicsRule{.ps.gz}{eps}{.ps.bb}{}% + \DeclareGraphicsRule{.eps.gz}{eps}{.eps.bb}{}% + \fi + }% + }% +\fi +\endinput |