[Tex/LaTex] I encountered an ‘errorUnknown graphics extension: .eps.’
epserrorsgraphics
I tried to load an .eps picture, but an error occured,
errorUnknown graphics extension: .eps.
Best Answer
You are probably compiling your TEX document using pdftex (or pdflatex) while including an EPS image. This will not work. You need to convert the EPS to PDF (using something like the epstopdf package), or Distiller from Adobe Acrobat.
For more information on this type of problem, read the this UK TeX FAQ entry.
Alternatively, you may switch the compiler from pdftex to latex, which accepts EPS graphic format.
The best way around this is to never specify the graphic extension in your \includegraphics{...} command, but have both EPS and PDF versions of the file available. That will ensure that the correct type is used during compilation, as the driver will make the appropriate selection.
I had the same problem and my solution was: in "Tools -> Preferences -> Converters" consider the "LaTeX (pdflatex) -> PDF (pdflatex)" converter and set
latex=pdflatex
in "Extra flag". If this will not work, delete the converters section in your ./lyx/preferences file (in Linux) and restart LyX.
Best Answer
You are probably compiling your TEX document using
pdftex
(orpdflatex
) while including an EPS image. This will not work. You need to convert the EPS to PDF (using something like theepstopdf
package), or Distiller from Adobe Acrobat.For more information on this type of problem, read the this UK TeX FAQ entry.
Alternatively, you may switch the compiler from
pdftex
tolatex
, which accepts EPS graphic format.The best way around this is to never specify the graphic extension in your
\includegraphics{...}
command, but have both EPS and PDF versions of the file available. That will ensure that the correct type is used during compilation, as the driver will make the appropriate selection.