Thanks! Yes the file name is annoying. What's more, Lyx will use a different temp directory each time, so it's difficult to copy the files to the temp directory by hand, as I don't know the destination.
Regards, Yihui -- Yihui Xie <xieyi...@gmail.com> Phone: 515-294-6609 Web: http://yihui.name Department of Statistics, Iowa State University 3211 Snedecor Hall, Ames, IA On Tue, Sep 15, 2009 at 12:32 PM, rgheck <rgh...@bobjweil.com> wrote: > On 09/15/2009 01:04 PM, Yihui Xie wrote: >> >> Hi all, >> >> I'm using a LaTeX package that will include certain files into the >> document, however, Lyx does not know these files are required for >> compiling, because they are not included with standard LaTeX macros >> (e.g. \includegraphics{}). So my question is, how to copy these files >> into the temporary directory? >> >> I guess the task is something like "cp *.pdf $$Tempdir". >> >> My question is similar to this one: >> http://www.mail-archive.com/lyx-users@lists.lyx.org/msg75879.html, but >> I didn't find an explicit solution. Thanks! >> >> > > Here's a dirty trick. You can include these via graphics insets, but then > put a "%" in ERT at the beginning of the line. LyX doesn't know about the > comment, so it'll still copy the file to the temporary directory, but of > course LaTeX will ignore it. That said, it will also mangle the filename, > e.g, you get > 0_home_rgheck_files_graphics_225px-Alfred_Tarski.jpg > so maybe this is not a complete solution. > > rh > >