Hullo Liviu,
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.
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. I used:
\pspicture*(4,3)
%draw the triangle
\pspolygon(.5,.5)(3.5,.5)(.5,2.5)
%draw the right angle
\psline[linewidth=.5pt](.7,.5)(.7,.7)(.5,.7)
%label vertices and sides
\uput{1pt}[0](3.5,.5){A}
\uput{2pt}[90](.5,2.5){B}
\uput{3pt}[180](.5,.5){C}
\uput{2pt}[180](.5,1.5){$a$}
\uput{2pt}[270](2,.5){$b$}
\uput{2pt}[45](2,1.5){$c$}
\endpspicture
in an ERT inset with \usepackage{pstricks} in the preamble of a LyX
document based on the EPS.lyx template.
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.
Andrew