Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I tried to plot a data file with spaces is the file path.

\draw[line width=0.4mm] plot[] file{/home/schlumpf/test folder/daten.txt};

My problem is the space in the file path. How can I plot this file without copying the file to another folder?

share|improve this question
add comment

1 Answer

All you have to do is place the filename within double quotes. The command should now read

\draw[line width=0.4mm] plot[] file{"/home/schlumpf/test folder/daten.txt"};

This works any time (or almost) you use a filename in a TeX command. It is the same thing as when you are working in a command line environment (Unix shell commands for example).

To avoid this type of problem, many people will refrain from using spaces or exotic symbols within file or folder names.

share|improve this answer
    
I tried that, but it didn't work. If I write the path in quotes, I get this warning and no plot: Plot data file `"/home/schlumpf/test folder/daten.txt"' not found. on input line 36. –  Schlumpf Mar 25 '12 at 11:19
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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