Your starting idea seems the easiest place to start.
LyX was configured with the system GS. It is now going
to use the matlab gs. Does the matlab gs need to be put
in the beginning of Path_prefix? Reconfigure/Restart?

[SET LC_ALL=en_EN] I think that stands for Locale.
I suggested changing that entry in the 1.4.2 lyx.bat
to SET LANG=en_EN because I think Leo said both
Lyx.exe and lyx.bat work for all images in 1.4.1

I set PATH in lyx to point to Matlab gs. I renamed gs.exe files in Cygwin and gswin32 files in gs8.14 directories, so that the only gs I have is in Matlab directory. After reconfigure and restart, I get the same preview problem (also when lyx.bat has LANG=en_EN). I have tried this with lyx.bat and lyx.exe. The only difference between lyx.bat and lyx.exe is that the preview problem jumps to different figures (all generated in Matlab).

This idea and your first approach seem to be less
complex, faster, and just as likely to be revealing?
We are expecting the matlab gs to work in all cases?!

I'm not sure whether Matlab uses gs.exe to generate the ps files because after renaming gs.exe in the Matlab directory, Matlab still managed to genereate the ps file.
BTW in Matlab I use commands:
print -depsc2 -r300 -f6 C:\figname.ps
print -depsc -r300 -f6 C:\figname.ps
to generate ps files. I also changed the .ps to .eps. Another way of generating figures in Matlab is by using File menu. All of these methods seem to make no difference as far as preview of the figures is concerned.

I have renamed all gs*.exe programs I could find on my computer (including the once in the hidden directories) with old_gs*.exe. Lyx still previews most figures (.ps and .bmp) ok with the exception of the once that give me grief. Can the system track changes to the files names??? I did not think so. But if it does not, how can Lyx preview figures?

I'm tired of this random problem. I think I have to live with it until something else I install in the future that will make things either better or worse...

Leo

Reply via email to