I am sorry if I missed anywhere the obvious answer to my problem, but after searching several hours for a solution I am a bit lost…
I am using Texniccenter and MikTex under Windows Vista to create a pdf document with Latex.
Most of my images are in PS format and hence I use the LaTex=>PS=>PDF profile to create my document. If I however try to include a pdf image instead of a ps the document creation is interupted and no final pdf output is created.
My code looks like this:
\usepackage{graphicx}
\usepackage{pdfpages}
\begin{figure}[h!]
\centering
\includegraphics[scale=0.5]{image.pdf}
\caption[]{}
\label{}
\end{figure}
Is there anything obvious that I am missing here ?
Best Answer
When compiling with
pdflatex
(via theLaTeX => PDF
option) and includinggraphicx
, this automatically loads relevantepstopdf
details. As such, (E)PS images should be converted on-the-fly to PDF equivalents. You should noticefile.eps
andfile-eps-converted-to.pdf
in your working folder.So, if you're including both PDF and (E)PS images, use
pdflatex
.From the
epstopdf
README:You may have to include the
--shell-escape
flag, although it doesn't seem to be required on my system.