On Wed, May 31, 2000 at 09:07:00AM +0200, Michael Zapf wrote:
> "Lars Gullik Bj?nnes" wrote:
> > Nested inputs are allowed, but not nested includes.
> >
> > You can use include on the first level, but have to use input to get
> > deeper than that.
>
> If that only did work... Actually, it does not. Try doing the following:
>
> 1. Create a file doc1.lyx which contains a file inclusion. Use "Insert->Include
> File", select "use input" and enter doc2.lyx.
> 2. Do the same with doc2.lyx which is to include doc3.lyx.
> 3. Create doc3.lyx with some content lines.
> 4. Select "File->View DVI".
> 5. You get an alert "There were errors during the LaTeX run...".
> 6. Clicking on the "error" tag pops up a window which states: "LaTeX error: File
> 'doc3.tex' not found.", "\input{doc3.tex}"
>
> The reason seems to be that LyX does not recursively create temporary .tex files.
Nested input will work if LyX doesn't use temporary directories
(put "\use_tempdir false" in the lyxrc file).
If LyX uses temporary directories, it creates all doc*.tex files,
but it puts doc1.tex & doc2.tex in one directory
(e.g. /tmp/lyx_tmp11555aaa/lyx_bufrtmp11555aaa), and the doc3.tex in another
directory (e.g. /tmp/lyx_tmp11555aaa/lyx_bufrtmp11555aab).
This is a bug that needs to be fixed.