Many graphics utilities, gnuplot or Maple for example, generate "PostScript" files which are easily recognized by the .ps or .eps extension. EPS stands for Encapsulated PostScript which is now the best-supported format for the inclusion of graphics into a LaTeX document. Both PS and EPS files are ascii (unlike DVI files) and are most easily distinguished by the inclusion of a BoundingBox specification near the top of an EPS file. (This difference is often of little interest to the user.)

To include a PostScript file into a LaTeX file called myreport.tex, here's what you should do.
• Add the line \usepackage{graphicx} to your preamble (that's the part of your document between \documentclass and \begin{document}).
• At the spot where you want to pull a file called fish01.ps into your document, use the \includegraphics command, usually within the figure environment, like this for example.

\begin{figure}[htbp]
\includegraphics[height=8cm,angle=-90]{fish01.ps}
LaTeX will print whatever you write and give your figure a number.}
\label{xyz}
\end{figure}

• LaTeX your file as usual: latex myreport.tex
• Convert the output DVI file to PostScript with dvips myreport.dvi
• Preview your document with ghostview myreport.ps
• Print with the command ljps -P(printername) myreport.ps

The caption line and the \label{xyz} above allow you to refer to your figure later with a statement like, "See Figure~\ref{xyz} on page~\pageref{xyz}."

Expressions like "height=8cm" and "angle=-90" are optional arguments to the \includegraphics command and, as with all optional arguments in LaTeX, are included within square brackets. Here are the possible optional arguments for \includegraphics.

• height: the height (above the baseline) of the graphics in any accepted TeX unit.
• totalheight: the total height of the graphics, height plus depth (the part below baseline)
• width
• origin: specifies what point to use for the rotation origin. By default, the object is rotated about its reference point: origin=c rotates about the centre.
• angle: specifies the angle of rotation, in degrees, with a counter-clockwise rotation being positive
In my experience, an angle= statement, if required, must come last in the list of arguments.

What if this doesn't work?

If this process does not work, it is likely that the file you are trying to include is not an EPS file (perhaps the BoundingBox line is missing). In this case, first try converting! The latest versions of ghostview/ghostscript, for example, offer a PS-to-EPS option under File. If you still meet without success, you can still use the outdated epsfig package which, for backward-compatibility, is included in graphicx. To use epsfig, again make sure you have \usepackage{graphicx} in the preamble and then insert something like this into your LaTeX file.

\begin{figure}[htbp]
\epsfig{file=fish01.ps, height=4cm, angle=-90}
\caption{As before, you can write something about the figure here, if you like, and label it too, if you like.}
\end{figure}

Then latex, dvips, ghostview and ljps as described above.

The possible "keys" in the \epsfig command are

• height
• width
• bbllx: The x-coordinate of the lower left-hand corner of the figure
• bblly: The y-coordinate of the lower left-hand corner of the figure
• bburx: The x-coordinate of the upper right-hand corner of the figure
• bbury: The y-coordinate of the upper right-hand corner of the figure
• angle: In degrees counting counterclockwise
• clip: