[Tex/LaTex] Inserting an image in plain TeX

graphicsplain-tex

I used the OzTeX implementation of TeX, also I used to typeset my docs in plain TeX, not LaTeX for me, so I had no problem to insert an image using the OzTeX, now I'm back to TeX docs, am using the TeXWorks frontend, but I can't insert an .eps image file, it seems the \includegraphics macro its only for LaTeX, so I can't use it, any idea on how to insert an image when using plain TeX?

Best Answer

By far the easiest approach here is to use miniltx to allow you to use LaTeX's graphics package with plain TeX:

\input miniltx %
\input graphicx.sty %
\includegraphics{<filename>}
\bye

or

\input graphicx.tex %
\includegraphics{<filename>}
\bye

(See comments for the minor differences here.)

The only thing you will need to watch is that TeXworks is designed around a PDF-based workflow. Thus you will need to convert your .eps files to .pdf format using epstopdf and then use pdfTeX in TeXworks. (In LaTeX, there is now automatic conversion method from .eps to .pdf files, but this does not apply to plain TeX.)

Related Question