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

This question already has an answer here:

The title stands for itself.

If it is not possible, how does LaTeX import an EPS file using \includegraphics?

share|improve this question

marked as duplicate by Papiro, Christian Hupfer, Masroor, Henri Menke, percusse Aug 19 '14 at 10:53

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.

Quite doable, of course. Are we allowed to use miniltx/eplain? – Joseph Wright Dec 1 '12 at 22:18
@JosephWright Whatever it takes :D – hos Dec 1 '12 at 22:25
The reason for asking is that you can of course copy-paste the code, but the LaTeX graphics does some work to do the inclusion and it's not really that useful to repeat this. – Joseph Wright Dec 1 '12 at 22:26
up vote 10 down vote accepted

There is a package epsf.tex by Tom Rokicki. Try

\input epsf



Reading the file epsf.tex (in my system it is /usr/local/texlive/2012/texmf-dist/tex/generic/epsf/epsf.tex) will give you an insight into the way TeX works with postscript graphics.

share|improve this answer

The LaTeX package graphicx also can be used in plain TeX with the help of miniltx.tex. For driver dvips.def there is already a TeX file that can be loaded:

\input graphicx.tex

The file graphicx.tex contains:

\input miniltx

\input graphicx.sty


Usually the TeX distribution has an intelligent graphics.cfg that can detect some of the drivers (pdfTeX/LuaTeX, XeTeX) and sets a default driver (usually dvips) otherwise, then

\input miniltx.tex
\input graphicx.sty

would be enough and the the driver definition is only needed, if other DVI drivers are used. (Also other LaTeX packages can be used in plain TeX, e.g. ifpdf, ifxetex, ...).

share|improve this answer

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