>>>>> "Michael" == Michael  <[EMAIL PROTECTED]> writes:

Michael> Hi LyX fails to protect a tilde (~) in the input path when
Michael> supplied to LaTeX:
>>
Michael> Eg \def\input@path{{/home/username/age~5/}} or (under Cygwin)
Michael> \def\input@path{{C:/Progra~1/Cygwin/tmp/}} .
>>
Michael> If each occurrence of the tilde were preceeded by "\string",
Michael> this problem would be solved and LaTeX would accept the path
Michael> correctly: \def\input@path{{/home/username/age\string~5/}}
>>  Did you actually test that? I seem to remember that, at least for
>> spaces in names there is no clean solution.

Michael> I tested it for tildes (manually editing the .tex file), and
Michael> it worked fine.

Michael> Spaces might work if you enclose the path in quotes, eg:
Michael> \def\input@path{{"C:/Program Files/Cygwin/tmp/"}} but I don't
Michael> recall the results.

I do not see how, since latex does not consider them as special (they
are a shell thing). 

>> Appended is an (untested) patch which does what you request. Of
>> course there will be other characters for which this is needed.

I'll commit the patch them. Please test again after my commit.

JMarc

Reply via email to