Angus Leeming wrote:

Raphael Clifford wrote:



I know this has been asked a number of times so I apologise if I
have missed the answer that is relevant to me but I get

"Error converting to loadable format" when I insert an eps file into
a lyx document.

I am starting to think  there may be a problem with latex, dvips or
convert.  Here is what I have done

latex approx-pic.tex
dvips approx-pic -E -o approx-pic.eps

I then tested by hand (assuming that is roughly what lyx does)

convert approx-pic.eps pic.jpg



You're confused.


1. latex can handle eps files fine. No conversin needed.
2. pdflatex requires either pdf files (preferable as they retain the vector graphics info) or png/jpg files (bitmapped versions of the oiginal).
3. 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.




and I get





Unrecoverable error: rangecheck in .putdeviceprops
Unrecoverable error: rangecheck in .putdeviceprops
convert: Postscript delegate failed [No such file or directory].





What should I do?



As stated above, you don't need any conversion step to enable the latex compiler to handle eps files. More generally, if you believe that your version of convert is broken then I guess you should file bug report with either Fedora or ImageMagick.


Incidentally, does $ gs approx-pic.eps
work?




Thanks for the reply. I think we must have misundestood each other. 1) I know latex can handle eps files. I ran the steps I showed to try to debug the lyx problem. However see below...
2) I'm not using pdflatex at all. I am using View->Postscript in lyx
3)


" 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.

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
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1061/1123(ro)(G)-- --dict:0/20(G)-- --dict:92/200(L)-- --dict:131/300(L)-- --dict:39/200(L)--
Current allocation mode is local
GNU Ghostscript 7.07: Unrecoverable error, exit code 1"



which is the division by zero error I reported last week.



Cheers, Raphael









Reply via email to