diff options
Diffstat (limited to 'Master/texmf')
-rw-r--r-- | Master/texmf/tex/latex/config/graphics.cfg | 42 |
1 files changed, 41 insertions, 1 deletions
diff --git a/Master/texmf/tex/latex/config/graphics.cfg b/Master/texmf/tex/latex/config/graphics.cfg index 0e6068ef982..1af92e2c4e2 100644 --- a/Master/texmf/tex/latex/config/graphics.cfg +++ b/Master/texmf/tex/latex/config/graphics.cfg @@ -1,5 +1,7 @@ +% Public domain. +% Written by Thomas Esser, Heiko Oberdiek, Sebastian Rahtz, and others. \ProvidesFile{graphics.cfg}% - [2007/01/18 v1.5 graphics configuration of teTeX/TeXLive] + [2009/07/04 v1.7 graphics configuration of TeX Live]% % Select an appropriate default driver \begingroup @@ -28,6 +30,44 @@ % pdfTeX is running in pdf mode \def\Gin@driver{pdftex.def}% \ExecuteOptions{pdftex}% + % load package epstopdf if + % a) LaTeX is running (plain TeX users are on their own), + % b) and shell escape (\write18) is enabled (possibly restricted), + % c) and \DoNotLoadEpstopdf either does not exist or is not \relax. + % + % In other words, by default .eps files will be automatically + % converted to .pdf files when outputting pdf. This can be wrong! + % If the .pdf is the source, rather than the .eps, you should put + % \newcommand{\DoNotLoadEpstopdf}{} + % before even the \documentclass line of your document. + % + % More information about the epstopdf run will be in the .log file; + % see http://ctan.org/pkg/epstopdf-pkg for more info about the + % epstopdf package itself. In turn, it calls the epstopdf script + % (http://ctan.org/pkg/epstopdf). + % + % For the discussion and background on this, see the thread on latex-l + % including http://article.gmane.org/gmane.comp.tex.latex.latex3/1475. + % + \begingroup\expandafter\expandafter\expandafter\endgroup + \expandafter\ifx\csname DoNotLoadEpstopdf\endcsname\relax + \begingroup\expandafter\expandafter\expandafter\endgroup + \expandafter\ifx\csname AtEndOfPackage\endcsname\relax + \else + \AtEndOfPackage{% + \RequirePackage{pdftexcmds}[2007/11/11]% + \expandafter\ifx\csname pdf@shellescape\endcsname\relax + \else + \ifnum\pdf@shellescape>0 % + \RequirePackage{epstopdf}[2007/10/02]% + \@ifpackagelater{epstopdf}{2007/10/02}{% + \epstopdfsetup{update,prepend,verbose}% + }{}% + \fi + \fi + }% + \fi + \fi \or % VTeX is running \def\Gin@driver{vtex.def}% |