edscott <[EMAIL PROTECTED]> writes:
| LyX has a bug with double nested "input" files. What do I mean by double
| nested? I mean the main file has an input file "part_1.lyx" and the file
| part_1.lyx has several input files "chapter_x.lyx".
| The problem is that the chapter_x.tex files are not generated in the same
| temporary directory as the part_1.tex file, and the part_1.tex file does not
| have either a relative or full path to the chapter_x.tex files. The following
| patch will put full paths to the chapter_x.tex files. I used the same code
| available in the modified function.
Wouldn't the correct fix be to make sure that the chapter_x.lyx files
were generated in the correct dir instead?
(or copied there?)
|
| This is *not* a bug with "include" files, in which the part_1.tex file is
| written out with a relative paths towards the chapter_x.tex files.
|
| Original temporary part_1.tex file without patch:
| \input{@home@work@[EMAIL PROTECTED]}
|
| With patch:
| \input{/tmp/lyx_tmp6234aaa/lyx_bufrtmp6234aab/@home@work@[EMAIL PROTECTED]}
Are you telling me that the part_1_tex file is located in
lyx_bufrtmp623aaa?
| I suppose it should be a relative path, but a full path was easier.
There is some utility functions to create a relative path from an
absolute one in filetools.h
Lgb