diff options
author | Karl Berry <karl@freefriends.org> | 2009-07-04 00:40:30 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-07-04 00:40:30 +0000 |
commit | b3e7b39841c18629ec910132cf70640e89f62148 (patch) | |
tree | 54c26287ce2c0cc18af3f7a1836ecaba16359962 /Master/texmf/tex | |
parent | f6dc18658ba063341f5bb039c52e0f67a292b484 (diff) |
<pdftex in pdf mode>: load epstopdf
(\AtEndOfPackage), thus converting .eps to .pdf by
default (since we also have a restricted \write18
enabled by default, precisely so we could enable this).
This can be wrong!
If the .pdf is the source, rather than the .eps, users should put
\newcommand{\DoNotLoadEpstopdf}{}
before even the \documentclass line of the
document, in case the class loads graphics packages.
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).
The TeX code to do this was written by Heiko
Oberdiek and posted to the latex-l list on 4 Mar
2009 11:42:57 (http://article.gmane.org/gmane.comp.tex.latex.latex3/1475).
git-svn-id: svn://tug.org/texlive/trunk@14091 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf/tex')
-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}% |