Re: Embed Gnuplot commands in Lyx

2016-02-16 Thread Guenter Milde
On 2016-02-16, Jürgen Lange wrote:
> Hello,
> I tried to embed Gnuplot commands in Lyx.
> The necessary package is gnuplottex.
> Because I use Miktex, I put \usepackage[miktex]{gnuplottex} in the  
> Lyx-preamble.
> With Tex-Code in Lyx-document \begin{gnuplot}[terminal=pdf] plot sin(x)  
> \end{gnuplot}, I don't get any gnuplot output.

Try to create a small LaTeX file that works and import this into LyX.
This might help to find the required raw LaTeX command(s).

Günter



Re: Embed Gnuplot commands in Lyx

2016-02-16 Thread Guenter Milde
On 2016-02-16, Jürgen Lange wrote:
> Hello,
> I tried to embed Gnuplot commands in Lyx.
> The necessary package is gnuplottex.
> Because I use Miktex, I put \usepackage[miktex]{gnuplottex} in the  
> Lyx-preamble.
> With Tex-Code in Lyx-document \begin{gnuplot}[terminal=pdf] plot sin(x)  
> \end{gnuplot}, I don't get any gnuplot output.

LyX does not "know" about any raw LaTeX - so it may be you have to export the 
file to LaTeX and then run LaTeX Gnuplot etc. "by hand".

Günter



Re: Embed Gnuplot commands in Lyx

2016-02-16 Thread Jürgen Lange

It works now.
I had to add the argument -shell-escape to the Converter syntax pdflatex  
in the Preferences.


Thanks


Am 16.02.2016, 20:16 Uhr, schrieb Guenter Milde :


On 2016-02-16, Jürgen Lange wrote:

Hello,
I tried to embed Gnuplot commands in Lyx.
The necessary package is gnuplottex.
Because I use Miktex, I put \usepackage[miktex]{gnuplottex} in the
Lyx-preamble.
With Tex-Code in Lyx-document \begin{gnuplot}[terminal=pdf] plot sin(x)
\end{gnuplot}, I don't get any gnuplot output.


LyX does not "know" about any raw LaTeX - so it may be you have to  
export the

file to LaTeX and then run LaTeX Gnuplot etc. "by hand".

Günter

gnuplot_test.pdf
Description: Adobe PDF document


Re: Embed Gnuplot commands in Lyx

2016-02-16 Thread Scott Kostyshak
On Tue, Feb 16, 2016 at 08:52:53PM +0100, Jürgen Lange wrote:
> It works now.
> I had to add the argument -shell-escape to the Converter syntax pdflatex in
> the Preferences.
> 
> Thanks

Glad you got it working. We wanted to make LyX work more seamlessly with
gnuplot. I believe that Koji made efforts towards this goal.  I wanted
to continue his work but I did not find the time and have since lost
interest. I CC Koji just in case you two want to attempt to bring those
efforts back to life.

Scott

> 
> 
> Am 16.02.2016, 20:16 Uhr, schrieb Guenter Milde :
> 
> >On 2016-02-16, Jürgen Lange wrote:
> >>Hello,
> >>I tried to embed Gnuplot commands in Lyx.
> >>The necessary package is gnuplottex.
> >>Because I use Miktex, I put \usepackage[miktex]{gnuplottex} in the
> >>Lyx-preamble.
> >>With Tex-Code in Lyx-document \begin{gnuplot}[terminal=pdf] plot sin(x)
> >>\end{gnuplot}, I don't get any gnuplot output.
> >
> >LyX does not "know" about any raw LaTeX - so it may be you have to export
> >the
> >file to LaTeX and then run LaTeX Gnuplot etc. "by hand".
> >
> >Günter




signature.asc
Description: PGP signature


Re: Embed Gnuplot commands in Lyx

2016-02-17 Thread Jürgen Lange
This is a good idea. A small solution is, to write a short manual how to  
embed Gnuplot in Lyx on the Lyx-Webpage. A disadvantage of embedding  
Gnuplot code in Lyx is, that ERT doesn't understand unicode. So it's  
impossible, to embed unicode Gnuplot code in Lyx.


Jürgen


Am 17.02.2016, 06:23 Uhr, schrieb Scott Kostyshak:


On Tue, Feb 16, 2016 at 08:52:53PM +0100, Jürgen Lange wrote:

It works now.
I had to add the argument -shell-escape to the Converter syntax  
pdflatex in

the Preferences.

Thanks


Glad you got it working. We wanted to make LyX work more seamlessly with
gnuplot. I believe that Koji made efforts towards this goal.  I wanted
to continue his work but I did not find the time and have since lost
interest. I CC Koji just in case you two want to attempt to bring those
efforts back to life.

Scott