Up: Including Pictures Previous: eepic picture environment

## Including PostScript code

The psfig/ and psbox packages can be used to include chunks of PostScript directly into a document. For further information about psfig/, type man psfig to see the manual page. The printed users' guide shows you how to obtain more varied results.

The usual previewing programs (xdvi, etc.) will not include the output of \psfig command in their images: a blank space will appear instead. To preview such .dvi files and see the PostScript pictures, you should use dvi2ps mythesis.dvi to obtain a PostScript version of the file (called mythesis.dvi which then can be viewed on the screen directly with the command ghostview mythesis.ps.

To use psfig, alter your \usepackage command to include psfig; e.g.

\usepackage{epsfig}
Then type

\psfig{figure=filename.ps}

inside your document to include a PostScript file called filename.ps. The complete command sequence to include the picture is:

\begin{figure}
\centerline{\psfig{figure=eye.ps}}
\caption{Eye.}
\end{figure}

Figure 3: Eye.

Processed by LaTeX2html