Am Donnerstag, 14. April 2011 schrieben Sie: > On 04/14/2011 11:03 AM, Rainer Dorsch wrote: > > Hello, > > > > I do generate a table in LaTeX source format. I included it in a LyX > > document using ERT and then \input{file.tex}. That worked well. The > > trouble starts, when I do that in a subdocument, which is not in the > > same directory as the toplevel document. Then I need to specify the > > relative path and that is different for the subdocument and the toplevel > > document. > > > > When I input files in non-ERT mode, LyX handles this problem. But if I > > use non-ERT I cannot input a LaTeX file, only LyX files. > > This is because LyX does not know to copy the file to the temporary > directory when it is done via ERT, and the trick it uses to overcome > this won't work for documents in different directories. But is there > some reason you have to use ERT here and not the Include inset?
Many thanks for the quick reply. I did not Insert->File->Child Document. Selected Input there and choose a *.tex file. Before I was under the impression I could only include LyX files as child documents. Is that the same as the include inset you are refering to? Thanks, Rainer -- Rainer Dorsch Lärchenstr. 6 D-72135 Dettenhausen 07157-734133 email: rdor...@web.de jabber: rdor...@jabber.org GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F 8F59 E3A8 C538 7519 141E Full GPG key: http://pgp.mit.edu/
signature.asc
Description: This is a digitally signed message part.