TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

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

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

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
See also: Why can't pdflatex print EPS figures? – diabonas Sep 27 '11 at 13:08
don't forget to \usepackage{graphicx} before \usepackage{epstopdf} – yegor256 Oct 9 '14 at 9:50
yegor256 is absolutely right! – user2600959 Oct 10 '15 at 21:02
up vote 41 down vote accepted

It seems you're using graphics in the .eps format. A relatively easy way of solving this problem is loading \usepackage{epstopdf} in your preamble and compiling with pdfLaTeX as usual. This will convert any .eps graphics to .pdf first, you'll see the actual .pdf files in your directory.

share|improve this answer

Consult the wikibook on LaTeX: http://en.wikibooks.org/wiki/LaTeX/Importing_Graphics

Compiling with pdflatex
EPS can be used with the help of the epstopdf package. Please see these: http://dirkraffel.com/2007/11/19/include-eps-files-in-latex

share|improve this answer
it works, thanks – Ilya Sep 27 '11 at 13:16

Not the answer you're looking for? Browse other questions tagged or ask your own question.