How to incoporate Postscript files in LaTeX

LaTeX can incorporate Postscript or Encapsulated Postscript files, using the psfig LaTeX style package.  In order to use psfig one must add the following line at the beginning of the .tex file.

\usepackage{psfig}

and then include the following lines in the text. For example,

\begin{figure}[tb]
\centerline{
\psfig{figure=grf1.ps,height=3.5in}
\psfig{figure=grf2.ps,height=3.5in}
}
\caption{Realisation of a Gaussian Random Field Model}
\end{figure}

Alternatively, you can use the command includegraphics for this. Load the package with the command

\usepackage[dvips]{graphicx}

at the beginning of the .tex file, and then use includegraphics to include the graphic. For example,

\begin{figure}[tb]
\centerline{
\includegraphics[width=3.5in]{grf1.ps}
\includegraphics[width=3.5in]{grf2.ps}
}
\caption{Realisation of a Gaussian Random Field Model}
\end{figure}

These commands read in the user's Postscript files grf1.ps and grf2.ps, and place them in the text with the caption ``Realisation of a Gaussian Random Filed Model".

The programs gnuplot and jgraph can be used to generate Encapsulated Postscript graphs from numeric data. The latter program is specifically designed for use with LaTeX, while gnuplot has 3-D capabilities not in jgraph. For drawing pictures, the xfig program also generates Encapsulated Postscript.

If you only have a Postscript graphic (generated by common public-domain Unix programs such as xpaint, gimp and R), you can try to convert it to Encapsulated Postscript by using the ps2epsi program which comes with the newer versions of the Ghostscript package available on  most Unix/Linux systems.