to get rid of the problems with the ERT inset I wrote a
new LaTeX GUI, it's just the same than the preamble one
and supports also cut and paste from and to the lyx-main 
window. 
The idea was, that ERT has nothing to do with the paragraph
parameters from lyx, because it should be plain ascii text.
It's now the same than the other insets, for example:

------------------------snip
\begin_inset LatexCommand \ERT{\begin{center}
\begin{pspicture}(-4,0)(4,8)
%\psset{xunit=0.25cm,yunit=0.25cm}
\psgrid[subgriddiv=1,griddots=10,gridlabels=7pt](-4,-0.5)(4,8)
\psline[linewidth=1pt]{->}(-4,0)(+4,0)
\psline[linewidth=1pt]{->}(0,-0.5)(0,8)
\psplot[plotstyle=curve,linewidth=1.5pt]{-4}{0.9}{10 x exp}% postscript
function
\rput[l](1,7.5){$10^x$}
\psplot[plotstyle=curve,linewidth=1.5pt]{-4}{3}{2 x exp}% postscript
function
\rput[l](2.2,7.5){$e^x$}
\psplot[plotstyle=curve,linewidth=1.5pt]{-4}{2.05}{2.7183 x exp}%
postscript function
\rput[l](3.2,7.5){$2^x$}
\end{pspicture}
\end{center}
}

\end_inset 
-------------------------snip

In the lyx text you have a button like the one from ert.
maybe that's interesting, so that ert-bug-hunting may be 
have an end ... 

the new ert is under insetcommand control and has the
structure \ERT{ --- text ---}. 


Herbert

-- 
http://www.lyx.org/help/

Reply via email to