1

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

\resizebox{6.5cm}{!}{\includegraphics{DrifterPicture/Flux_Total.png}}

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.

1 Answers1

4

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:

\usepackage[final]{graphicx}

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

Werner
  • 603,163