Angus Leeming wrote:

On Tuesday 03 February 2004 1:06 pm, Raphael Clifford wrote:


" The preview you see on the lyx screen is generated from a format
loadable by the gui-library. Either xforms or qt. Neither can load
eps files natively, so we invoke a conversion step to a loadable
format behind the scenes."
Right. I was trying to pinpoint the error by assuming that this
used convert to show the eps file in lyx.



Run "lyx -dbg graphics" from the console to see what lyx is doing with your images.



Thx. That is very interesing. Here is the output. It seems it using convert if you look at the shell script.


"Recognised Fileformat: eps
[GrahicsCacheItem::convertToDisplayFormat]
       Attempting to convert image file: /home/raph/docs/approx-pic.eps
       with displayed filename: ~/docs/approx-pic.eps
Recognised Fileformat: eps

The file contains eps format data.
Unable to convert from eps to bmp
Unable to convert from eps to gif
Unable to convert from eps to jpg
Unable to convert from eps to pbm
Unable to convert from eps to pgm
Unable to convert from eps to png
Unable to convert from eps to ppm
Unable to convert from eps to xbm
Unable to convert from eps to xpm
Converting it to ppm format.
Converter c-tor:
from_file: /home/raph/docs/approx-pic.eps
to_file_base: /tmp/lyx_tmpdir18410eIETRx/approx-pic184106RVrbT
from_format: eps
to_format: ppm
build_script ... ready (edgepath.empty())
No converter defined! I use convertDefault.sh
sh /usr/share/lyx/scripts/convertDefault.sh eps:/home/raph/docs/approx-pic.eps ppm:/tmp/lyx_tmpdir18410eIETRx/approx-pic184106RVrbT.ppm
Unrecoverable error: rangecheck in .putdeviceprops
Unrecoverable error: rangecheck in .putdeviceprops
convert: Postscript delegate failed [No such file or directory].
Image conversion succeeded.
Unable to find converted file!
"




The crucial points are these.

a) lyx preview does not work. It gives the conversion error I
mentioned in the previous email. b) View->Postscript does not work.
It gives
Error: /undefinedresult in --div--
Operand stack:
0.0 0
which is the division by zero error I reported last week.



So? This is simply saying that the eps file is a pile of junk.


Angus




That is really odd. I can't have a buggy imagemagick AND a buggy dvips on this standard fedora system can I? I should note that I can "convert" the eps file using redhat 8.0 just fine. So it seems that the eps file can't be that bad. Can you do anything with the latex file I sent you by the way? I think there might have been another misunderstanding as well. I am converting the approx-pic latex file to an eps to be included in a lyx document.

Sorry if this has been all a bit confused.

Cheers,
Raphael



Reply via email to