Thank you Paul for all your help.

Adding path to GS in lyx.bat did not solved the problem.

I have this feeling that the problem is somehow related to the postscript commands inside the figure...

I'm giving up and going back to use version 1.4.1.

Cheers
Leo

One other difference I notices is that I have the Ghostscript bin and lib directories on my system command path, and you don't. You must have them (as do I) in LyX Tools->Preferences...->Paths->PATH prefix, which LyX attaches to the command path when it shells out to a script. (In my case, they end up on the path twice, which is harmless.) I don't suppose that adding them to your path fixes the bug? (An easy way to try this on a temporary basis would be to add the line

SET PATH=C:\<path to GS>\bin;C:\<path to GS>\lib;%PATH%

to the lyx.bat file, prior to the start command.)

I have no idea how a couple of environment variables and the length of the path to the target file can be interacting, other than if they're both being written to a common buffer somewhere (which is overflowing), and that seems rather unlikely given that I would be putting more stuff in the buffer and not seeing the problem.

/Paul



Reply via email to