Richard Heck wrote:
> > 1. create a file "master.lyx" and edit the LaTeX preamble to include 
> > "\usepackage{import}"
> > 2. Insert ERT "\subimport{subdir}{trythis.tex}"
> > 3. create "trythis.tex" in subdir
> > 4. Compile.
> > 
> > This will fail.
> > 
> > If you export your "master.lyx" file to a LaTeX file, it will work.
> > 
> > Is there a way to get this working in LyX?
> 
> I'm guessing that maybe import.sty needs more LaTeX runs than we do?

You have to remember that the file is copied to and processed in a temporary 
directory. So if \subimport points to a relative path, this path will need to 
be relative from the temporary directory. Absolute paths should work, though.

Jürgen

Reply via email to