diff options
author | Karl Berry <karl@freefriends.org> | 2010-05-14 18:42:34 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-05-14 18:42:34 +0000 |
commit | d41c5047c0b6f558d941c78c9040f40c301b2a1c (patch) | |
tree | 063d1f2f9469e27bde1ed62e03708d5c1a101584 /Master/texmf-dist | |
parent | 68718172c3dd919c579d25e9534ef18f67c62692 (diff) |
enable epstopdf if we have \write18 and not
pst-pdf, etc.
git-svn-id: svn://tug.org/texlive/trunk@18264 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/tex/latex/latexconfig/graphics.cfg | 47 |
1 files changed, 24 insertions, 23 deletions
diff --git a/Master/texmf-dist/tex/latex/latexconfig/graphics.cfg b/Master/texmf-dist/tex/latex/latexconfig/graphics.cfg index b8323b9a30e..e8b6062f5b7 100644 --- a/Master/texmf-dist/tex/latex/latexconfig/graphics.cfg +++ b/Master/texmf-dist/tex/latex/latexconfig/graphics.cfg @@ -1,7 +1,7 @@ % Public domain. % Written by Thomas Esser, Heiko Oberdiek, Sebastian Rahtz, and others. \ProvidesFile{graphics.cfg}% - [2009/08/28 v1.8 graphics configuration of TeX Live]% + [2010/04/23 v1.9 graphics configuration of TeX Live]% % Select an appropriate default driver \begingroup @@ -30,18 +30,15 @@ % pdfTeX is running in pdf mode \def\Gin@driver{pdftex.def}% \ExecuteOptions{pdftex}% - % The below is inoperative for the TL'09 DVD; we could not secure all - % the necessary components before the release. - % % 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. + % c) and \DoNotLoadEpstopdf either does not exist or is not \relax, + % d) and pst-pdf is not loaded. % % In other words, by default .eps files will be automatically % converted to .pdf files when outputting pdf. This can be wrong! - % If you created the .pdf as the source of a graphic, and derived a - % .eps from it, you should put + % If the .pdf is the source, rather than the .eps, you should put % \newcommand{\DoNotLoadEpstopdf}{} % before even the \documentclass line of your document. % @@ -53,22 +50,26 @@ % For the first discussion and background on this, see the thread on latex-l: % http://thread.gmane.org/gmane.comp.tex.latex.latex3/1465 % -% \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-base}[2009/07/12]% -% \fi -% \fi -% }% -% \fi -% \fi + \begingroup\expandafter\expandafter\expandafter\endgroup + \expandafter\ifx\csname DoNotLoadEpstopdf\endcsname\relax + \begingroup\expandafter\expandafter\expandafter\endgroup + \expandafter\ifx\csname AtEndOfPackage\endcsname\relax + \else + \AtEndOfPackage{% + \AtBeginDocument{% + \@ifpackageloaded{pst-pdf}{}{% + \RequirePackage{pdftexcmds}[2007/11/11]% + \expandafter\ifx\csname pdf@shellescape\endcsname\relax + \else + \ifnum\pdf@shellescape>0 % + \RequirePackage{epstopdf-base}[2009/07/12]% + \fi + \fi + }% + }% + }% + \fi + \fi \or % VTeX is running \def\Gin@driver{vtex.def}% |