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