[EMAIL PROTECTED] wrote:

> Hello All,
> 
> I have installed LyXWin ((lyx-1.3.5-win32-nc.exe) on Windows 2000
> following the instructions on the LyW WikiWiki – LyX.WindowsSetup
> webpage.
> 
> Despite quite a bit of fiddling around I can’t get .eps or .pdf files to
> display within LyX when I insert them into a document. When I insert such
> a figure I get the message “Error conveting to loadable format” in the
> box where the picture should be displayed. The output DVI is fine though.
> 
> When running LyX in debug mode I can see that the problem is
> 
> C:/lyx/share/lyx/scripts/convertDefault.sh ERROR
> Unable to find file
> "C:/lyx/tmp/lyx_tmpdir1056a00432/aulogo1056a00432.ppm"

This is a weird and wonderful bug to do with the sh.exe on Windows. You
think that temp directory is C:/lyx/tmp. I think it is too. sh.exe
mysteriously uses something else (the  %TMPPATH% environment variable or
somesuch).

The fix is straightforward. Just remove the last few lines of
convertDefault.sh. They're not needed and are screwing things up here.

-# It appears that convert succeeded, but we know better than to trust
it ;-)
-# convert is passed strings in the form "FMT:FILENAME", so use the ':' to
-# delimit the two parts.
-# Note that Win32 filenames have the form 'C:\my\file',
-# so use everything from the first ':' to the end of the line.
-FILE=`echo "$2" | cut -d ':' -f 2-`
-
-test -f "$FILE" || {
-       echo "$0 ERROR"
-       echo "Unable to find file \"${FILE}\""
-       exit 1
-}
-
-echo "$0 generated file \"${FILE}\" successfully."

-- 
Angus

Reply via email to