% FRONTIERS DOCUMENT STYLE -- released 27 September 1988
%    for LaTeX version 2.09
% Copyright (C) 1988 by Max Hailperin, except portions 
% Copyright (C) 1985 by Leslie Lamport, or otherwise indicated.
% Permission to copy all or part of this work is granted, provided
% that the copies are not made or distributed for resale, and that
% the copyright notice and this notice are retained.
%
% 
% THIS WORK IS PROVIDED ON AN "AS IS" BASIS.  THE AUTHOR PROVIDES NO
% WARRANTY WHATSOEVER, EITHER EXPRESS OR IMPLIED, REGARDING THE WORK,
% INCLUDING WARRANTIES WITH RESPECT TO ITS MERCHANTABILITY OR FITNESS
% FOR ANY PARTICULAR PURPOSE.
%
% This is a document style option, for cammera-ready copy for the
% Frontiers '88 symposium (and other IEEE conferences???), to be
% used with the article document style and the proc document style option.
% Note that it is will only work if your device can actually produce 11x14
% output (e.g. an Imagen 3320 with ledger-size paper), or if you convince
% your dvi driver to scale the output down (and then do an enlargement of
% the output to send in) -- this results in lower quality, of course.
%
% WARNING: The visual design of this style is rather poor.  The conference
%          specifications forced some of this, and as a result it didn't seem
%          worth worrying about the rest.  Be forewarned however.

\typeout{Document Style Option 'Frontiers' -- released 27 September 1988}

%  ****************************************
%  *             KEYWORDS                 *
%  ****************************************

% \keywords{foo, bar, baz} should go at the end of the abstract

\def\keywords#1{\begin{list}{}{\setlength{\leftmargin}{0pt}\setlength
{\rightmargin}{0pt}\setlength{\topsep}{\baselineskip}\setlength
{\partopsep}{0pt}}\item[]Keywords: #1\end{list}}

%  ****************************************
%  *             FOOTNOTES                *
%  ****************************************
\def\@fnsymbol#1{\ifcase#1\or *\or **\or +\or ++\else\@ctrerr\fi\relax}

\def\thefootnote{\fnsymbol{footnote}}

%  ****************************************
%  *            SECTIONING                *
%  ****************************************
% Slight modification of the geophysics.sty file,
% Copyright (c) 1987 by Stephen Gildea
% Permission to copy all or part of this work is granted, provided
% that the copies are not made or distributed for resale, and that
% the copyright notice and this notice are retained.
% 
% THIS WORK IS PROVIDED ON AN "AS IS" BASIS.  THE AUTHOR PROVIDES NO
% WARRANTY WHATSOEVER, EITHER EXPRESS OR IMPLIED, REGARDING THE WORK,
% INCLUDING WARRANTIES WITH RESPECT TO ITS MERCHANTABILITY OR FITNESS
% FOR ANY PARTICULAR PURPOSE.

% Headings:
%   for principal heading use \section
%   for lower rank heading use \subsection
%   for still lower rank heading use \subsubsection
\setcounter{secnumdepth}{0}

% \section is tricky because we want to both support \section* and have
% the section title uppercased.
\def\section{\secdef\@sectionb\@sections}
\def\@sectionb[#1]#2{\@sections{#2}}
\def\@sections#1{\@startsection
  {section}{1}{\z@}{-3.5ex plus -1ex minus -.2ex}{2.3ex plus .2ex}{\Large
\bf}{\uppercase{#1}}}

% the below is modeled on the above, plus the paragraph def from art10.doc
\def\subsubsection{\secdef\@subsubsectionb\@subsubsections}
\def\@subsubsectionb[#1]#2{\@subsubsections{#2}}
\def\@subsubsections#1{\@startsection
     {subsubsection}{3}{\z@}{3.25ex plus 1ex minus .2ex}{-1sp}{\normalsize
      \bf}{#1---}}

% the below is less closely modeled on the geophysical stuff, plus art10.doc
\def\subsection{\secdef\@subsectionb\@subsections}
\def\@subsectionb[#1]#2{\@subsections{#2}}
\def\@subsections#1{\@startsection{subsection}{2}{\z@}{-3.25ex plus -1ex minus 
   -.2ex}{1.5ex plus .2ex}{\large\bf}{#1}}

% in case people nest more deeply than allowed --- perhaps should be error
\def\paragraph{\subsubsection}
\def\subparagraph{\subsubsection}


%  ****************************************
%  *            PAGE LAYOUT               *
%  ****************************************
%
% All margin dimensions measured from a point one inch from top and side
% of page.  Lamport claims that for some unspecified device(s) dimensions
% shrink by about 2 percent.

% SIDE MARGINS:
   \oddsidemargin  0pt      %   Note that \oddsidemargin = \evensidemargin
   \evensidemargin 0pt

% VERTICAL SPACING:        
                         % Top of page:
\topmargin -48pt         %    Nominal distance from top of page to top of
                         %    box containing running head.
\headheight 12pt         %    Height of box containing running head.
\headsep 36pt            %    Space between running head and text.
% \topskip = 10pt        %    '\baselineskip' for first line of page.
                         % Bottom of page:
\footheight 12pt         %    Height of box containing running foot.
\footskip 150pt           %    Distance from baseline of box containing foot 
                         %    to baseline of last line of text.


% DIMENSION OF TEXT:

\textheight 11.55in          % Height of text (including footnotes and figures, 
                         % excluding running head and foot).
\textwidth 9in        % Width of text line.
                         % For two-column mode: 
\columnsep 1cm        %    Space between columns 
\columnseprule 0pt       %    Width of rule between columns.



%    ****************************************
%    *            PAGE STYLES               *
%    ****************************************
%
%  The page number is printed in the top center, in "n of m" form.


\def\@oddhead{\rm\hfil \thepage\ of \pageref{@last-page} \hfil}
\def\@evenhead{\@oddhead}
\def\@oddfoot{}\def\@evenfoot{\@oddfoot}

% This is from latex.tex, except for-vvvvvvvvvvvvvvvvvv
\def\enddocument{\@checkend{document}\label{@last-page}\clearpage\begingroup  
\if@filesw \immediate\closeout\@mainaux 
\def\global\@namedef##1##2{}\def\newlabel{\@testdef r}%
\def\bibcite{\@testdef b}\@tempswafalse \makeatletter\input \jobname.aux
\if@tempswa \@warning{Label(s) may have changed.  Rerun to get
cross-references right}\fi\fi\endgroup\deadcycles\z@\@@end}

%    ****************************************
%    *               TITLE                  *
%    ****************************************
%
% This @maketitle is from proc.doc, except for the uppercasing
\def\@maketitle{\vbox to 2.25in{\hsize\textwidth 
  \linewidth\hsize \vfil \centering
  {\LARGE \uppercase\expandafter{\@title} \par}     % TITLE set in \LARGE size.
  \vskip 2em                % Vertical space after title.
  {\large \begin{tabular}[t]{c}\@author \end{tabular}\par}    
  \vfil}}

%    ****************************************
%    *            BIBLIOGRAPHY              *
%    ****************************************
% Some fancy footwork to get Ref. vs. Refs. depending on how many citeations
\newif\if@multicitesw
\newif\if@multiciteauxsw

\def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi
  \def\@citea{}\@multiciteswfalse\@multiciteauxswfalse\@for\@citeb:=#2\do
{\if@multiciteauxsw\@multiciteswtrue\fi\@multiciteauxswtrue}\@cite
{\@for\@citeb:=#2\do
    {\@citea\def\@citea{, \penalty\@m}\@ifundefined
       {b@\@citeb}{{\bf ?}\@warning
       {Citation `\@citeb' on page \thepage \space undefined}}%
\hbox{\csname b@\@citeb\endcsname}}}{#1}}

\def\@cite#1#2{{(Ref\if@multicitesw s\fi.\ {#1\if@tempswa ,  #2\fi})}}

% This is the stuff to change the reference list to 1. instead of [1].
% Except for the relevant minor differences, it is straight from article.doc.
\def\@biblabel#1{#1.\hfill}

\def\thebibliography#1{\section*{References\@mkboth
 {REFERENCES}{REFERENCES}}\list
 {\arabic{enumi}.}{\settowidth\labelwidth{#1.}\leftmargin\labelwidth
 \advance\leftmargin\labelsep
 \usecounter{enumi}}
 \def\newblock{\hskip .11em plus .33em minus -.07em}
 \sloppy\clubpenalty4000\widowpenalty4000
 \sfcode`\.=1000\relax}

%    ****************************************
%    *              CAPTIONS                *
%    ****************************************

% This makes captions use a period rather than a colon.  It is a minor
% change to code from article.doc.
\long\def\@makecaption#1#2{
   \vskip 10pt 
   \setbox\@tempboxa\hbox{#1. #2}
   \ifdim \wd\@tempboxa >\hsize   % IF longer than one line:
       #1. #2\par                 %   THEN set as ordinary paragraph.
     \else                        %   ELSE  center.
       \hbox to\hsize{\hfil\box\@tempboxa\hfil}  
   \fi}