On 9/10/06, Georg Baum <[EMAIL PROTECTED]> wrote:
> On 9/10/06, Georg Baum <[EMAIL PROTECTED]> wrote:
> The problem is that the format epslatex separates the picture into two
> files: one with the LaTeX commands and the other one being an eps file
> with the picture itself. Thus, by inserting only the eps file, one
> misses the LaTeX content. The command
>
> \include{mypicture}
>
> given as ERT is recognized as, in truth, including two files:
> mypicture.tex and mypicture.eps. Therefore, the graphics inset (of
> LyX) seems to be useless here. Just try it to see exactly what I mean.

Sorry, I remembered you had \includegraphics in your ERT. Then indeed you
need an external inset for gnuplot. Unfortunately such an inset cannot be
part of the official LyX sources, since gnuplot has a shell command that
lets you enter arbitrary commands in a gnuplot script. If LyX had an
official gnuplot template then somebody could send you a file with a
malicious gnuplot script that would delete all your files - welcome to the
world of LyX macro viruses.

If I am correct, there is a way to escape to that security threat: do
not call Gnuplot inside LyX, and allow LyX to insert the two files
(eps+tex) without ERT (and with previewing the picture in LyX). It is
not a solution as great as the one implemented for Xfig pictures, but,
even so, it is much better than ERT.

Paul

Reply via email to