I am writing up some coursework using LaTeX, and I wanted to import a diagram, however when I did the image did not appear in the compiled pdf. The image has been exported as a eps file, and also as a pdf, both of which had the same result. (Although the PDF also required me to provide bounding box figures, as latex couldn't fetch them from the file). I am including the graphic like this:
\documentclass[10pt]{article}
\usepackage[dvips]{geometry,color,graphicx}
\geometry{a4paper}
\begin{document}
\begin{figure}[ht!]
\centering
\includegraphics[width=300pt]{figure.eps}
\caption{caption}
\label{label}
\end{figure}
\end{document}
figure.epsin the present working directory of theLaTeXfile you are compiling? – dustin Aug 27 '13 at 18:20pdflatexprint EPS figures? – Werner Aug 27 '13 at 18:23.logfile you get for the MWE? – Joseph Wright Aug 27 '13 at 18:57[dvips]and.epsthen your example should work with latex (using the eps version) or pdflatex (using the pdf version) If it doesn't work it is presumably a problem with the image, but as a test use\fbox{\includegraphics{figure}}so latex puts a visible box around the space where it thinks the image is, if that box is wrong, suspect the boundingbox in the eps file. – David Carlisle Aug 27 '13 at 18:59[dvips]made it work you are presumably using pdflatex rather than latex? – David Carlisle Aug 27 '13 at 19:08