2

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}
Mensch
  • 65,388
Vahid
  • 475

0 Answers0