I am updating an old LaTeX file from the university where I work, which over the past ten years has been partly edited and contributed to by several people, using different methods to include eps files.

Some eps files are included using:


and others using


What are the differences between the two methods? Which is the recommended method to include eps files in a document compiled with pdflatex, and why?

  • 8
    The »graphicx« package with its \includegraphics command is definitely the way to go (not only for EPS files). Commented Feb 23, 2014 at 9:41
  • Do you need to put annotations on some of the EPS files? If yes then you cannot simply use \includegraphics but you need one more thing to do. Commented Feb 23, 2014 at 11:48
  • @ThorstenDonig: why?
    – malin
    Commented Feb 23, 2014 at 12:01
  • 2
    Because »epsfig« is obsolete for a long time and only a wrapper for »graphicx«. Furthermore the latter one also includes other graphics formats like JPG, PNG or PDF (depending on the used compiler). Commented Feb 23, 2014 at 12:06
  • @TheLastError -- please don't leave us in the dark. what is the "one more thing" you say needs to be done if \epsfbox is replaced by \includegraphics? Commented Feb 23, 2014 at 13:12

2 Answers 2


I'm pretty sure the graphicx package is by far the most used package for including graphics. You might want to convert the eps files to pdf using something like ghostscript or Acrobat Destiller (last I checked eps and pdflatex was not good friends).

Although if you need to include a full pdf-page in latex the package pdfpages is what you need.

  • 1
    Conversion from EPS to PDF is done "on the fly" in TeX Live out of the box and in MiKTeX by the »epstopdf« package. Commented Feb 23, 2014 at 12:07

In recent TeX distributions (starting from TeX Live 2011 if I remember correctly concerning TeX Live), the graphicx package has also the advantage of automatically converting your eps files in pdf files when needed, e.g. when you are using PDFLaTeX. The other method can't.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .