Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm having a bit of trouble trying to include .eps files in a LaTeX document compiled with pdfLaTeX. I've been told that I should use the epstopdf package to convert .eps files to .pdf on the fly.

This is my LaTeX code:

\documentclass[12pt]{article}
\usepackage[pdftex]{graphicx}
\usepackage{epstopdf}
\begin{document}
\includegraphics{thing.eps}
\end{document}

But when I try to compile it with pdflatex test.tex I get this error:

Package epstopdf Warning: Shell escape feature is not enabled.

(/usr/share/texmf-texlive/tex/latex/latexconfig/epstopdf-sys.cfg))) (./test.aux ) (/usr/share/texmf/tex/context/base/supp-pdf.mkii [Loading MPS to PDF converter (version 2006.09.02).] )

! Package pdftex.def Error: File `thing-eps-converted-to.pdf' not found.

See the pdftex.def package documentation for explanation. Type  H   for immediate help.  ...

                                                   l.7 \includegraphics{thing.eps}
                                ?

I'm not sure what to do, I've also tried putting \epstopdfsetup and \epstopdfsetup{} after \usepackage{espstopdf} but that doesn't help.

share|improve this question
5  
compile with pdflatex --shell-escape test.tex. Which tex distribution do you use? –  Marco Daniel Sep 7 '11 at 15:30
1  
Thanks, that fixed it. Post that as an answer and I'll mark it accepted –  Eddy Sep 7 '11 at 16:45
    
Btw, I use texlive –  Eddy Sep 7 '11 at 16:45
add comment

1 Answer

up vote 12 down vote accepted

To compile the example without errors use:

pdflatex --shell-escape test.tex

With the beginning of TeXLive 2010 pdflatex automatically converts eps file to pdf. Karl Berry wrote a TUGboat article about this new feature. You should update your distribution.

TEX Live 2010 news TUGboat, Volume 31 (2010), No. 2

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.