Luca Carlon wrote:
Hi everyone! I have a document with many graphic files in eps format.
When I try to generate the PDF using pdflatex, I get many occurrences of
the following error:
Latex error: unknown graphics extension: .eps.
The PDF is created without errors with ps2pdf. I tried some of these
files in a new lyx file alone, and pdflatex works correctly as well.
Any idea what there could be wrong? I tried on both MacOSX and Linux
Kubuntu 9.10.
Thanks!
It works on debian linux with lyx 1.6.4, so check if you have necessary
software. Also check that the converter is found in the PATH, otherwise
LyX won't find it.
Checking in Tools->Preferences, I see that EPS is listed as a vector
graphics format, and under "converters", the converter is listed as
EPS->PDF(ps2pdf): epstopdf --outfile=$$o $$i
If you have the same, check that "epstopdf" is found if you give the
command on the command line. If that works, run LyX from the command
line and see if it works that way. LyX starting from a window manager
menu / icon may theoretically operate with a different PATH where
epstopdf cannot be found.
Strangely, the converter is only for the format PDF(ps2pdf). When
pdflatex is used, the target format is PDF(pdflatex), not PDF(ps2pdf).
It works anyway for me. As an experiment, you may want to create a new
converter:
from EPS to PDF(pdflatex). Just copy everything from the
EPS->PDF(ps2pdf) converter.
Helge Hafting