Angus Leeming <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]:

> Paul A. Rubin wrote:
>> On my system, I can see EPS files in DVI output but not within LyX. 
>> If I'm reading the output in the DOS window correctly, the problem
>> is the dreaded space in C:\Program Files (under which I have
>> Ghostscript
>> installed).  Short of uninstalling GS, reinstalling in a space-free
>> path, and reconfiguring LyX (always an adventure on Win32), I'm not
>> sure how to
>> fix this.  I can't find where LyX is getting the path from -- it's
>> not the Windows system path, because I eliminated the space there,
>> and it's not from lyxrc.defaults, which is silent about GS.
> 
> I find that hard to believe. Latex has problems with spaces in file 
> names. Other utilities should be Ok, especially since you're unlikely 
> to refer to the gs executable using a hard-coded path. Rather you're 
> going to rely on some PATH environment variable to search certain 
> directories for it. Dunno what the variable is called in Win-World.
> 
> Moreover, unless you're an 'unusual' Windows user, you're using the 
> default convertDefault.sh script, right?

I am an unusual Windows user -- I hold the world's indoor record for 
crashes -- but I am in fact using the convertDefault.sh script.

The space in the path may turn out to be a red herring.  First of all, the 
script was able to start gs.  What happened on a test document with a 
single EPS image was that I got two errors beginning with 

Error: /undefined in "Files\\gs8.00\\bin\\gswin32c.exe"

where gswin32c.exe was in fact installed in C:\Program Files\gs8.00\...  I 
interpreted this as meaning something (gswin32.exe?) was choking on the 
space in "Program Files", but I'm not positive about that.  Those two error 
messages were followed by one from ImageMagick bemoaning "DPS library is 
not available".

> Run lyx -dbg graphics from 
> the console to check.
> 
> That script uses ImageMagick's convert utility to perform the 
> conversion. Do you have this installed?

Yes.

> Can the script find it or 
> does it find the Win32 system utility by the same name?

It finds the ImageMagick convert utility.

> Assuming that 
> you're invoking the correct convert, can it find the gs executable?

Yes.

Now the plot thickens.  I tried converting my image from a command prompt, 
and got the same three error messages.  So I decided to upgrade Ghostscript 
and in the process move it from the Program Files directory tree to C:\gs
\... (with no spaces in the path).  I can now convert the image to PPM from 
the command prompt, but LyX still cannot convert it.  I get the same three 
error messages, except the path info in the first two is now replaced with 
a few garbage characters.  That is, I get 

AFPL Ghostscript 8.13: Unrecoverable error, exit code 1
Error: /undefined in +-+�?

twice (not exactly those characters, but close enough), followed by a stack 
dump each time, and then

AFPL Ghostscript 8.13: Unrecoverable error, exit code 1
c:\program files\imagemagick-5.5.7-q16\convert.exe: DPS library is not 
available
 (C:/LyX/Documents/MGT805/matching.eps).

-- Paul

Reply via email to