# Latex error. Unknown graphics extension: eps [duplicate]

Possible Duplicate:
I encountered an 'errorUnknown graphics extension: .eps.'

I have the error like in the title. I found some pages on the web with a solution to this problem. They use to say that compiling should be not LaTeX->pdf but LaTeX->ps->pdf. How can it be done, or maybe there is another solution for the problem?

-

## marked as duplicate by diabonas, Alan Munn, Stefan Kottwitz♦Sep 27 '11 at 13:40

pdfLaTeX only accepts .pdf, .png and .jpg graphics. With recent TeX Live (2010, 2011) or MiKTeX (2.9) versions, automatic EPS-to-PDF conversion takes place when an .eps file is available. What TeX system do you use? –  Joseph Wright Sep 27 '11 at 13:03
–  diabonas Sep 27 '11 at 13:08
don't forget to \usepackage{graphicx} before \usepackage{epstopdf} –  yegor256 Oct 9 '14 at 9:50