Jean-Marc Lasgouttes wrote: > Angus> Can you explain to me what is meant to happen to the \include > Angus> and \input entries in the presence of spaces? At the moement, > Angus> without applying the patch, LyX 1.3.x creates the following > Angus> LaTeX file from trial.lyx. > > Angus> I know that changing ~ to \string~ will fix this particular > Angus> file, but what happens if the temp dir and the sub~dir each > Angus> contain spaces? Is it sufficient to wrap these elements in > Angus> inverted commas? > > It should, but I am not sure. Actually, the "" feature is done at low > level, and I fear it will play badly with some packages. That's why I > avoided this. > > The documentation is here: > http://www.tug.org/texinfohtml/web2c.html#_005cinput-filenames
Ok. Thanks. > Angus> [EMAIL PROTECTED]"/tmp dir//"}} \include{"sub [EMAIL PROTECTED]"} foo > Angus> \input{"sub dir/input.tex"} > > The patch I did at the time purposefully avoided to handle the case of > file names with spaces in them. I decided this was not a territory I > was willing to explore. I did the minimal thing, which is ``allow to > typeset a file which is in a directory with spaces in its name''. This is the code in buffer.C that generates the [EMAIL PROTECTED] entry? Note that it doesn't handle files that are input from a sub-directory of the main buffer. Ie, [EMAIL PROTECTED] ... \include{sub [EMAIL PROTECTED] will fail also. -- Angus