actually it doesnt make too much sense that we have to link the files outside the main file directory,
our discussion is based on the high spirit of research.

NEW: TikZ book now 40% off at Amazon.com for a short time.
Code: Select all
\input{"foo bar.tex"}
Code: Select all
\begingroup\catcode`~=12\input{foobar~1.tex}\endgroup
Hi Tomek, I tested your code with TeX-Live 2007 and I can confirm almost all your results: The only difference comes in the last part:T3. wrote:So, actually only input of quoted file name works entirely properly. Anyway, it's a really bad idea to rely on this behaviour. And I'm not sure if the same holds for TeXLive. Perhaps someone else can test it.Code: Select all
\documentclass{minimal} \begin{document} Test input with white space: \input{"foo bar.tex"} %this works Test input with short name: %\input{foobar~1.tex} %this fails Test input with short name: \begingroup\catcode`~=12\input{foobar~1.tex}\endgroup %this works Test include with white space: \include{"foo bar.tex"} %this fails but the compilation proceeds Test include with short name: %\include{foobar~1.tex} %this fails Test input with short name: \begingroup\catcode`~=12\include{foobar~1.tex}\endgroup %this behaves strangely \end{document}
Cheers,
Tomek
Edit: Tested on MiKTeX 2.7
Code: Select all
Test input with short name:
\begingroup\catcode`~=12\include{foobar~1.tex}\endgroup %this behaves strangely
NEW: TikZ book now 40% off at Amazon.com for a short time.