Koji Yokota wrote:
Angus,

Thank you for your advice.

I'm using version 1.3.5 (actually it's CJK-Lyx-1.3.5 but I don't think CJK patch is related to this problem) and I'm using the temporary directory (/tmp).

Looking at the debug information of 'lyx -dbg graphics', it seems that the created script for the conversion of image does not specify the output file. Here is the content of the script (+debug info):

PreviewLoader::finishedInProgress(1): processing failed for /usr/local/share/lyx/scripts/lyxpreview2ppm.py /tmp/lyx_tmpdir79676GFtWvQ/lyx_tmpbuf0/0lyxpreview.tex 109 ppm
Recognised Fileformat: eps

Ahhhhh. This script doesn't do what you think it does...

So, it seems the phenomenon I observed is a natural consequence in my current environment.
Do I need to modify lyxpreview2ppm.py?

lyxpreview2ppm.py is meant to be used to create WYSIWYG-type previews of things like Math equations. See http://wiki.lyx.org/LyX/InstantPreview. The process of generating these images is rather involved, requiring a special LaTeX package, preview.sty, together with a conversion from LaTeX document -> dvi file -> (possibly lots and lots of) bitmap images of the math equations.

If you want to simply view your .eps images within LyX, I recommend that you remove and explicit converter .eps -> .ppm (or .png). The converter mechanism will then fall through to the use of scripts/convertDefault.sh which is simply a wrapper for ImageMagick's "convert" utility. Install that and all should work perfectly.

Let me know if you continue to have problems.

Angus

Reply via email to