I have problems to insert an image into my .tex file. This is the code:
\begin{figure}
\includegraphics[width=1\textwidth]{Blockdiagram}
\caption{Diagram}
\label{figure:BlockDiagram}
\end{figure}
It says that it cannot find the file! The same with Blockdiagram.png
.
The figure is in the same folder. The main .tex
is outside this folder, and I tried copying the image there, but the problem persists.
If I type H for help I have:
I could not locate the file with any of these extensions: .eps, .ps....
It's a png! In the file I have both:
\usepackage{graphicx}
\usepackage{epsfig}
And I tried commenting epsfig.... but nothing happens. Same error.
Any ideas?
EDIT: I have several PNG files, is it possible to use PNG files? I am using LEd under WinXP.
You could use PDFLaTeX instead of LaTeX. PDFLaTeX can import PNG images. You cannot use EPS images in PDFLaTeX, though; you would have to use PDF as a vector image format. I would recommend to use ImageMagick to convert images.