\begin{figure}
\hrule
Nice Postscript, isn't it?
\begin{center}
\IfFileExists{graphicx.sty}{
\includegraphics{body.eps}
}{
Sorry, package \texttt{graphicx} not present.
}
\end{center}
Same, a little bit smaller:
\begin{center}
\IfFileExists{graphicx.sty}{
\includegraphics[scale=.5]{body.eps}
}{
Sorry, package \texttt{graphicx} not present.
}
\end{center}
\caption{\label{fig-1}This is a nice floating figure} \\Label是方便调用,以便再修改的时候随之更改。
\hrule
\end{figure}