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.eps
in the present working directory of theLaTeX
file you are compiling?[dvips]
and.eps
then 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.