Hi jorgen, > I am not sure if this is what you are looking for. It seems to me if Lyx > does not find a defined converters for a certain image format it tries > to use the convertDefault.sh. For me this causes windows xp to pop up a > dialog to specify the program to execute the shell script. To avoid > using the script I added the following lines to the prefrences. > (located in system at D:\Documents and > Settings\Administrator\.lyx\preferences) convertDefault.sh is apparently called in my setup. At least that's what I think looking at the log. There's no pop up window asking me to specify any program. It's executed (?) and calls convert.exe which calls gswin32c.exe as it should be. I cannot execute the command "convert test.eps test.ppm" on the command line (same error as lyx shows), that's why I thought it must be an ImageMagick problem.
> \converter "eps" "ppm" "convert $$i $$o" "" > \converter "jpg" "eps" "convert $$i $$o" "" > \converter "png" "eps" "convert $$i $$o" "" Adding these three lines doesn't solve the problem. The error message remains the same. Again, convert.exe from ImageMagick is executed which can't correctly cooperate with gswin32c.exe. The "lyx -dbg graphics" command again shows --snip-- Setting debug level to graphics ... Recognised Fileformat: eps [GrahicsCacheItem::convertToDisplayFormat] Attempting to convert image file: W:/Documents/umichpaper/comment-refere e/approxseries1.eps with displayed filename: W:/Documents/umichpaper/comment-referee/approxs eries1.eps Recognised Fileformat: eps The file contains eps format data. Unable to convert from eps to bmp Unable to convert from eps to pbm Unable to convert from eps to pgm Unable to convert from eps to png Converting it to ppm format. Converter c-tor: from_file: W:/Documents/umichpaper/comment-referee/approxseries1.ep s to_file_base: C:/temp/lyx_tmpdir3596a04016/approxseries13596a04016 from_format: eps to_format: ppm build_script ... ready! Conversion script: -------------------------------------- #!/bin/sh infile="W:/Documents/umichpaper/comment-referee/approxseries1.eps" infile_base="W:/Documents/umichpaper/comment-referee/approxseries1" outfile="C:/temp/lyx_tmpdir3596a04016/gconvert03596a04016.ppm" convert ${infile} ${outfile} || { 'rm' -f ${outfile} exit 1 } if [ ! -f ${outfile} ]; then if [ -f ${outfile}.0 ]; then 'mv' -f ${outfile}.0 ${outfile} 'rm' -f ${outfile}.? else exit 1 fi fi fromfile=${outfile} tofile="C:/temp/lyx_tmpdir3596a04016/approxseries13596a04016.ppm" 'mv' -f ${fromfile} ${tofile} || { 'cp' -f ${fromfile} ${tofile} || { exit 1 } 'rm' -f ${fromfile} } -------------------------------------- AFPL Ghostscript 8.11 (2003-08-16) Copyright (C) 2003 artofcode LLC, Benicia, CA. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Error: /undefinedfilename in (files\\gs\\gs8.11\\bin\\gswin32c.exe) Operand stack: Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval- - 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- fa lse 1 %stopped_push Dictionary stack: --dict:1104/1123(ro)(G)-- --dict:0/20(G)-- --dict:69/200(L)-- Current allocation mode is local Last OS error: No such file or directory AFPL Ghostscript 8.11: Unrecoverable error, exit code 1 AFPL Ghostscript 8.11 (2003-08-16) Copyright (C) 2003 artofcode LLC, Benicia, CA. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Error: /undefinedfilename in (files\\gs\\gs8.11\\bin\\gswin32c.exe) Operand stack: Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval- - 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- fa lse 1 %stopped_push Dictionary stack: --dict:1104/1123(ro)(G)-- --dict:0/20(G)-- --dict:69/200(L)-- Current allocation mode is local Last OS error: No such file or directory AFPL Ghostscript 8.11: Unrecoverable error, exit code 1 c:\program files\imagemagick-5.5.7-q16\convert.exe: DPS library is not available (W:/Documents/umichpaper/comment-referee/approxseries1.eps). Image conversion failed. Unable to find converted file! --snip-- What I am puzzled about is that - even though I added the /converter lines to preferences in "C:\Documents and Settings\[username]\.lyx\preferences" - some shell script is invoked ("build_script ... ready!..."). A shell script can't be run under WinXP. But that can't explain why ghostscript fails (only that some files are not copied to the right places). > The first line solves the problem of viewing eps figures inside lyx. > The others are necessary for viewing in lyx and converting from jpg and > png figures to eps which is used by Latex to create the dvi file. Never tried to use jpg and others. I just need to make the vector graphics work. What's your ImageMagick and ghostscript config? Thx for your reply. -- Ben Liesfeld