0

I imported a picture and LaTeX created pdf well. The problem is the path (like C:/users/file_name/....jpg) is above the picture in the pdf file. How can I exclude that?

Mensch
  • 65,388
  • Is the picture path in the pdf which you include? If so this has been answered, orther wise you probably have the path written twice. – nickpapior Apr 25 '13 at 14:23
  • 2
    Can you show us the code you used to import the picture? Also you could show us a screen shot how the picture looks in the pdf. Just upload your screenshot and delete the leading !. A user with more rep can activate the image for you. – Mensch Apr 25 '13 at 14:29
  • 1
    It's not clear either what is happening (give an MWE, and also the picture Kurt asked for), or what you want instead. Do you want the path to be shown, but below rather than above the graphic? – Charles Stewart Apr 25 '13 at 15:18

1 Answers1

1

Usually this is caused by spaces in the file name or by other special characters that usually need to be escaped in LaTeX. An probably easy fix is to change your filenames or to load the \usepackage[space]{grffile} package as explained here.

Note that if your files are in the project folder with you main tex file or in a sub folder of you project folder it is not necessary to give the whole path including drive letter etc..

Project folder

L->Main.tex

L-> picture.png

\includegraphics{picture}

or

Project folder

L->Main.tex

L-> Figures/picture.png

\includegraphics{Figures/picture}

will work.

Martin H
  • 18,164