Am Tue, 22 May 2012 07:35:06 -0700 (PDT) schrieb J.Jack.J.:
>>>>> I have inserted a figure and, above it, in the compiled output, the
>>>>> address of the file appears How do I get rid of it?
>>> \includegraphics{C:/Documents and Settings/User/Desktop/Figures/
>>> Fig1.pdf}
>> Don't use absolute pathes, especially when they contain spaces. Put
>> the graphic in your document folder or a subfolder (naturally also
>> without spaces or other dubious symbols in their name).
> I don't understand. Documents and Settings *does* contain spaces and
> that won't be changed when it's in my document folder, which is on my
> Desktop.
It doesn't matter if the folder itself has a space, but it matters
if you use a path with spaces in the argument of \includegraphics.
The following example is a document which resides together with
test-pics.pdf in the folder "I:/Z-Test/test with space". The first
\includegraphics works fine, the second prints parts of the pathes
in the document:
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\centering
\includegraphics[width=4cm]{Test-pics.pdf}
\includegraphics[width=4cm]{I:/Z-Test/test with
space/Test-pics.pdf}
\caption{text}
\label{fig:Fig1}
\end{figure}
\end{document}
You can try to quote the name (but then you must remove the
extension):
\includegraphics[width=4cm]{"I:/Z-Test/test with space/Test-pics"}
But my advice is: don't use pathes with spaces in your tex file.
--
Ulrike Fischer