Graphics, Figures & Tablesincludegraphics with PDF :: adding file name above fig?

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
karlg100
Posts: 2
Joined: Fri Apr 08, 2011 6:03 pm

includegraphics with PDF :: adding file name above fig?

Post by karlg100 »

I'm now using the \includegraphics call to import a page from a PDF file as a figure, and when using this with a PDF file (rather than a png, jpg, or other file format) the includegraphics automattically adds the name of the file above the image in the rendered version of the document (using pdflatex). How does one remove/prevent this?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Re: includegraphics with PDF :: adding file name above fig?

Post by Stefan Kottwitz »

Hi,

this could be caused by spaces in the file name or the path. Don't use spaces resp. blanks in file names, or quote by " ", or use the \space command or the grffile package.

Stefan
LaTeX.org admin
karlg100
Posts: 2
Joined: Fri Apr 08, 2011 6:03 pm

includegraphics with PDF :: adding file name above fig?

Post by karlg100 »

Stefan_K wrote:Hi,

this could be caused by spaces in the file name or the path. Don't use spaces resp. blanks in file names, or quote by " ", or use the \space command or the grffile package.

Stefan
Awesome! that was it! Thanks!!!!!
Post Reply