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.

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

Reply via email to