Re: Gnuplot format & converter script

2017-06-06 Thread Scott Kostyshak
On Tue, Jun 06, 2017 at 12:51:33AM +0200, Tommaso Cucinotta wrote: > from the help message this sounds interesting, I also thought > we could have had various terminal types, and get .gp to .pdf, > to .eps, etc, albeit it's sufficient to convert to one > vectorial format, and LyX knows how to

Re: Gnuplot format & converter script

2017-06-05 Thread Tommaso Cucinotta
from the help message this sounds interesting, I also thought we could have had various terminal types, and get .gp to .pdf, to .eps, etc, albeit it's sufficient to convert to one vectorial format, and LyX knows how to get to the others. Perhaps among the most useful things, is that 1) you

Re: Gnuplot format & converter script

2017-05-25 Thread Scott Kostyshak
On Fri, May 05, 2017 at 08:03:02PM -0400, Scott Kostyshak wrote: > Tommaso, > > I found an old script from Koji for gnuplot. Is it useful now? Tommaso, No worries if you don't have time, but I just wanted to make sure you saw this. Scott signature.asc Description: PGP signature

Re: Gnuplot format & converter script

2017-05-05 Thread Scott Kostyshak
On Fri, May 05, 2017 at 08:35:48AM +0200, Tommaso Cucinotta wrote: > On 04/05/2017 11:53, Scott Kostyshak wrote: > > > as a consequence, I came up with the attached patch that solves the > > pushed that anyway -- even if copying with images and their conversion is > desired, we shouldn't need

Re: Gnuplot format & converter script

2017-05-05 Thread Scott Kostyshak
On Thu, May 04, 2017 at 12:54:47AM +0200, Tommaso Cucinotta wrote: > On 03/05/2017 15:00, Scott Kostyshak wrote: > > Tommaso, I'm still curious if you are planning to implement the gnuplot > > patch for 2.3.0? Or perhaps you already did and I missed it? > > > > The reason I ask is that time is

Re: Gnuplot format & converter script

2017-05-05 Thread Tommaso Cucinotta
On 04/05/2017 11:53, Scott Kostyshak wrote: as a consequence, I came up with the attached patch that solves the pushed that anyway -- even if copying with images and their conversion is desired, we shouldn't need dryrun then, should we ? T.

Re: further add-ons for 2.3.0 ? (was: Re: Gnuplot format & converter script)

2017-05-04 Thread Kornel Benko
Am Donnerstag, 4. Mai 2017 um 01:06:44, schrieb Tommaso Cucinotta > As we're on this, a few other things I had in my tommaso/master [1], out of > which: > I'd really love to have 3)... > about 2) I'm stuck with recurring to Emacs-editing the first line of a .lyx > file every

Re: Gnuplot format & converter script

2017-05-04 Thread Tommaso Cucinotta
On 04/05/2017 11:53, Scott Kostyshak wrote: Assuming we do want to embed the picture on the clipboard, the next but I don't think any of this is actually working, copying from an inset containing a real image file (.jpg) into LibreOffice, it just inserts an XML header line, along with a

Re: Gnuplot format & converter script

2017-05-04 Thread Scott Kostyshak
On Thu, May 04, 2017 at 07:52:00AM +0200, Tommaso Cucinotta wrote: > On 04/05/2017 01:36, Scott Kostyshak wrote: > > Works well! I found what I think is unexpected behavior: if I select the > > graphics inset (e.g. after I have followed your instructions and clicked > > on "run" and everything

Re: Gnuplot format & converter script

2017-05-03 Thread Tommaso Cucinotta
On 04/05/2017 01:36, Scott Kostyshak wrote: Works well! I found what I think is unexpected behavior: if I select the graphics inset (e.g. after I have followed your instructions and clicked on "run" and everything looks good), and copy it, I am presented with the authorization dialog. [...] Can

Re: further add-ons for 2.3.0 ? (was: Re: Gnuplot format & converter script)

2017-05-03 Thread Scott Kostyshak
On Thu, May 04, 2017 at 01:06:44AM +0200, Tommaso Cucinotta wrote: > As we're on this, a few other things I had in my tommaso/master [1], out of > which: > I'd really love to have 3)... Is it polished? Is there a trac ticket for this one? Or an archived discussion? > about 2) I'm stuck with

Re: Gnuplot format & converter script

2017-05-03 Thread Scott Kostyshak
On Thu, May 04, 2017 at 12:54:47AM +0200, Tommaso Cucinotta wrote: > On 03/05/2017 15:00, Scott Kostyshak wrote: > > Tommaso, I'm still curious if you are planning to implement the gnuplot > > patch for 2.3.0? Or perhaps you already did and I missed it? > > > > The reason I ask is that time is

further add-ons for 2.3.0 ? (was: Re: Gnuplot format & converter script)

2017-05-03 Thread Tommaso Cucinotta
As we're on this, a few other things I had in my tommaso/master [1], out of which: I'd really love to have 3)... about 2) I'm stuck with recurring to Emacs-editing the first line of a .lyx file every time I face that issue :-)... just pushed 1), needs to be tried by someone guess 4) might

Re: Gnuplot format & converter script

2017-05-03 Thread Tommaso Cucinotta
On 03/05/2017 15:00, Scott Kostyshak wrote: Tommaso, I'm still curious if you are planning to implement the gnuplot patch for 2.3.0? Or perhaps you already did and I missed it? The reason I ask is that time is running out to get features into 2.3.0 before we should focus completely on bug

Re: Gnuplot format & converter script

2017-05-03 Thread Scott Kostyshak
On Sun, Mar 12, 2017 at 11:28:27PM -0400, Scott Kostyshak wrote: > On Fri, Nov 04, 2016 at 11:51:55AM +0100, Tommaso Cucinotta wrote: > > On 04/11/2016 10:31, Jean-Marc Lasgouttes wrote: > > > > enable the feature. Also, I guess that integration of external materials > > > > suffers of similar

Re: Gnuplot format & converter script

2017-03-12 Thread Scott Kostyshak
On Fri, Nov 04, 2016 at 11:51:55AM +0100, Tommaso Cucinotta wrote: > On 04/11/2016 10:31, Jean-Marc Lasgouttes wrote: > > > enable the feature. Also, I guess that integration of external materials > > > suffers of similar security risks. > > Another big hole is Sweave/knitr. > > so, guess we

Re: Gnuplot format & converter script

2016-11-04 Thread Pavel Sanda
Jean-Marc Lasgouttes wrote: >> Are we sure a bomb-virus .lyx file is not already possible as of the >> nowadays LyX features :-) ? > > The solution is probably to mark some converters or templates as > "dangerous" and show warnings to the user the first time they are used > (maybe on a per

Re: Gnuplot format & converter script

2016-11-04 Thread Tommaso Cucinotta
On 04/11/2016 10:31, Jean-Marc Lasgouttes wrote: enable the feature. Also, I guess that integration of external materials suffers of similar security risks. Another big hole is Sweave/knitr. so, guess we deserve a TT: https://www.lyx.org/trac/ticket/10481 T.

Re: Gnuplot format & converter script

2016-11-04 Thread Jean-Marc Lasgouttes
Le 04/11/2016 à 10:22, Tommaso Cucinotta a écrit : Guess one could try to filter out execution of external commands before sending them to gnuplot, within the gnuplot2pdf.py, but that might limit functionality (should catch the !cmd syntax, but also the plot "< cmd" syntax, with the latter one

Re: Gnuplot format & converter script

2016-11-04 Thread Tommaso Cucinotta
On 03/11/2016 23:02, Pavel Sanda wrote: How your patch deals with scripts like "! rm -rf *" ? At the moment, I'm not sure what the current directory would be, for such a command, if it's the temporary directory where LyX is doing the temp conversions, or the current working directory for the

Re: Gnuplot format & converter script

2016-11-03 Thread Pavel Sanda
Tommaso Cucinotta wrote: > Comments welcome, thanks! How your patch deals with scripts like "! rm -rf *" ? I hope I don't need to write you shouldn't try the snippet above ;) Pavel

Gnuplot format & converter script

2016-11-03 Thread Tommaso Cucinotta
Hi, the patch below [1] allows me to: -) insert gnuplot scripts within a LyX document, just as I can add a .dia, .fig or .odg diagrams -) auto-converts the generated output for on-screen rendering, or for .ps or .pdf output, as needed -) allows me to right-click on the on-screen picture and