Graphics, Figures & TablesFolder Name appears with Figures

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Bonnie_-
Posts: 3
Joined: Mon Feb 18, 2013 6:18 pm

Folder Name appears with Figures

Post by Bonnie_- »

Hi,

I have a small (but bulky!) problem with LaTeX.

When I insert a figure, there is not only the figure which appears in the PDF output. Indeed, below or next to the figure in the PDF, it says the folder name, image, ... i.e. : "download \ image.jpg". Now, I want only the figure (and its title) in the PDF.
Here's what I wrote:

Code: Select all

\centering
\begin{figure}[hbtp]
\caption{titre}
\includegraphics[scale=0.5]{Downloads/dossier (3)/dossier/image.jpg}
\end{figure}
How to make the "download \ image.jpg" does not appear in the PDF, please?

Thanks in advance !
Last edited by Bonnie_- on Mon Feb 18, 2013 6:48 pm, edited 1 time in total.

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Folder Name appears with Figures

Post by localghost »

Simply avoid special characters (blank spaces, underscores, …) in the path and the name of the image file. For extended process of graphics you may take a look at the grffile package from the oberdiek bundle. Detailed solutions can be found by a Forum Search (which should be done first).


Best regards and welcome to the board
Thorsten
Bonnie_-
Posts: 3
Joined: Mon Feb 18, 2013 6:18 pm

Folder Name appears with Figures

Post by Bonnie_- »

Thank you very much !

But with the example :

Code: Select all

\centering
\begin{figure}[hbtp]
\caption{Maxima}
\includegraphics[scale=0.8]{Downloads/mathmodel (3)/mathmodel/Maxima.jpg} 
\end{figure}
it doesn't work ... There is no special characters in the name of image file but the "Downloads/mathmodel (3)/mathmodel/Maxima.jpg" appears next to the figure in the PDF.

Do you know how to disappear the "Downloads/mathmodel (3)/mathmodel/Maxima.jpg" in the PDF ?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Folder Name appears with Figures

Post by localghost »

Bonnie_- wrote:[…] There is no special characters in the name of image file but the "Downloads/mathmodel (3)/mathmodel/Maxima.jpg" appears next to the figure in the PDF. […]
Of course there is. You have a blank space in the path. You should read more carefully what others write.
Bonnie_-
Posts: 3
Joined: Mon Feb 18, 2013 6:18 pm

Re: Folder Name appears with Figures

Post by Bonnie_- »

Thank you :) (and sorry to repeat myself but I was not sure ...).
Post Reply