Graphics, Figures & TablesImage not found warning on excisting image

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
yotama9
Posts: 61
Joined: Thu Sep 24, 2009 2:59 pm

Image not found warning on excisting image

Post by yotama9 »

Hi Guys.

I'm trying to add a figure to my latex document and I get the following warning:

Code: Select all

<images/APMS flu and UV in water.png, id=118, 769.6755pt x 561.5379pt>
File: images/APMS flu and UV in water.png Graphic file (type png)
<use images/APMS flu and UV in water.png>
:?:

The correct figure appear but with the filename above it (which is annoying to say the least).

Why is it so? I'm using texmaker and exceuting pdflatex if it's matter

Recommended reading 2024:

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

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

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Image not found warning on excisting image

Post by gmedina »

Hi,

avoid blank spaces both in the path and in the name of your images. If you really need to use spaces, the grffile package could be useful.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
yotama9
Posts: 61
Joined: Thu Sep 24, 2009 2:59 pm

Re: Image not found warning on excisting image

Post by yotama9 »

no problem I only want to know why some of the file names are ok to have spaces and some not.
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Image not found warning on excisting image

Post by gmedina »

Hi,
yotama9 wrote:no problem I only want to know why some of the file names are ok to have spaces and some not.
The documentation for grffile contains the answer:
grffile documentation wrote: In general it is not possible to use space inside file names, because TEX considers
the space character as termination in its syntax for commands that expect a file
name.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
yotama9
Posts: 61
Joined: Thu Sep 24, 2009 2:59 pm

Re: Image not found warning on excisting image

Post by yotama9 »

OK. thanks.
Post Reply