TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Why does the image not appear?

I have a LaTeX file, which I compile with pdflatex and I have put some figure with the command


pdflatex did not report any error at compilation but if the file is absent then it reports an error in the log.

The strange thing is that the figure is not shown in the resulting .pdf file. Instead the path to the figure is shown. I have checked that the figure file is ok and that the problem persist if instead of .png I use .pdf.

share|improve this question

marked as duplicate by Joseph Wright Dec 6 '11 at 8:05

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Don't use the draft option. (Or use the final option for graphicx or the graphics itself). – Ulrike Fischer Dec 5 '11 at 16:37
Welcome to TeX.sx! A tip: If you indent lines by 4 spaces, they'll be marked as a code sample. Also, you can use backticks ` to mark your inline code as I did in my edit. You can also highlight the code and click the "code" button (with "{}" on it), or hit Ctrl + K. – Torbjørn T. Dec 5 '11 at 16:39
Any reason for using \resizebox instead of \includegraphics[width=6.5cm]{...}? – Torbjørn T. Dec 5 '11 at 16:41

Using the draft option for either \documentclass[draft]{...} or \usepackage[draft]{graphicx} will cause printing of a boxed filename (of appropriate size).

From the graphicx package documentation (p 8):

draft suppress all the ‘special’ features. In particular graphics files are not included (but they are still read for size info) just the filename is printed in a box of the correct size.

Removing it should display the image, or using the final option:


final The opposite of draft. Useful to over-ride a global draft option specified in the \documentclass command.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.