1% 2% @(#)$Header: /mm2/home/cvs/bc-src/tgif/example.tex,v 1.1 2004/06/18 23:20:49 william Exp $ 3% 4\documentstyle[12pt]{article} 5% 6\oddsidemargin=0in 7\textwidth=6.5in 8\topmargin=0in 9\textheight=609pt 10\parskip=14pt 11\setlength{\unitlength}{0.5cm} 12\begin{document} 13% 14Figure \ref{fig:psfig} is an example of a tgif \LaTeX\,\, figure printed with 15the ``psfig'' macro. As you can see, the figure fits nicely between the 16surrounding text. 17% 18\begin{figure*}[htb] 19\input{psfig} 20\centerline{\psfig{figure=an-sr-flip-flop.eps}} 21\caption{Example Tgif Diagram Printed with ``psfig'' Macro.\label{fig:psfig}} 22\end{figure*} 23% 24The bounding box seems to be pretty tight. In 25Figure \ref{fig:epsf} below, the same figure is 26generated with the ``epsf'' construct. 27% 28\begin{figure*}[htb] 29\input{epsf} 30\centerline{\epsffile{an-sr-flip-flop.eps}} 31\caption{Example Tgif Diagram Printed with ``epsf'' Macro.\label{fig:epsf}} 32\end{figure*} 33% 34All these are just trying the illustrate that the bounding boxes 35generated by tgif is pretty tight, and there's really no need for 36the ``psfile'' construct. I don't know if there are cases where 37some documentation generation software only supports the ``psfile'' 38construct, but I an putting in the example anyways. 39 40Figure \ref{fig:psfile} is an example of a tgif \LaTeX\,\, figure 41printed with the ``psfile'' macro. Notice the \\rule command. 42% 43\begin{figure*}[htb] 44\special{psfile="an-sr-flip-flop.eps" hoffset=-72 voffset=-792} 45\rule{0in}{1.1in} 46\caption{Example Tgif Diagram Printed with ``psfile'' Macro.\label{fig:psfile}} 47\end{figure*} 48% 49It is reserving a space of 1.1 inch for the figure. This can 50be figured out from the ruler within tgif. As a general rule, 51the ``psfile'' construct should be avoided. 52\end{document} 53