This question already has an answer here:

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

remove /files/venn3.eps

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, CarLaTeX Nov 20 '17 at 6:53

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 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


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"

See also: How to include graphics with spaces in their path?

  • 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

Not the answer you're looking for? Browse other questions tagged or ask your own question.