Comment 7 for bug 236785

Revision history for this message
MartinE (martin-engbers-gmx) wrote :

Hi again,

The resolution of formulae was unconnected to this bug. Adding the line "\preview_scale_factor 1.0" to the MISC SECTION of ~/.lyx/preferences solved that.

For me, instant preview worked as soon as i installed the dvipng package. However, I get the same error message that you posted from Hardy's dvipng:

"dvipng warning: at (0,-1) ignored header \special{! /DvipsToPDF { 72.27 mul Resolution div } def /PDFToDvips { 72.27 div Resolution mul } def /HyperBorder { 1 PDFToDvips } def /H.V {pdf@hoff pdf@voff null} def /H.B {/Rect[pdf@llx pdf@lly pdf@urx pdf@ury]} def /H.S { currentpoint HyperBorder add /pdf@lly exch def dup DvipsToPDF /pdf@hoff exch def HyperBorder sub /pdf@llx exch def } def /H.L { 2 sub dup /HyperBasePt exch def PDFToDvips /HyperBaseDvips exch def currentpoint HyperBaseDvips sub /pdf@ury exch def /pdf@urx exch def } def /H.A { H.L currentpoint exch pop vsize 72 sub exch DvipsToPDF HyperBasePt sub sub /pdf@voff exch def } def /H.R { currentpoint HyperBorder sub /pdf@ury exch def HyperBorder add /pdf@urx exch def currentpoint exch pop vsize 72 sub exch DvipsToPDF sub /pdf@voff exch def } def systemdict /pdfmark known { userdict /?pdfmark systemdict /exec get put }{ userdict /?pdfmark systemdict /pop get put userdict /pdfmark systemdict /cleartomark get put } ifelse }"

 I also compiled dvipng 1.10 and 1.11, and I also get the error

"dvipng warning: No GhostScript pngalpha output, cannot render raw PostScript GPL Ghostscript 8.61: Unrecoverable error, exit code 1"

For me, however, instant preview works with Hardy's dvipng package, without changing "document > parameters > document class > postcript driver".

Thanks for your help, Martin