I'm aware there's a lot of questions regarding using eps files as graphics in pdfLaTeX, and have tried many 'fixes'/'get arounds' based on answers I've read on this forum (amongst others), but still can't get it to work.
I'm using Kile 2.1.0 on Ubuntu 12.04 LTS, having recently come from using TeXShop on a Mac.
I've read that in order to get Kile to compile my .tex file using PdfLaTeX I need to insert:
\usepackage{epstopdf}
in the preamble, which I have, but it still doesn't work. For example in a test .tex file I have included \usepackage{epstopdf}
in the preamble, and then in the body written:
\begin{figure}[h!]
\begin{center}
\includegraphics[scale = 0.7]{pic1.eps}
\caption{\textit{A graphic.}}
\label{Label1}
\end{center}
\end{figure}
Upon running PDFLaTeX in Kile I get:
! Package pdftex.def Error: File `pic1-eps-converted-to.pdf' not found.
Which would suggest to me that epstopdf is doing SOMETHING, maybe putting the converted eps file somewhere silly?
Thanks in advance,
Olie
Best Answer
without the option
--shell-escape
it can't run external programs. Add it to Kile at `Settings->Configure Kile-> Build:then the following should work:
epstopdf
is loaded by default:You can test, if
epstopdf.sty
is installed. Run in a terminal:and it should report the location of the file:
If it outputs nothing then you have to install that package.