Re: How to copy required files into the temporary directory?

2009-09-16 Thread Yihui Xie
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




Re: How to copy required files into the temporary directory?

2009-09-16 Thread Yihui Xie
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




Re: How to copy required files into the temporary directory?

2009-09-16 Thread Yihui Xie
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  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
>
>


How to copy required files into the temporary directory?

2009-09-15 Thread Yihui Xie
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!

Regards,
Yihui
--
Department of Statistics, Iowa State University
3211 Snedecor Hall, Ames, IA
Phone: 515-294-6609 Web: http://yihui.name


Re: How to copy required files into the temporary directory?

2009-09-15 Thread rgheck

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



Re: How to copy required files into the temporary directory?

2009-09-15 Thread Yihui Xie
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




How to copy required files into the temporary directory?

2009-09-15 Thread Yihui Xie
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!

Regards,
Yihui
--
Department of Statistics, Iowa State University
3211 Snedecor Hall, Ames, IA
Phone: 515-294-6609 Web: http://yihui.name


Re: How to copy required files into the temporary directory?

2009-09-15 Thread rgheck

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



Re: How to copy required files into the temporary directory?

2009-09-15 Thread Yihui Xie
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




How to copy required files into the temporary directory?

2009-09-15 Thread Yihui Xie
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!

Regards,
Yihui
--
Department of Statistics, Iowa State University
3211 Snedecor Hall, Ames, IA
Phone: 515-294-6609 Web: http://yihui.name


Re: How to copy required files into the temporary directory?

2009-09-15 Thread rgheck

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



Re: How to copy required files into the temporary directory?

2009-09-15 Thread Yihui Xie
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 
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  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
>
>