\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}