Re: Insert xfig

2000-06-25 Thread Asger K. Alstrup Nielsen
> I think that we should add makefile like rules to the external_templates file > (instead of the UpdateCommand fields). > For example, > > Template XFig > ... > Format LaTeX > Product \\includegraphics{$$Basename.eps}\\input{$$Basename.tex} > # targetsource command ($$S/$$T ar

Re: Insert xfig

2000-06-24 Thread Dekel Tsur
On Fri, Jun 16, 2000 at 07:52:08PM +0300, Dekel Tsur wrote: > > Now, I have two complaints about the inset: > > 1. The UpdateCommand is always called, even if we already generated the > product files. I think that we should add makefile like rules to the external_templates file (instead of the

Re: Insert xfig

2000-06-19 Thread Asger K. Alstrup Nielsen
> On 17-Jun-2000 Dekel Tsur wrote: > > I've updated the patch, but I haven't added an option to disenable the > > resize/rotate controls according to the template. > > I'll wait for Asgers comment to apply this. I have a few questions to Dekel regarding the patch: - Would it not be beneficial t

Re: Insert xfig

2000-06-19 Thread Michael S. Tsirkin
Hello! I would like to second that. Only the actual user must be permitted to specify which programs to run. Maximum which lyx can do is supply the parameters. Quoting r. Asger K. Alstrup Nielsen ([EMAIL PROTECTED]) "Re: Insert xfig": > > > PS (to Asger) The need for writ

Re: Insert xfig

2000-06-19 Thread Juergen Vigna
> For some strange reason, I named the script fig2psfig.py, where it should be > fig2pstex.py. > Here is a fixed patch. Applied and commited! Jürgen -._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._ Dr. Jürgen Vigna E-Mail: [EMAIL PROTECTED] Italien

Re: Insert xfig

2000-06-19 Thread Juergen Vigna
On 17-Jun-2000 Dekel Tsur wrote: > > I've updated the patch, but I haven't added an option to disenable the > resize/rotate controls according to the template. > I'll wait for Asgers comment to apply this. > The patch also fixes a bug in LibFileSearch (support/filetools.C): > The correct orde

Re: Insert xfig

2000-06-18 Thread Andre Poenitz
Thank you for your explanation, Asger. Andre' -- It'll take a long time to eat 63.000 peanuts. André Pönitz . [EMAIL PROTECTED]

Re: Insert xfig

2000-06-17 Thread Asger K. Alstrup Nielsen
> What's the problem with calling transfig with system(3)? At some point, the call will be expanded using a pattern like this: fig2dev $$Parameters $$Filename where Parameters and Filename comes from the document. Now, I could type in a filename such as "`rm -Rf /`" into my XFig external ins

Re: Insert xfig

2000-06-17 Thread Andre Poenitz
> Better yet is, perhaps, to create a python secure module, that could be used as > a wrapper around safe system calls. What do you think? (Asger and others...) I wonder why we need python at all. Ok, I haven't had time to look at the new "external" inset so maybe I am missing something very o

Re: Insert xfig

2000-06-17 Thread Dekel Tsur
On Fri, Jun 16, 2000 at 11:52:20PM +0200, Asger K. Alstrup Nielsen wrote: > What do others think? Is it a good idea to have resizing and > rotating available for all external insets, when maybe 90% will > be able to use one or both options? > Maybe it would be best to provide a bool in the templ

Re: Insert xfig

2000-06-16 Thread Asger K. Alstrup Nielsen
> > Yes, I think so to. If you read the ExternalTemplate.lyx file, you will > > notice that this is mentioned as a feature to implement for a volunteer. > > I've added more options to the external inset: the ability to resize/rotate > the result (the resize buttons doesn't work yet). > > I also

Re: Insert xfig

2000-06-16 Thread Asger K. Alstrup Nielsen
> For some strange reason, I named the script fig2psfig.py, where it should be > fig2pstex.py. > Here is a fixed patch. This patch set is good. Thanks Dekel ;-) Could somebody please apply it to the cvs? Thanks, Asger

Re: Insert xfig

2000-06-16 Thread Asger K. Alstrup Nielsen
> > Why not have support for ";" in the external figure code? > > (i.e. define UpdateCommand as "cmd1 parameters;cmd2 parameters;..." ) > > This will save a call to python. > > Better yet is, perhaps, to create a python secure module, that could be used as > a wrapper around safe system calls.

Re: Insert xfig

2000-06-16 Thread Dekel Tsur
On Fri, Jun 16, 2000 at 01:18:49PM +0200, Asger K. Alstrup Nielsen wrote: > > However, I think that resizing/rotation options should be added to the > > external inset. > > Yes, I think so to. If you read the ExternalTemplate.lyx file, you will > notice that this is mentioned as a feature to impl

Re: Insert xfig

2000-06-16 Thread Jose Abilio Oliveira Matos
On Fri, Jun 16, 2000 at 08:07:18PM +0300, Dekel Tsur wrote: > > Why not have support for ";" in the external figure code? > (i.e. define UpdateCommand as "cmd1 parameters;cmd2 parameters;..." ) > This will save a call to python. Better yet is, perhaps, to create a python secure module, that co

Re: Insert xfig

2000-06-16 Thread Dekel Tsur
On Fri, Jun 16, 2000 at 01:08:47PM +0200, Asger K. Alstrup Nielsen wrote: > If what you meant was to provide a small facility to allow the > "safe" script constructs, sure we could do that. We already showed > the way with the script for the external date inset which uses > a general Python script

Re: Insert xfig

2000-06-16 Thread Dekel Tsur
On Fri, Jun 16, 2000 at 07:52:08PM +0300, Dekel Tsur wrote: > > > No. You should write a python script that generates both the pstex and the > > > pstex_t files automatically (in the example above, the suffix of the > > > Postscript file should be changed from pstex to eps). > > > > By now, it w

Re: Insert xfig

2000-06-16 Thread Dekel Tsur
> > No. You should write a python script that generates both the pstex and the > > pstex_t files automatically (in the example above, the suffix of the > > Postscript file should be changed from pstex to eps). > > By now, it would come as no surprise that I'd like to ask Dekel to submit > a patc

Re: Insert xfig

2000-06-16 Thread Asger K. Alstrup Nielsen
> However, I think that resizing/rotation options should be added to the > external inset. Yes, I think so to. If you read the ExternalTemplate.lyx file, you will notice that this is mentioned as a feature to implement for a volunteer. I think it should be designed such that there are optional pa

Re: Insert xfig

2000-06-16 Thread Asger K. Alstrup Nielsen
> > PS (to Asger) The need for writing scripts for the external inset is a little > > annoying. Can't we just add an option to define UpdateCommand to be > > "cmd1;cmd2;.." with the meanning to execute cmd1, then cmd2 etc. ? > > And what is the difference between pic2png_eps.py and pic2png_eps.sh

Re: Insert xfig

2000-06-16 Thread Jose Abilio Oliveira Matos
On Fri, Jun 16, 2000 at 12:09:48AM +0300, Dekel Tsur wrote: > > Sorry, python scripts aren't on my radar screen :) > > So I guess I'll have to write it ... > > PS (to Asger) The need for writing scripts for the external inset is a little > annoying. Can't we just add an option to define UpdateCo

Re: Insert xfig

2000-06-15 Thread Dekel Tsur
On Thu, Jun 15, 2000 at 05:38:56PM -0300, Garst R. Reese wrote: > > No. You should write a python script that generates both the pstex and the > > pstex_t files automatically (in the example above, the suffix of the > > Postscript file should be changed from pstex to eps). > Hmm, when I export fr

Re: Insert xfig

2000-06-15 Thread Garst R. Reese
Dekel Tsur wrote: > > > > Changing Basename.pstex to Basename.pstex_t gave me one error box, > > > \epsfig not defined > > > What package am I missing? > > > Garst > > Duh, \usepackage{epsfig} > > I think that pstex_t file should be generated without a command to include > the Postscript file (i

Re: Insert xfig

2000-06-15 Thread Dekel Tsur
> > Changing Basename.pstex to Basename.pstex_t gave me one error box, > > \epsfig not defined > > What package am I missing? > > Garst > Duh, \usepackage{epsfig} I think that pstex_t file should be generated without a command to include the Postscript file (i.e., only with the labels), and the c

Re: Insert xfig

2000-06-15 Thread Garst R. Reese
"Garst R. Reese" wrote: > > "Garst R. Reese" wrote: > > > > Andre Poenitz wrote: > > > > > > > When you find the best format, please let us know. > > > > Dekel mentioned that ps_tex was the best. If so, please > > > > provide a patch to update the XFig template to use that > > > > format. > > > >

Re: Insert xfig

2000-06-15 Thread Garst R. Reese
"Garst R. Reese" wrote: > > Andre Poenitz wrote: > > > > > When you find the best format, please let us know. > > > Dekel mentioned that ps_tex was the best. If so, please > > > provide a patch to update the XFig template to use that > > > format. > > > > The best option IMNSHO is the combined Te

Re: Insert xfig

2000-06-15 Thread Garst R. Reese
Andre Poenitz wrote: > > > When you find the best format, please let us know. > > Dekel mentioned that ps_tex was the best. If so, please > > provide a patch to update the XFig template to use that > > format. > > The best option IMNSHO is the combined TeX/ps version. > > Andre' > OK, xfig has

Re: Insert xfig

2000-06-15 Thread Garst R. Reese
"Asger K. Alstrup Nielsen" wrote: > > > Shucks. I've been converting them to .eps, but that means if I want to > > send the document to someone I have to send the .eps files as well or > > send the .fig files with a bunch of instructions. But its no big deal. > > I'll experiment with xfigs export

Re: Insert xfig

2000-06-15 Thread Andre Poenitz
> When you find the best format, please let us know. > Dekel mentioned that ps_tex was the best. If so, please > provide a patch to update the XFig template to use that > format. The best option IMNSHO is the combined TeX/ps version. Andre' -- It'll take a long time to eat 63.000 peanuts. Andr

Re: Insert xfig

2000-06-15 Thread Asger K. Alstrup Nielsen
> Shucks. I've been converting them to .eps, but that means if I want to > send the document to someone I have to send the .eps files as well or > send the .fig files with a bunch of instructions. But its no big deal. > I'll experiment with xfigs export options. When you find the best format, ple

Re: Insert xfig

2000-06-14 Thread Garst R. Reese
Dekel Tsur wrote: > > On Tue, Jun 13, 2000 at 05:47:18PM -0300, Garst R. Reese wrote: > > All goes well until I try to ViewPostscript, then it complains > > extensively about numbers being missing and illegal units of measure. > > teTeX-1, ImageMagik-5.2.0 > > The default behavior for a xfig fil

Re: Insert xfig

2000-06-14 Thread Dekel Tsur
On Tue, Jun 13, 2000 at 05:47:18PM -0300, Garst R. Reese wrote: > All goes well until I try to ViewPostscript, then it complains > extensively about numbers being missing and illegal units of measure. > teTeX-1, ImageMagik-5.2.0 The default behavior for a xfig file is to convert it to TeX picture

Insert xfig

2000-06-13 Thread Garst R. Reese
All goes well until I try to ViewPostscript, then it complains extensively about numbers being missing and illegal units of measure. teTeX-1, ImageMagik-5.2.0 But, it is sooo nice an idea. Garst