Thanks a lot! Finally I added the 'cp' command in the converter to copy the files I needed (*.pdf and *.txt) before compiling:
cp $$r/*.pdf $$r/*.txt ./ & [converting commands here, e.g. pdflatex $$i] It's still not a complete solution, but works for my situation. Regards, Yihui -- Phone: 515-294-6609 Web: http://yihui.name Department of Statistics, Iowa State University 3211 Snedecor Hall, Ames, IA On Wed, Sep 16, 2009 at 10:10 AM, rgheck <rgh...@bobjweil.com> wrote: > On 09/16/2009 12:36 AM, Yihui Xie wrote: >> >> 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. >> >> > > Yes, I know. But it should actually be fairly easy to write a little script > to find it, though if LyX crashes you'd have to remove it yourself else the > script would fail. > > The other option, of using some customized script to run LaTeX, etc, > wouldn't have this problem. > > rh > >