[OS X TeX] paths in input & include
Themis Matsoukas
matsoukas at psu.edu
Sun Jan 22 21:22:25 CET 2006
On Jan 22, 2006, at 12:20 PM, Maarten Sneep wrote:
> Question 1: the only "odd" character is a space, not other "funny"
> characters, like ß, é, ƒ, or ™
yes - space only. Very specifically, I tried the following (verbatim)
\include{"folder 1/folder 2/My file"}
\input{"folder 1/folder 2/My file"}
> Question 2: (this should not be an issue, but just in case): is the
> " turned into an active character (the babel package for various
> languages does this, Dutch, German, …).
no (at least I don't think so becasue I am not using babel explicitly
in my file)
> Question 3: Have you tried \include{"folder1 with space/folder2
> with space/latex file with space"}
yes: and here is what happens in this case:
first, tex issues the warning that folder1.tex and folder1.aux
are not found
then, without stopping the typesetting, it produces a pdf that
prints the string (verbatim)
1/folder 2/My file"
i.e. to contiguous string up to the first blank is interpreted as the
filename; when this file is not found, the entire string in \inlcude
after the opening quote is interpreted as a string to print. The
second quote mark doesn't have an effect and so it doesn't matter
where it is placed.
As I said earlier, \input does not have this problem. It is really
curious that \input and \include handle filenames so differently.
Themis
> On 22 Jan 2006, at 12:35, Themis Matsoukas wrote:
>
>> On Jan 15, 2006, at 8:50 AM, Maarten Sneep wrote:
>>> TeX allows for the following, at least for \input'ted, and
>>> \include'd files:
>>>
>>> \input "subfile with spaces in its name"
>>> \input{"subfile with spaces in its name"}
>>> \include{"subfile with spaces in its name"}
>>
>> I tried the above and met with partial success:
>>
>> The following worked:
>> \input{"folder1 with space"/"folder2 with space"/"latex file
>> with space"}
>>
>> but the following did not:
>> \include{"folder1 with space"/"folder2 with space"/"latex file
>> with space"}
>
------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
More information about the macostex-archives
mailing list