Nicolas Ferr� wrote:
> Again ... I just tried to manipulate the
> lyxpreview2bitmap.sh script and found a strange (to me) character on
> the line:
>
> ${GS} -q -dNOPAUSE -dBATCH -dSAFER \
> -sDEVICE=${GSDEVICE} -sOutputFile=${BASE}%d.${GSSUFFIX} \
> -dGraphicsAlphaBit=${ALPHA} -dTextAlphaBits=${ALPHA} \
> -r${RESOLUTION} ${PSFILE} ||
>
> What does exactly mean this %d ???
It means that if you pass lyxpreview2bitmap.sh a latex file
0lyxpreview.tex containing 5 latex snippets, then ghostscript will
output files
0lyxpreview1.ppm
0lyxpreview2.ppm
0lyxpreview3.ppm
0lyxpreview4.ppm
0lyxpreview5.ppm
> Anyway, after having cancelled this strange thing, the script
> generates well the ppm file. However, still no output. I checked my
> preferences and for ppm I have selected display from imagemagick.
> Another thing, having written a simple $a+b$ math inset, if I click
> in the lyx window I get now a crash. Re-writting the %d, it does not
> crash, I checked 20 times.
>
> Any idea now ?
Could you post me your 0lyxpreview.tex file? (It may help to comment
out the lines invoking 'rm'.)
--
Angus