# Remove the path that accompannies a EPS file at TeX [duplicate]

\begin{figure}
\centering
\includegraphics[width=3.0in]{C:/Users/Augusto/Documents/TEX FILES/venn3.eps}
\end{figure}


I want to remove that "FILES/venn.eps" path that accompannies a EPS file at TeX that uses \includegraphics, is there an easy fix?

## marked as duplicate by Heiko Oberdiek, Stefan Pinnow, TeXnician, Schweinebacke, CarLaTeXNov 20 '17 at 6:53

• This is a different question. Because a new user will not know that the space is what is causing the trouble. – Augusto Camargo Nov 20 '17 at 12:08

This is caused by the space in the file path:

C:/Users/Augusto/Documents/TEX FILES/venn3.eps


Solutions:

a) Rename the directory TEX FILES to a name without space, e.g. TeXFiles.

b) If package grffile is loaded, it adds support for spaces in file paths for graphics files for many TeX compilers, but not all drivers.

c) With some TeX compilers quotes can be used to quote the space:

"C:/Users/Augusto/Documents/TEX FILES/venn3.eps"
`
• Thanks! It fixed. Also I would add that if your file has an underline character (_), it will also not compile. E.g. I had a file called football_logo.eps, and it took me some time to find out that the problem was simply the path name :/ – Augusto Camargo Nov 20 '17 at 12:05
• @AugustoCamargo Usually, the underscore is not a problem in image file names (unless the file name is printed as simple text somewhere). – Heiko Oberdiek Nov 20 '17 at 18:36