University of Texas at AustinWireless Networking and Communications Group
How to include EPS files
Personal toolsLog in
 

From LINC

Because of the way that the pdf file is generated by pdflatex, eps files do not get included properly (dvips does handle eps properly, I guess). In any case, the following steps will get your eps file in your document:

  1. Put both a pdf and eps version of the figure in the directory. To create a pdf version from the eps, run pstopdf file.eps. Two caveats:
    • It would be nice if you could just directly save a pdf, but chances are the program will try to encapsulate your figure in an entire 8.5x11 page. pstopdf makes a fit-to-size pdf.
    • For whatever reason, pstopdf worked but epstopdf didn't. Go figure. So, just use pstopdf.
  2. In your latex, use the following syntax. Note that by leaving off the extension, your pdf-converter will guess the extension it can understand -- be it eps or pdf. Hence, it should be portable!
\include{graphicx}
...
\begin{figure}[t]
\centering
\includegraphics{filenamewithnoext}
\caption{Some caption} \label{fig:whatever}
\end{figure}