%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Illustrates basic use of epsf package for including an % encapsulated postscript file in a LaTeX document. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \documentclass {article} \usepackage{epsf} \usepackage{verbatim} % \begin{document} The following figure contains an EPS file that was generated using the following command sequence \begin{verbatim} % xwininfo % import -compress jpeg -quality 100 -window 0x260000f figure.jpeg % convert figure.jpeg figure.ps \end{verbatim} \begin{figure}[h] \centerline{\epsfxsize=9cm\epsffile{figure.ps}} \caption{This figure contains an EPS file.} \label{fig:generic} \end{figure} Note that the {\tt xwininfo} command is used to retrieve the {\tt X} identifier of the window ({\tt 0x260000f}) that is to be ``captured'' using the {\tt import} command. % \end {document}