LB wrote:
One more little experiment, if you don't mind, just to confirm
symptoms: if you comment out one of the SET commands in lyx.bat, but
replace it with a line of equal length (SET
XXX=YYYYYYYYYYYYYYYYYYYYY... with enough Xs and Ys to match the line
you commented out), does the bug move to a different image (or
disappear)?
Ok, it tried this. I commented out SET LC_ALL=en_EN. This resulted in
a different image having the preview problem.
I placed SET XXXXXX=YYYYY in lyx.bat and the preview problem moved back
to the original image. The same happens when I comment out the other
line in the lyx.bat.
I also added extra lines in lyx.bat such as SET XXXXXX=YYYYY this
however did not make any difference as far as image preview is concerned.
Another puzzling thing is that the preview problem jumps between two
specific figures eventhough I have many figures in the document and many
of them are generated with Matlab. The preview problem however never
affects figures generated with other programs.
Thanks
Leo
Do you have two installations of ghostscript on your machine?
One in a sub-directory for Matlab and another one in a sub-dir
of LyX or maybe a system-wide Ghostscript? If so, that means
if you rename the ghostscript executables, maybe they are gs.exe
and gswin32.exe, to gs.bak and gswin32.bak, under the Matlab
install of Ghostscript, then lyx.exe and lyx.bat should work
the same. Try it first with lyx.exe which you know works and if
it still works then the correct gs executable has been renamed.
Then lyx.bat will have to use the same gs executable since the
one under Matlab has been renamed and won't answer the call.
It dawned on me that Matlab might have its own gs to make eps'
Stephen
--
An ambient confluence
of mapped coherence ~
Stephen