[texhax] File Not Found: Importing Graphics

Tom Schneider toms at ncifcrf.gov
Tue Sep 23 13:05:17 CEST 2008


Sam:

> \includegraphics[scale=1]{Graphs PNG/Color Contour SLI.png}

As someone else pointed out your problem may be the spaces.  Spaces
are used for parsing in many unix systems unless you put quote marks
around the name.  I don't know if that can be done in LaTeX.  I wasn't
able to replicate your example (I got a different error message), but
I avoid the problem generally by replacing spaces in file names with
underscores.  I have a script for that (written in - ugh! - tcsh)
called usfn.  I have released it at:

ftp://ftp.ncifcrf.gov/pub/delila/usfn

It goes through all files in a directory and changes spaces to
underscores.  It also changes some other characters that cause parsing
problems, see the documentation.

Tom

  Dr. Thomas D. Schneider
  National Institutes of Health
  National Cancer Institute
  Center for Cancer Research Nanobiology Program
  Molecular Information Theory Group
  Frederick, Maryland  21702-1201
  toms at ncifcrf.gov
  permanent email: toms at alum.mit.edu
  http://www.ccrnp.ncifcrf.gov/~toms/


More information about the texhax mailing list