% -*- Mode:TeX -*-

\input{psfig}

\newcommand\pict[5]{
  \begin{figure}[t]
    \centerline{\psfig{width=#1,height=#2,figure=\illpref#3.ps}}
    \mycaption{#4}{#5}
    \label{fig:#3}
  \end{figure}
}

% Directory where postscript illustrations are to be found.
\def\illpref{~/Research/Dpaper/Psf}

% Figure counting does not work properly unless
% \caption is given optional arg and second arg.
% so mycaption gives it both.
\newcommand\mycaption[2]{
  \def\next{#2}%
  \ifx\next\empty
    \caption[#1]{{\small\sl#1}}
  \else
    \caption[#1]{{\small\sl#2}}
  \fi
}
