%
% Title pages for ANL reports.  To allow for the inclusion of a graphics
% figure, \ANLG may be defined
\def\ANLG{\vskip 1.6 in minus 1in}
\def\ANLEDITED{by}
\newif\ifanltm
\anltmfalse
\def\DefaultSupport{This work was supported in part by the Mathematical,
        Information, and Computational Sciences Division subprogram of
        the Office of Advanced Scientific Computing Research, 
        U.S. Department of Energy, under Contract W-31-109-Eng-38.}
%
% Titlepage style for Argonne reports (TechReport)
% \ANLTitle{title}{Authors}{ReportNumber}{Date}
%
% This should really be done by putting together boxes of fixed height and
% width.
\long\def\ANLTitle#1#2#3#4{{\oddsidemargin 0pt \evensidemargin 0pt\relax
\leftskip0in\rightskip0in\relax
\voffset 0pt
\topmargin 0pt
\vbox to \vsize{%
\vsize=\TMPageHeight
\hsize=6.5in
\textwidth=\hsize
\setcounter{page}{0}
\thispagestyle{empty}
\vbox to \vsize{
\vskip-1in\hbox to \hsize{\hskip -.5in\vbox{%
{\advance\leftskip 4.0in
\noindent
Distribution Category: \\
Mathematics and \\ 
\null\nobreak\hspace{.25in} Computer Science (UC-405)
\par
}

\begin{center}

\vspace{.2in}
{\large
ARGONNE NATIONAL LABORATORY\\
}
9700 South Cass Avenue \\
Argonne, IL 60439
\end{center}

\vspace{.06in}
\begin{center}
{\large\bf
\vrule width 2.5in height .4pt\\
ANL-#3 \\
\vskip -8pt
\vrule width 2.5in height .4pt\\
}
\end{center}
\vskip .75 in
\begin{center}
{\Large\bf #1\par}
\end{center}
\vskip .1 in
\begin{center}
\ANLEDITED
\end{center}
\vskip .1in
\begin{center}
{\large #2\par}
\end{center}
\ANLG
\centerline{#4}
\vfill
\begin{center}

\parbox{4in}{
{\small \DefaultSupport
% \\ \\ \LoisSupport
}}
\end{center}
\hss}}\vss}}\vfill\eject}}
%
% Use these for positioning
\def\ZBox#1{\vbox to 0pt{\hbox to 0pt{#1\hss}\vss}}
% This is the PREPrint title page
% \ANLPreprintTitle{title}{Authors}{ReportNumber}{Date}
% Report number includes the MCS-Pxxx-mmyy
% Date should include Month, Year (January 1993)
\long\def\ANLPreprintTitle#1#2#3#4{\vbox to \vsize{%
%\vsize=9.5in
\hbox to \hsize{%
\hsize=7in
\vbox to 9.5in{\vskip -.4in\hbox to 7in{\vbox{%
\hoffset=-.4in
\voffset=-1.3in
\thispagestyle{empty}
\null
\ZBox{\hskip-.5in\vbox{\vskip .25in %
\epsfxsize=6in\epsfbox{/home/gropp/tools.n/tex/anlpre.eps}}}
\ZBox{\vbox{\vskip 7in\vbox to 1.5in{\begin{center}\Large\bf
Mathematics and Computer Science Division\\Argonne National Laboratory
\end{center}}}}
\ZBox{\hskip 6in\vbox{\vskip 7.8in\epsfxsize=.8in\epsfbox{/home/gropp/tools.n/tex/argonne.ps}}}

\hfill {\Large\bf PREPRINT #3}

\vspace{.4in}
\begin{center}
\parbox{4in}{\begin{center}
{\Large\bf #1}\end{center}}

\vspace{.3in}

by

\vspace{.3in}

{\large\em #2}

\vspace{4in}

\hoffset=-.4in
{\large #4}
\end{center}
}\hss}\vss}\hss}\vss}
\clearpage
\setcounter{page}{1}
}

%
% Our color postscript printer doesn't print on all (or even that much of the
% paper).  If the output is for that printer, select \UseColorPrinter
\def\TMPageHeight{8.5in}
\def\UseColorPrinter{\gdef\TMPageHeight{8in}}
%
% Titlepage style for Argonne reports (TechMemo)
% \ANLTMTitle{title}{Authors}{ReportNumber}{Date}
%
% This should really be done by putting together boxes of fixed height and
% width.
\long\def\ANLTMTitle#1#2#3#4{{\leftskip0in\rightskip0in\relax
\oddsidemargin 0pt \evensidemargin 0pt\relax
\voffset 0pt
\topmargin 0pt
\vbox to \vsize{%
\vsize=\TMPageHeight
\hsize=6.5in
\textwidth=\hsize
\setcounter{page}{0}
\thispagestyle{empty}
\vbox to \vsize{
\vskip-1in\hbox to \hsize{\hfill\Large ANL/MCS-TM-#3}
\vskip 1.3in
\vbox to 5.5in{\vskip 0pt plus 10pt
\begin{center}
{\Large\bf #1\par}
\end{center}
\vskip .1 in
\begin{center}
\ANLEDITED
\end{center}
\vskip .1in
\begin{center}
{\large #2}
\end{center}
\ANLG
\vss
}
\vfill
\ZBox{\epsfxsize=1.0in\epsfbox{/home/gropp/tools.n/tex/argonne.ps}}
\begin{flushright}
\Large
MATHEMATICS AND\\
COMPUTER SCIENCE\\
DIVISION
\end{flushright}
}\vss}\vfill\eject}}

%
% Preprint title page
% Title page macros
% generates an Argonne Preprint title page.
% use
%       \titlepagesupabst{title}{author}{report#}{support statement}
%
% title page with support and abstract
% the abstract is the 5th argument.
%
% Format of a title page is
%   5in x 6.5in for abst
%   2in x 6.5in block containing title insert:  The title insert
%       has the form
%           title paragraph
%           vfil
%           author paragraph
%           Research report #
%           month, year
%   vskip
%   support (and footnote) paragraph.  Footnotes may not work
% We are careful to turn off other formatting (head, foot lines,
% raggedbottom, \hsize, advancing page number, ...)
\long\def\ANLPPtitle#1#2#3#4{\null\medskip
    \vbox{\hbox to \hsize{
        \hss\vbox{%
        \hsize 5.5truein
        % title paragraph
        \vbox{\raggedcenter{\noindent\setfnt(size=L)#1\par}}%
        % skip
        \bigskip 
        % author paragraph
        \vbox{\raggedcenter{\noindent\setfnt(size=l)#2\par}}}%
        \hss}}%
     \vskip1in
     \centerline{\bf Abstract}
     \vfootnote{}{\vbox{\hbox{\hskip-\parindent{#4}}}}%
}
