Herbert Voss wrote: > Angus Leeming wrote: > > whith the geometry-package loaded I got something like > the attached gif. The equationnumber is outside of the > workarea -> the (for the preview wrong) textwidth > from geometry was taken for the image width. > > \usepackage{geometry} > \geometry{blah ... blah} > > should be ignored in the preamble.
and cropping the image on the left side gives a better result, too. I do not understand the sense of "%03d" in the lyxpreview2ppm.sh. the patch is only for demo Herbert -- http://www.lyx.org/help/
Index: lyxpreview2ppm.sh =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/lib/scripts/lyxpreview2ppm.sh,v retrieving revision 1.1 diff -u -r1.1 lyxpreview2ppm.sh --- lyxpreview2ppm.sh 5 Jul 2002 21:24:11 -0000 1.1 +++ lyxpreview2ppm.sh 7 Jul 2002 05:46:13 -0000 @@ -65,9 +65,11 @@ ALPHA=2 fi -gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pnm -sOutputFile=${BASE}%03d.ppm \ +gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pnm -sOutputFile=${BASE}001.pnm \ -dGraphicsAlphaBit=${ALPHA} -dTextAlphaBits=${ALPHA} -r${RESOLUTION} \ ${PSFILE} + +pnmcrop -left ${BASE}001.pnm > ${BASE}001.ppm STATUS=$? EXECUTABLE="gs ${PSFILE}"; CHECK_STATUS