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? 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? Can the script find it or 
does it find the Win32 system utility by the same name? Assuming that 
you're invoking the correct convert, can it find the gs executable?

If the answer to any of these is 'no', then it may be easiest to just 
define your own eps->png converter using the preferences dialog. It 
should result in something like this being added to your 
.lyx/preferences file:

\converter "eps" "png" "my_ps2png $$i $$o" ""

FWIW, I add my my_ps2png shell script. You might find it useful. You 
might not.

-- 
Angus

Attachment: my_ps2png
Description: application/shellscript

Reply via email to