20

I'm using IEEEtran to format an article, and I wanted to include an image. I included the graphicx and hyperref packages, and used the following code, like normal, to include an image.

\begin{figure}[!t]
\centering
\includegraphics[width=3in]{fetch}
\caption{Pipeline: Fetch Instruction}
\label{fig:fetch}
\end{figure}

What appears, however, is this:

Example

Fetch.png is a file in the directory, and if I remove it, pdflatex errors instead of producing an output. I'm using MiKTeX 2.9 on Windows 7. Any ideas?

Martin Scharrer
  • 262,582

2 Answers2

31

You have the draft option enabled, most likely as class option, which makes graphicx to display images like this. Load graphicx with the final option to overwrite this. Note that options of the class are global and are passed to all packages, but can still be overwritten by explicit package options.

Martin Scharrer
  • 262,582
0

It happened the same to me. In my case I was defining the folder to get the pictures on top of the document through the command: \graphicspath{ {./images/} }. But when I was asking the picture to be put in the document ,I was again specifying the folder, so I removed the folder and it worked.