Re: howto copy external material to lyx working directory

2009-11-04 Thread Rainer M Krug
On Tue, Nov 3, 2009 at 4:46 PM, Manveru manv...@manveru.pl wrote:

 2009/11/1 Egon Alter egon.al...@gmx.net:
  Hi,
 
  I like to use the pdfx package which needs some external files (icc
 profile,
  xmpdata file) in the lyx_tmpbuf folder. The filenames are hardcoded. How
 can
  tell lyx to copy these files to the tmpbuf folder before compiling?
 
  thanks

 Oh yes, I was thinking about such feature couple of times when people
 requests some additional files in latex process through LyX. So
 customized copier option could be added to document settings allowing
 user to select files which he wants to be copied to temp dir for
 processing. This could be a feature request.


A user defined copier definitely works, but I think that in the Document --
Settings dialog, there should be an additional section named Files to
copy, in which one can select files which should be also copied into the
tmpbuf folder. This would make the whole process much easier to handle.

Rainer



 --
 Manveru
 jabber: manv...@manveru.pl
 gg: 1624001
   http://www.manveru.pl




-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)721 151 334 888
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


Re: howto copy external material to lyx working directory

2009-11-04 Thread Manveru
2009/11/4 Rainer M Krug r.m.k...@gmail.com:


 On Tue, Nov 3, 2009 at 4:46 PM, Manveru manv...@manveru.pl wrote:

 2009/11/1 Egon Alter egon.al...@gmx.net:
  Hi,
 
  I like to use the pdfx package which needs some external files (icc
  profile,
  xmpdata file) in the lyx_tmpbuf folder. The filenames are hardcoded. How
  can
  tell lyx to copy these files to the tmpbuf folder before compiling?
 
  thanks

 Oh yes, I was thinking about such feature couple of times when people
 requests some additional files in latex process through LyX. So
 customized copier option could be added to document settings allowing
 user to select files which he wants to be copied to temp dir for
 processing. This could be a feature request.

 A user defined copier definitely works, but I think that in the Document --
 Settings dialog, there should be an additional section named Files to
 copy, in which one can select files which should be also copied into the
 tmpbuf folder. This would make the whole process much easier to handle.

 Rainer

I would even see a possibility to define list of files to copy and
additionally use and placeholder everywhere you want use such file - I
mean mainly user defined preamble and ERTs.

-- 
Manveru
jabber: manv...@manveru.pl
 gg: 1624001
   http://www.manveru.pl


Re: howto copy external material to lyx working directory

2009-11-04 Thread Egon Alter
 On Tue, Nov 3, 2009 at 4:46 PM, Manveru manv...@manveru.pl wrote:
  2009/11/1 Egon Alter egon.al...@gmx.net:
   Hi,
  
   I like to use the pdfx package which needs some external files (icc
   profile, xmpdata file) in the lyx_tmpbuf folder. The filenames are 
   hardcoded.
   How can I tell lyx to copy these files to the tmpbuf folder before 
   compiling?
 
  Oh yes, I was thinking about such feature couple of times when people
  requests some additional files in latex process through LyX. So
  customized copier option could be added to document settings allowing
  user to select files which he wants to be copied to temp dir for
  processing. This could be a feature request.
 
 A user defined copier definitely works, but I think that in the Document --
 Settings dialog, there should be an additional section named Files to
 copy, in which one can select files which should be also copied into the
 tmpbuf folder. This would make the whole process much easier to handle.

ok - step by step.

First, I define a new filetype e.g. ICC-profile with .icc extension.

Than I define a converter from icc to ??? (I used png, and included the file as 
a 
graph which I commented out manualy - ugly). 

As a copier, I tried ext_copy -e icc $p $r (don't remember the exact variables 
anymore, not well documented), but lyx allways wants to rename the copied files 
to 
number-filename style, so this didn't work. 

There should be some better way!

Egon


Re: howto copy external material to lyx working directory

2009-11-04 Thread Rainer M Krug
On Wed, Nov 4, 2009 at 1:29 PM, Egon Alter egon.al...@gmx.net wrote:

  On Tue, Nov 3, 2009 at 4:46 PM, Manveru manv...@manveru.pl wrote:
   2009/11/1 Egon Alter egon.al...@gmx.net:
Hi,
   
I like to use the pdfx package which needs some external files (icc
profile, xmpdata file) in the lyx_tmpbuf folder. The filenames are
 hardcoded.
How can I tell lyx to copy these files to the tmpbuf folder before
 compiling?
  
   Oh yes, I was thinking about such feature couple of times when people
   requests some additional files in latex process through LyX. So
   customized copier option could be added to document settings allowing
   user to select files which he wants to be copied to temp dir for
   processing. This could be a feature request.
 
  A user defined copier definitely works, but I think that in the Document
 --
  Settings dialog, there should be an additional section named Files to
  copy, in which one can select files which should be also copied into the
  tmpbuf folder. This would make the whole process much easier to handle.

 ok - step by step.

 First, I define a new filetype e.g. ICC-profile with .icc extension.

 Than I define a converter from icc to ??? (I used png, and included the
 file as a
 graph which I commented out manualy - ugly).

 As a copier, I tried ext_copy -e icc $p $r (don't remember the exact
 variables
 anymore, not well documented), but lyx allways wants to rename the copied
 files to
 number-filename style, so this didn't work.

 There was a discusion on this list recently, which included that aspect:
using a user defined copier to copy files into the tmpbuf directory - I
think it was the one co-operation with co-authors, i.e. sharing and
commenting LyX Documents - but I don't remember exactly. Soeey.

I THINK it involved writing a shell script, which copies the files, and is
doing what another copier is doing. This copier is then re[lace in LyX with
the shell script - but I am not sure.


Rainer


 There should be some better way!

 Egon




-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)721 151 334 888
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


Re: howto copy external material to lyx working directory

2009-11-04 Thread Rainer M Krug
On Wed, Nov 4, 2009 at 12:42 PM, Manveru manv...@manveru.pl wrote:

 2009/11/4 Rainer M Krug r.m.k...@gmail.com:
 
 
  On Tue, Nov 3, 2009 at 4:46 PM, Manveru manv...@manveru.pl wrote:
 
  2009/11/1 Egon Alter egon.al...@gmx.net:
   Hi,
  
   I like to use the pdfx package which needs some external files (icc
   profile,
   xmpdata file) in the lyx_tmpbuf folder. The filenames are hardcoded.
 How
   can
   tell lyx to copy these files to the tmpbuf folder before compiling?
  
   thanks
 
  Oh yes, I was thinking about such feature couple of times when people
  requests some additional files in latex process through LyX. So
  customized copier option could be added to document settings allowing
  user to select files which he wants to be copied to temp dir for
  processing. This could be a feature request.
 
  A user defined copier definitely works, but I think that in the Document
 --
  Settings dialog, there should be an additional section named Files to
  copy, in which one can select files which should be also copied into the
  tmpbuf folder. This would make the whole process much easier to handle.
 
  Rainer

 I would even see a possibility to define list of files to copy and
 additionally use and placeholder everywhere you want use such file


Yes - a list which can also include wildcards - that would be optimal.


 - I mean mainly user defined preamble and ERTs.


sorry - you lost me here.

I am using an external preamble (preamble.tex) which is in the same
directory as the LyX file, and which is included in the lyx file with

\input{preamble.tex}


in the LyX preamble. This is NOT copied automatically, but works, as in the
resulting LaTeX document,


\def\in...@path{{/PATH/TO/DIRECTORY/WITH/test.lyx}}


That gives me an idea: is it possible to define a search path for LaTeX?
Then this one could be set to the LyX directory, and most things should
work.


But still: having the option of files to be copied would be also useful for
Sweave, which use data files to be analysed.


Rainer



 --
 Manveru
 jabber: manv...@manveru.pl
 gg: 1624001
   http://www.manveru.pl




-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)721 151 334 888
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


Re: howto copy external material to lyx working directory

2009-11-04 Thread Rainer M Krug
On Tue, Nov 3, 2009 at 4:46 PM, Manveru manv...@manveru.pl wrote:

 2009/11/1 Egon Alter egon.al...@gmx.net:
  Hi,
 
  I like to use the pdfx package which needs some external files (icc
 profile,
  xmpdata file) in the lyx_tmpbuf folder. The filenames are hardcoded. How
 can
  tell lyx to copy these files to the tmpbuf folder before compiling?
 
  thanks

 Oh yes, I was thinking about such feature couple of times when people
 requests some additional files in latex process through LyX. So
 customized copier option could be added to document settings allowing
 user to select files which he wants to be copied to temp dir for
 processing. This could be a feature request.


A user defined copier definitely works, but I think that in the Document --
Settings dialog, there should be an additional section named Files to
copy, in which one can select files which should be also copied into the
tmpbuf folder. This would make the whole process much easier to handle.

Rainer



 --
 Manveru
 jabber: manv...@manveru.pl
 gg: 1624001
   http://www.manveru.pl




-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)721 151 334 888
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


Re: howto copy external material to lyx working directory

2009-11-04 Thread Manveru
2009/11/4 Rainer M Krug r.m.k...@gmail.com:


 On Tue, Nov 3, 2009 at 4:46 PM, Manveru manv...@manveru.pl wrote:

 2009/11/1 Egon Alter egon.al...@gmx.net:
  Hi,
 
  I like to use the pdfx package which needs some external files (icc
  profile,
  xmpdata file) in the lyx_tmpbuf folder. The filenames are hardcoded. How
  can
  tell lyx to copy these files to the tmpbuf folder before compiling?
 
  thanks

 Oh yes, I was thinking about such feature couple of times when people
 requests some additional files in latex process through LyX. So
 customized copier option could be added to document settings allowing
 user to select files which he wants to be copied to temp dir for
 processing. This could be a feature request.

 A user defined copier definitely works, but I think that in the Document --
 Settings dialog, there should be an additional section named Files to
 copy, in which one can select files which should be also copied into the
 tmpbuf folder. This would make the whole process much easier to handle.

 Rainer

I would even see a possibility to define list of files to copy and
additionally use and placeholder everywhere you want use such file - I
mean mainly user defined preamble and ERTs.

-- 
Manveru
jabber: manv...@manveru.pl
 gg: 1624001
   http://www.manveru.pl


Re: howto copy external material to lyx working directory

2009-11-04 Thread Egon Alter
 On Tue, Nov 3, 2009 at 4:46 PM, Manveru manv...@manveru.pl wrote:
  2009/11/1 Egon Alter egon.al...@gmx.net:
   Hi,
  
   I like to use the pdfx package which needs some external files (icc
   profile, xmpdata file) in the lyx_tmpbuf folder. The filenames are 
   hardcoded.
   How can I tell lyx to copy these files to the tmpbuf folder before 
   compiling?
 
  Oh yes, I was thinking about such feature couple of times when people
  requests some additional files in latex process through LyX. So
  customized copier option could be added to document settings allowing
  user to select files which he wants to be copied to temp dir for
  processing. This could be a feature request.
 
 A user defined copier definitely works, but I think that in the Document --
 Settings dialog, there should be an additional section named Files to
 copy, in which one can select files which should be also copied into the
 tmpbuf folder. This would make the whole process much easier to handle.

ok - step by step.

First, I define a new filetype e.g. ICC-profile with .icc extension.

Than I define a converter from icc to ??? (I used png, and included the file as 
a 
graph which I commented out manualy - ugly). 

As a copier, I tried ext_copy -e icc $p $r (don't remember the exact variables 
anymore, not well documented), but lyx allways wants to rename the copied files 
to 
number-filename style, so this didn't work. 

There should be some better way!

Egon


Re: howto copy external material to lyx working directory

2009-11-04 Thread Rainer M Krug
On Wed, Nov 4, 2009 at 1:29 PM, Egon Alter egon.al...@gmx.net wrote:

  On Tue, Nov 3, 2009 at 4:46 PM, Manveru manv...@manveru.pl wrote:
   2009/11/1 Egon Alter egon.al...@gmx.net:
Hi,
   
I like to use the pdfx package which needs some external files (icc
profile, xmpdata file) in the lyx_tmpbuf folder. The filenames are
 hardcoded.
How can I tell lyx to copy these files to the tmpbuf folder before
 compiling?
  
   Oh yes, I was thinking about such feature couple of times when people
   requests some additional files in latex process through LyX. So
   customized copier option could be added to document settings allowing
   user to select files which he wants to be copied to temp dir for
   processing. This could be a feature request.
 
  A user defined copier definitely works, but I think that in the Document
 --
  Settings dialog, there should be an additional section named Files to
  copy, in which one can select files which should be also copied into the
  tmpbuf folder. This would make the whole process much easier to handle.

 ok - step by step.

 First, I define a new filetype e.g. ICC-profile with .icc extension.

 Than I define a converter from icc to ??? (I used png, and included the
 file as a
 graph which I commented out manualy - ugly).

 As a copier, I tried ext_copy -e icc $p $r (don't remember the exact
 variables
 anymore, not well documented), but lyx allways wants to rename the copied
 files to
 number-filename style, so this didn't work.

 There was a discusion on this list recently, which included that aspect:
using a user defined copier to copy files into the tmpbuf directory - I
think it was the one co-operation with co-authors, i.e. sharing and
commenting LyX Documents - but I don't remember exactly. Soeey.

I THINK it involved writing a shell script, which copies the files, and is
doing what another copier is doing. This copier is then re[lace in LyX with
the shell script - but I am not sure.


Rainer


 There should be some better way!

 Egon




-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)721 151 334 888
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


Re: howto copy external material to lyx working directory

2009-11-04 Thread Rainer M Krug
On Wed, Nov 4, 2009 at 12:42 PM, Manveru manv...@manveru.pl wrote:

 2009/11/4 Rainer M Krug r.m.k...@gmail.com:
 
 
  On Tue, Nov 3, 2009 at 4:46 PM, Manveru manv...@manveru.pl wrote:
 
  2009/11/1 Egon Alter egon.al...@gmx.net:
   Hi,
  
   I like to use the pdfx package which needs some external files (icc
   profile,
   xmpdata file) in the lyx_tmpbuf folder. The filenames are hardcoded.
 How
   can
   tell lyx to copy these files to the tmpbuf folder before compiling?
  
   thanks
 
  Oh yes, I was thinking about such feature couple of times when people
  requests some additional files in latex process through LyX. So
  customized copier option could be added to document settings allowing
  user to select files which he wants to be copied to temp dir for
  processing. This could be a feature request.
 
  A user defined copier definitely works, but I think that in the Document
 --
  Settings dialog, there should be an additional section named Files to
  copy, in which one can select files which should be also copied into the
  tmpbuf folder. This would make the whole process much easier to handle.
 
  Rainer

 I would even see a possibility to define list of files to copy and
 additionally use and placeholder everywhere you want use such file


Yes - a list which can also include wildcards - that would be optimal.


 - I mean mainly user defined preamble and ERTs.


sorry - you lost me here.

I am using an external preamble (preamble.tex) which is in the same
directory as the LyX file, and which is included in the lyx file with

\input{preamble.tex}


in the LyX preamble. This is NOT copied automatically, but works, as in the
resulting LaTeX document,


\def\in...@path{{/PATH/TO/DIRECTORY/WITH/test.lyx}}


That gives me an idea: is it possible to define a search path for LaTeX?
Then this one could be set to the LyX directory, and most things should
work.


But still: having the option of files to be copied would be also useful for
Sweave, which use data files to be analysed.


Rainer



 --
 Manveru
 jabber: manv...@manveru.pl
 gg: 1624001
   http://www.manveru.pl




-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)721 151 334 888
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


Re: howto copy external material to lyx working directory

2009-11-04 Thread Rainer M Krug
On Tue, Nov 3, 2009 at 4:46 PM, Manveru  wrote:

> 2009/11/1 Egon Alter :
> > Hi,
> >
> > I like to use the pdfx package which needs some external files (icc
> profile,
> > xmpdata file) in the lyx_tmpbuf folder. The filenames are hardcoded. How
> can
> > tell lyx to copy these files to the tmpbuf folder before compiling?
> >
> > thanks
>
> Oh yes, I was thinking about such feature couple of times when people
> requests some additional files in latex process through LyX. So
> customized copier option could be added to document settings allowing
> user to select files which he wants to be copied to temp dir for
> processing. This could be a feature request.
>

A user defined copier definitely works, but I think that in the Document --
Settings dialog, there should be an additional section named "Files to
copy", in which one can select files which should be also copied into the
tmpbuf folder. This would make the whole process much easier to handle.

Rainer


>
> --
> Manveru
> jabber: manv...@manveru.pl
> gg: 1624001
>   http://www.manveru.pl
>



-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)721 151 334 888
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


Re: howto copy external material to lyx working directory

2009-11-04 Thread Manveru
2009/11/4 Rainer M Krug :
>
>
> On Tue, Nov 3, 2009 at 4:46 PM, Manveru  wrote:
>>
>> 2009/11/1 Egon Alter :
>> > Hi,
>> >
>> > I like to use the pdfx package which needs some external files (icc
>> > profile,
>> > xmpdata file) in the lyx_tmpbuf folder. The filenames are hardcoded. How
>> > can
>> > tell lyx to copy these files to the tmpbuf folder before compiling?
>> >
>> > thanks
>>
>> Oh yes, I was thinking about such feature couple of times when people
>> requests some additional files in latex process through LyX. So
>> customized copier option could be added to document settings allowing
>> user to select files which he wants to be copied to temp dir for
>> processing. This could be a feature request.
>
> A user defined copier definitely works, but I think that in the Document --
> Settings dialog, there should be an additional section named "Files to
> copy", in which one can select files which should be also copied into the
> tmpbuf folder. This would make the whole process much easier to handle.
>
> Rainer

I would even see a possibility to define list of files to copy and
additionally use and placeholder everywhere you want use such file - I
mean mainly user defined preamble and ERTs.

-- 
Manveru
jabber: manv...@manveru.pl
 gg: 1624001
   http://www.manveru.pl


Re: howto copy external material to lyx working directory

2009-11-04 Thread Egon Alter
> On Tue, Nov 3, 2009 at 4:46 PM, Manveru  wrote:
> > 2009/11/1 Egon Alter :
> > > Hi,
> > >
> > > I like to use the pdfx package which needs some external files (icc
> > > profile, xmpdata file) in the lyx_tmpbuf folder. The filenames are 
> > > hardcoded.
> > > How can I tell lyx to copy these files to the tmpbuf folder before 
> > > compiling?
> >
> > Oh yes, I was thinking about such feature couple of times when people
> > requests some additional files in latex process through LyX. So
> > customized copier option could be added to document settings allowing
> > user to select files which he wants to be copied to temp dir for
> > processing. This could be a feature request.
> 
> A user defined copier definitely works, but I think that in the Document --
> Settings dialog, there should be an additional section named "Files to
> copy", in which one can select files which should be also copied into the
> tmpbuf folder. This would make the whole process much easier to handle.

ok - step by step.

First, I define a new filetype e.g. "ICC-profile" with .icc extension.

Than I define a converter from icc to ??? (I used png, and included the file as 
a 
graph which I commented out manualy - ugly). 

As a copier, I tried ext_copy -e icc $p $r (don't remember the exact variables 
anymore, not well documented), but lyx allways wants to rename the copied files 
to 
-filename style, so this didn't work. 

There should be some better way!

Egon


Re: howto copy external material to lyx working directory

2009-11-04 Thread Rainer M Krug
On Wed, Nov 4, 2009 at 1:29 PM, Egon Alter  wrote:

> > On Tue, Nov 3, 2009 at 4:46 PM, Manveru  wrote:
> > > 2009/11/1 Egon Alter :
> > > > Hi,
> > > >
> > > > I like to use the pdfx package which needs some external files (icc
> > > > profile, xmpdata file) in the lyx_tmpbuf folder. The filenames are
> hardcoded.
> > > > How can I tell lyx to copy these files to the tmpbuf folder before
> compiling?
> > >
> > > Oh yes, I was thinking about such feature couple of times when people
> > > requests some additional files in latex process through LyX. So
> > > customized copier option could be added to document settings allowing
> > > user to select files which he wants to be copied to temp dir for
> > > processing. This could be a feature request.
> >
> > A user defined copier definitely works, but I think that in the Document
> --
> > Settings dialog, there should be an additional section named "Files to
> > copy", in which one can select files which should be also copied into the
> > tmpbuf folder. This would make the whole process much easier to handle.
>
> ok - step by step.
>
> First, I define a new filetype e.g. "ICC-profile" with .icc extension.
>
> Than I define a converter from icc to ??? (I used png, and included the
> file as a
> graph which I commented out manualy - ugly).
>
> As a copier, I tried ext_copy -e icc $p $r (don't remember the exact
> variables
> anymore, not well documented), but lyx allways wants to rename the copied
> files to
> -filename style, so this didn't work.
>
> There was a discusion on this list recently, which included that aspect:
using a user defined copier to copy files into the tmpbuf directory - I
think it was the one co-operation with co-authors, i.e. sharing and
commenting LyX Documents - but I don't remember exactly. Soeey.

I THINK it involved writing a shell script, which copies the files, and is
doing what another copier is doing. This copier is then re[lace in LyX with
the shell script - but I am not sure.


Rainer


> There should be some better way!
>
> Egon
>



-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)721 151 334 888
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


Re: howto copy external material to lyx working directory

2009-11-04 Thread Rainer M Krug
On Wed, Nov 4, 2009 at 12:42 PM, Manveru  wrote:

> 2009/11/4 Rainer M Krug :
> >
> >
> > On Tue, Nov 3, 2009 at 4:46 PM, Manveru  wrote:
> >>
> >> 2009/11/1 Egon Alter :
> >> > Hi,
> >> >
> >> > I like to use the pdfx package which needs some external files (icc
> >> > profile,
> >> > xmpdata file) in the lyx_tmpbuf folder. The filenames are hardcoded.
> How
> >> > can
> >> > tell lyx to copy these files to the tmpbuf folder before compiling?
> >> >
> >> > thanks
> >>
> >> Oh yes, I was thinking about such feature couple of times when people
> >> requests some additional files in latex process through LyX. So
> >> customized copier option could be added to document settings allowing
> >> user to select files which he wants to be copied to temp dir for
> >> processing. This could be a feature request.
> >
> > A user defined copier definitely works, but I think that in the Document
> --
> > Settings dialog, there should be an additional section named "Files to
> > copy", in which one can select files which should be also copied into the
> > tmpbuf folder. This would make the whole process much easier to handle.
> >
> > Rainer
>
> I would even see a possibility to define list of files to copy and
> additionally use and placeholder everywhere you want use such file


Yes - a list which can also include wildcards - that would be optimal.


> - I mean mainly user defined preamble and ERTs.
>

sorry - you lost me here.

I am using an external preamble (preamble.tex) which is in the same
directory as the LyX file, and which is included in the lyx file with

\input{preamble.tex}


in the LyX preamble. This is NOT copied automatically, but works, as in the
resulting LaTeX document,


\def\in...@path{{/PATH/TO/DIRECTORY/WITH/test.lyx}}


That gives me an idea: is it possible to define a search path for LaTeX?
Then this one could be set to the LyX directory, and most things should
work.


But still: having the option of files to be copied would be also useful for
Sweave, which use data files to be analysed.


Rainer



> --
> Manveru
> jabber: manv...@manveru.pl
> gg: 1624001
>   http://www.manveru.pl
>



-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Cell:   +27 - (0)83 9479 042
Fax:+27 - (0)86 516 2782
Fax:+49 - (0)721 151 334 888
email:  rai...@krugs.de

Skype:  RMkrug
Google: r.m.k...@gmail.com


Re: howto copy external material to lyx working directory

2009-11-03 Thread Manveru
2009/11/1 Egon Alter egon.al...@gmx.net:
 Hi,

 I like to use the pdfx package which needs some external files (icc profile,
 xmpdata file) in the lyx_tmpbuf folder. The filenames are hardcoded. How can
 tell lyx to copy these files to the tmpbuf folder before compiling?

 thanks

Oh yes, I was thinking about such feature couple of times when people
requests some additional files in latex process through LyX. So
customized copier option could be added to document settings allowing
user to select files which he wants to be copied to temp dir for
processing. This could be a feature request.

-- 
Manveru
jabber: manv...@manveru.pl
 gg: 1624001
   http://www.manveru.pl


Re: howto copy external material to lyx working directory

2009-11-03 Thread Manveru
2009/11/1 Egon Alter egon.al...@gmx.net:
 Hi,

 I like to use the pdfx package which needs some external files (icc profile,
 xmpdata file) in the lyx_tmpbuf folder. The filenames are hardcoded. How can
 tell lyx to copy these files to the tmpbuf folder before compiling?

 thanks

Oh yes, I was thinking about such feature couple of times when people
requests some additional files in latex process through LyX. So
customized copier option could be added to document settings allowing
user to select files which he wants to be copied to temp dir for
processing. This could be a feature request.

-- 
Manveru
jabber: manv...@manveru.pl
 gg: 1624001
   http://www.manveru.pl


Re: howto copy external material to lyx working directory

2009-11-03 Thread Manveru
2009/11/1 Egon Alter :
> Hi,
>
> I like to use the pdfx package which needs some external files (icc profile,
> xmpdata file) in the lyx_tmpbuf folder. The filenames are hardcoded. How can
> tell lyx to copy these files to the tmpbuf folder before compiling?
>
> thanks

Oh yes, I was thinking about such feature couple of times when people
requests some additional files in latex process through LyX. So
customized copier option could be added to document settings allowing
user to select files which he wants to be copied to temp dir for
processing. This could be a feature request.

-- 
Manveru
jabber: manv...@manveru.pl
 gg: 1624001
   http://www.manveru.pl


howto copy external material to lyx working directory

2009-11-01 Thread Egon Alter
Hi,

I like to use the pdfx package which needs some external files (icc profile, 
xmpdata file) in the lyx_tmpbuf folder. The filenames are hardcoded. How can 
tell lyx to copy these files to the tmpbuf folder before compiling?

thanks

Egon


howto copy external material to lyx working directory

2009-11-01 Thread Egon Alter
Hi,

I like to use the pdfx package which needs some external files (icc profile, 
xmpdata file) in the lyx_tmpbuf folder. The filenames are hardcoded. How can 
tell lyx to copy these files to the tmpbuf folder before compiling?

thanks

Egon


howto copy external material to lyx working directory

2009-11-01 Thread Egon Alter
Hi,

I like to use the pdfx package which needs some external files (icc profile, 
xmpdata file) in the lyx_tmpbuf folder. The filenames are hardcoded. How can 
tell lyx to copy these files to the tmpbuf folder before compiling?

thanks

Egon