Giuseppe Pagnoni wrote:
Dear Paul,thank you very much for your comments. It is quite weird: if I export my file prova.lyx in latex (pdflatex or plain) and run latex prova.tex, the dvi file shows the picture correctly, and of course the picture is kept through the chain of dvips and ps2pdf; if I, however, try to preview the document in LyX or export it directly to pdf (ps2pdf), the image does not appear. Looking at the output in the shell window I see the message: dvips: Could not find figure file /home/giuseppe/tmp//beckmann2005.eps; continuing which is puzzling given that the file is definitely there: ls /home/giuseppe/tmp//beckmann2005.eps /home/giuseppe/tmp//beckmann2005.eps I noticed the use of the double slash in front of the eps file name, but that should not be a problem, right? The document I am testing this on is an "article" with the command \usepackage{graphicx} in the preamble, and a single ERT box containing the command: \includegraphics[scale=0.2]{beckmann2005} where the image beckmann2005.eps is contained in the local directory. I am attaching in the following my prova.lyx file, which may contain useful information. Thank you very much for your help, I truly appreciate it but please do not feel obliged to reply if this takes up too much of your time. best regards giuseppe
Oops -- answered out-of-band, forgot to check the list first to see if the message was posted here.
Short synopsis (for archival purposes): The test doc works fine for me using LyX 1.4.4 on Win XP Home. I don't see the double slash causing problems (it didn't for me). Best guess (and I freely admit it's shooting from the hip) is a permissions problem. Since running the latex - dvips - ps2pdf sequence manually worked, and ls found the image file, this would seem to imply that LyX is running dvips under a different account than the user's account (and, particularly, one that's not allowed to read the EPS file).
/Paul
