File: example.tex

package info (click to toggle)
tgif 1%3A4.2.5-3
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 29,352 kB
  • sloc: ansic: 186,442; sh: 10,884; perl: 2,956; awk: 487; makefile: 97
file content (52 lines) | stat: -rw-r--r-- 1,747 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
%
% @(#)$Header: /mm2/home/cvs/bc-src/tgif/example.tex,v 1.1 2004/06/18 23:20:49 william Exp $
%
\documentstyle[12pt]{article}
%
\oddsidemargin=0in
\textwidth=6.5in
\topmargin=0in
\textheight=609pt
\parskip=14pt
\setlength{\unitlength}{0.5cm}
\begin{document}
%
Figure \ref{fig:psfig} is an example of a tgif \LaTeX\,\, figure printed with
the ``psfig'' macro.  As you can see, the figure fits nicely between the
surrounding text.
%
\begin{figure*}[htb]
\input{psfig}
\centerline{\psfig{figure=an-sr-flip-flop.eps}}
\caption{Example Tgif Diagram Printed with ``psfig'' Macro.\label{fig:psfig}}
\end{figure*}
%
The bounding box seems to be pretty tight.  In
Figure \ref{fig:epsf} below, the same figure is
generated with the ``epsf'' construct.
%
\begin{figure*}[htb]
\input{epsf}
\centerline{\epsffile{an-sr-flip-flop.eps}}
\caption{Example Tgif Diagram Printed with ``epsf'' Macro.\label{fig:epsf}}
\end{figure*}
%
All these are just trying the illustrate that the bounding boxes
generated by tgif is pretty tight, and there's really no need for
the ``psfile'' construct.  I don't know if there are cases where
some documentation generation software only supports the ``psfile''
construct, but I an putting in the example anyways.

Figure \ref{fig:psfile} is an example of a tgif \LaTeX\,\, figure
printed with the ``psfile'' macro.  Notice the \\rule command.
%
\begin{figure*}[htb]
\special{psfile="an-sr-flip-flop.eps" hoffset=-72 voffset=-792}
\rule{0in}{1.1in}
\caption{Example Tgif Diagram Printed with ``psfile'' Macro.\label{fig:psfile}}
\end{figure*}
%
It is reserving a space of 1.1 inch for the figure.  This can
be figured out from the ruler within tgif.  As a general rule,
the ``psfile'' construct should be avoided.
\end{document}