Is it because lyx is trying to compile your file in a temp folder, but the file you want to attach was not copied over to the temp location, so a relative path (relative to the actual lyx file, not the temp file) doesn't work?
I am also new to lyx, so lyxers, please correct me if I am wrong. Regards, Xie Chao On Wed, May 6, 2009 at 5:41 AM, Parul Bali <parul.sarasw...@gmail.com>wrote: > To be more specific, it doesn’t seem to locate the file when I specify > relative path in the Lyx file and try converting it to pdflatex. However, if > the same lyx file is exported to tex format and then converted to pdflatex, > it works great. > > > > Any help will be greatly appreciated. > > > > Thanks, > > Parul > > > > *From:* Parul Bali [mailto:parul.sarasw...@gmail.com] > *Sent:* 05 May 2009 22:30 > *To:* 'Xie Chao' > *Cc:* lyx-users@lists.lyx.org > *Subject:* RE: Embedding documents/text files in PDF > > > > Many thanks to everyone for their responses. > > > > Xie, > > > > The `attachfile’ package you suggested works great if I export lyx file to > tex format and then convert the tex file to pdflatex. However, if I try > converting the lyx file to pdflatex directly, it throws me an error – > “pdftex error: cannot open file for embedding” . > > It doesn’t seem to locate the file. Any pointers on how to resolve this > would be very helpful. > > > > Thank you. > > > > Parul > > > > *From:* Xie Chao [mailto:xiech...@gmail.com] > *Sent:* 05 May 2009 20:09 > *To:* Parul Bali > *Cc:* lyx-users@lists.lyx.org > *Subject:* Re: Embedding documents/text files in PDF > > > > I guess you are looking for this: > http://www.ctan.org/get/macros/latex/contrib/attachfile/attachfile.pdf > > You can use this LaTeX package to attach files in your PDF. > > Regards, > Xie Chao > > On Tue, May 5, 2009 at 5:39 AM, Parul Bali <parul.sarasw...@gmail.com> > wrote: > > This may sound strange, but does anybody know if its possible to embed > text > file or doc file in a PDF generated from Lyx/Latex? I have seen facility > to > attach documents to PDFs through Adobe writer. Is the same possible > through Lyx/Latex? > > > > Thanks, > > Parul > > >