On Sat, Jan 14, 2012 at 10:44 PM, Andrew Parsloe <apars...@clear.net.nz> wrote:
> LyX 2.0.2 with its View other formats>PDF(ps2pdf) allows a LyX document with
> pstricks graphics to be compiled to pdf. That's a plus over LyX 1.6.10. But
> it has also come at a cost. In LyX 1.6.10 (and earlier versions) I could
> create a document containing only an ERT inset and pstricks code like so:
>
> \begin{TeXtoEPS}
> \pspicture*(4,3)
> \pspolygon(.5,.5)(3.5,.5)(.5,2.5)
> \endpspicture
> \end{TeXtoEPS}
>
> Provided the preamble included
>
> \usepackage{pstricks}
> \usepackage{pst-eps}
>
> this would compile with the View PS button to a postscript graphic contained
> in a bounding box of just a few centimetres per side. In LyX 2.0.2 the
> pst-eps package and its TeXtoEPS environment seem to be ignored. The graphic
> compiles okay but the bounding box is now the whole page.
>
Not exactly an answer to your question, but this may help you [1]: a
humble attempt to add 'standalone equation editor' capabilities in
LyX. The method allows to generate cropped EPS and PDF documents
containing just about anything that LyX can output.

Regards
Liviu

[1] http://www.lyx.org/trac/ticket/7839



> It would be very nice, developers, if the 1.6.10 behaviour could be restored
> (without losing the ps2pdf ability of course). I've found it extremely
> valuable to be able to create postscript graphics in LyX like this which are
> no bigger than they need to be. I realise I can crop a whole page graphic
> (in IrfanView for instance) to its "natural" size, but this should really be
> done at source, as is possbile with 1.6.10.
>
> Andrew



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail

Reply via email to