Possible Duplicate:
How to avoid showing the filename when using graphicx?

So I'm using the \includegraphics command to put a PDF image of a table into my LaTeX file here, but this pesky "filename".pdf caption comes up with the image and I can't figure out how to get rid of it. Here's my code:


\caption{Short GRB sample data.}
\includegraphics[trim = 10mm 30mm 8mm 30mm, clip,,width=10in]{Short GRB data table3.pdf}

(References included on next page).


I would post an image if I could, but apparently I can't as a new poster. Help is much appreciated, thanks.

marked as duplicate by egreg, Werner, Thorsten, Jake, lockstep May 16 '12 at 5:50

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.

  • Welcome to TeX.SX! Please, have a look at the linked question; this should solve your problem, which basically is in the spaces in the file name. – egreg May 15 '12 at 22:50

I think you wish to say, in your output file, the image file name appears at the top of it. Isn't it?

Then, I was in the same problem... It's very easy to solve. Use

\includegraphics[trim = 10mm 30mm 8mm 30mm, clip,,

In your image file name, do not use any space. If you need, use "_". If you have any space at the name of the image file, it will appear at the top of your image on output. So rename your image file and try it. Hope it will solve your problem.

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