[OS X TeX] question: file path displayed in LaTeX figures

Martin Wilhelm Leidig listwatch at onlinehome.de
Mon Apr 2 22:31:13 EDT 2007

Am 2007-04-03 um 03.16 schrieb Thad Dunning:
> In addition, the figures are not fully flush to the left (nor are  
> they centered).

Are you really getting figures, not just empty boxes?

> Instead, it looks as though the figures are scrunched up to the  
> right of the page. Part of the problem may be that the path name  
> below and to the left of the figure or table seems to prevent the  
> figure from displaying properly.

The file name shouldn't appear at all.  I think you aren't getting  
the figure but just an error.  Pleae read the fine documentation of  
the graphics package, called graphguide (or grafguide -- can't  
remember exactly at the moment).

> \resizebox{\textwidth}{!}{\includegraphics{/Users/td244/Desktop/ 
> Folders/Research/Crude Democracy/Book/Chapter One figures/Coups.pdf}}

Why that complicated?  Just say \includegraphics[with=\textwidth]{...}.

> All of these options leave the whole path of the file displayed,  
> e.g., "/Users/td244/Desktop/Folders/Research/Crude Democracy/Book/ 
> Chapter Four empirics/Tables and Figures/Lat Am.pdf"

Looks, as if \includegraphics can't find anything.  Blanks are always  
a bit problematic inside file and path names.  Better replace them by  
some appropriate character like _ (hasn't to be quoted inside  
\includegraphics) or -.  Also, better give no file extension at all  
-- LaTeX knows itself which format it needs and sets that  
appropriately.  Thirdly, use \graphicspath.  Just say in the preamble  
something like
and subsequently, \includegraphics{fig} will look for path/one/fig,  
path/two/fig and path/three/fig before throwing an error.  The list  
of can get quite long, but uses a lot of internal TeX memory.

... mit freundlichem Gruß aus Ladenburg:

Martin Wilhelm Leidig, Nadlerstr.6, 68526 Ladenburg, Deutschland
SatzTeXnik und TeXnische Beratung -- Dante e.V. #1580

------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/

More information about the MacOSX-TeX mailing list