On 2012-01-16, Andrew Parsloe wrote:

> I've now tried your "equation editor/picture cropper" at 
> http://www.lyx.org/trac/ticket/7839 using GSview for postscript and 
> Acroreader for pdf.

> For both template files, EPS.lyx and PDF-cropped.lyx, I had to reduce 
> the \lyxformat from 416 to 413 for them to be accepted by LyX 2.0.2 on 
> my system.

The templates were written with the development version. For the Wiki,
"downgraded" variants that work with the release version would be better,
indeed.

> For both ps and pdf I tried an equation (Pythagoras' theorem, 
> a^2+b^2=c^2) and a pstricks graphic (a labelled right-angled triangle).

> Postscript: in GSview, the equation is cropped just right. That's neat. 
> I like it. The triangle however is cropped too severely, so that the 
> labels for the vertices and two of the sides are largely cropped out of 
> the picture. The cropping is targeted at the geometric stuff as if the 
> text stuff isn't there. 

This seems to be a limitation of ps2eps.
AFAIK, there is an alternative converter that works around this issue.
(But I don't know the details now.)

> PDF: Compiling with pdflatex, which I presume is what is intended, I get 
> an error message in LyX at the cropping stage:

> An error occurred while running: pdfcrop "equation.pdf" "tmpfile.out"

> Looking in the temporary directory shows the aux, log, tex, and 
> tex.dep-pdf files. The log file claims "Output written on equation.pdf" 
> but there is no equation.pdf there.


Strange.

An equation works here.

Just to be sure: do you know that pstricks does not work with pdflatex?

Could you try with a new document and View>Other formats>PDF (pdfcrop)?

If this fails, export an example to PDF and try to crop with pdfcrop on the
command line.

Günter



Reply via email to