I am trying to insert some ready image-pdf files to my LaTeX code.
(I use pdfLaTeX and my distributor is TeXnicCenter.)
But I will get this error:
Package pdftex.def Error: File 'fig1.pdf' not found.
I already tried putting fig1 not fig1.pdf, having both .pdf and .eps files in the given directory, but nothing changed.
My code is:
\documentclass[a4paper,10pt, reqno]{amsbook}
\usepackage{graphicx}
\graphicspath{F:/(some path here...)/pdfs/}
\DeclareGraphicsExtensions{.pdf,.eps}
\begin{document}
\begin{figure}[!htb]
\centering
\includegraphics[width=0.7\textwidth]{fig1.pdf}
\caption{Digraph.}
\label{fig:digraph}
\end{figure}
\end{document}
texfile just to see if the problem is with the path. – Sigur Nov 16 '12 at 18:21{}so you need an additional{}but it's simpler and your document is more portable if you do not use graphicspath at all and just put the files in the current directory – David Carlisle Nov 16 '12 at 19:15