% Definitions for figures.
% Gary Houston.

% Setup for including encapsulated PostScript (assumes dvips).
% Rotate #2 by #1 degrees.
\def\gfrotate#1#2{\ifnum#1=0#2\else
\ifnum#1=90\rotate[l]{#2}\else
\ifnum#1=180\rotate[u]{#2}\else
\ifnum#1=270\rotate[r]{#2}\fi\fi\fi\fi}

% Scale by x and y factors.
\def\gfscale#1#2{\def\@xscale{#1}\def\@yscale{#2}}
% epsfsize is defined within gfepsf, since it is also defined by epsf.sty.
\def\gfepsf#1{
  \def\epsfsize##1##2{\@xscale##1\epsfysize\@yscale##2}
  \epsffile{#1}}
% Parameters for controlling the floating of the figure.
\def\figurehere{\def\fps@figure{h}}
\def\figuretop{\def\fps@figure{t}}
\def\figurebottom{\def\fps@figure{b}}
\def\figurepage{\def\fps@figure{p}}
\def\figurefloat{\def\fps@figure{tbp}}
