I'm trying to put a .pdf
graphic in my LaTeX
file. This is usually no problem for me. I use pdfLaTeX
in TeXworks
. The only difference this time seems to be that I'm using the style files from the journal Statistical Science (http://www.e-publications.org/ims/support/sts-instructions.html).
I've tried several solutions. This one and converting the pdf
to .eps
or .ps
all make the error go away, but then there is just a big blank space where the image is supposed to be. Any ideas?
Edit: Here is the preamble:
\documentclass[dvips,sts]{imsart}
\usepackage{graphicx}
\usepackage{float}
\begin{document}
\begin{figure}[h!]
\centering
\includegraphics[width = \textwidth]{simLinkError.pdf}
\caption{Blah}
\label{fig:sim1}
\end{figure}
\end{document}
Best Answer
Options to
\documentclass
are examined by all packages. So you're loadinggraphicx
with thedvips
option, which allows only EPS graphics to be imported and is nonsense when the engine ispdflatex
. So remove it.In general
dvips
,pdftex
orxetex
should not be used even with packages that know them, such asgraphicx
hyperref
geometry
that can deduce the needed driver by themselves.