% CAMES0.STY, version of May 10, 2000
%
\topskip  8pt                   % '\baselineskip' for first line of page.
\textheight=51\baselineskip     % Height of text body (52 lines)
\advance\textheight by\topskip  %
\advance\textheight by 4pt      %
\textwidth 165mm                % Width of text line.
\topmargin -4mm                 % Nominal distance from top of page to top
                                % of box containing running head.
\oddsidemargin  -3mm            % Left margin on odd-numbered pages.
\evensidemargin -3mm            % Left margin on even-numbered pages.
\def\baselinestretch{1.5}       % Increase line spacing for review purposes
\floatsep 26pt plus 2pt               % Space between adjacent floats moved
                                      % to top or bottom of text page.
\textfloatsep 26pt plus 2pt minus 2pt % Space between main text and
                                      % floats at top or bottom of page.
\intextsep 26pt plus 2pt minus 2pt    % Space between in-text figures and text.


% some definitions that change the format of figure/table captions

\newcounter{ftype@current}
\setlength\abovecaptionskip{0\p@}
\setlength\belowcaptionskip{0\p@}
\long\def\@caption#1[#2]#3{\par
  \begingroup
    \@parboxrestore
    \normalsize
    \setcounter{ftype@current}{\csname ftype@#1\endcsname}
    \ifnum\theftype@current=2
    \else\ifnum\theftype@current=4
         \else \vskip 10\p@
         \fi
    \fi
    \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
    \ifnum\theftype@current=2 \vskip 10\p@
    \else\ifnum\theftype@current=4\vskip 10\p@
         \fi
    \fi
  \endgroup}

% flush left equations with left-margin-justification of
% left-hand sides in eqnarray
% (copied from fleqn.sty and slightly modified)

\def\[{\relax\ifmmode\@badmath\else
 \begin{trivlist}%
 \@beginparpenalty\predisplaypenalty
 \@endparpenalty\postdisplaypenalty
 \item[]\leavevmode
 \hbox to\linewidth\bgroup $\m@th\displaystyle
 \hskip\mathindent\bgroup\fi}


\def\]{\relax\ifmmode \egroup $\hfil
       \egroup \end{trivlist}\else \@badmath \fi}

\def\equation{\@beginparpenalty\predisplaypenalty
  \@endparpenalty\postdisplaypenalty
\refstepcounter{equation}\trivlist \item[]\leavevmode
  \hbox to\linewidth\bgroup $\m@th% $ TO MAKE DOLLAR NESTING OK
  \displaystyle
\hskip\mathindent}

\def\endequation{$\hfil % $ TO MAKE DOLLAR NESTING IN THIS FILE OK
           \displaywidth\linewidth\@eqnnum\egroup \endtrivlist}

\def\eqnarray{\stepcounter{equation}\let\@currentlabel=\theequation
\global\@eqnswtrue
\global\@eqcnt\z@\tabskip\mathindent\let\\=\@eqncr
\abovedisplayskip\topsep\ifvmode\advance\abovedisplayskip\partopsep\fi
\belowdisplayskip\abovedisplayskip
\belowdisplayshortskip\abovedisplayskip
\abovedisplayshortskip\abovedisplayskip
\jot=5pt
$$\m@th\halign % $$ DOLLAR MATCHING
to\linewidth\bgroup\@eqnsel\hskip\@centering$\displaystyle\tabskip\z@
  {##}$\hfil&\global\@eqcnt\@ne \hskip 0.8ex \hfil${##}$\hfil
  &\global\@eqcnt\tw@ \hskip 0.8ex $\displaystyle{##}$\hfil
   \tabskip\@centering&\llap{##}\tabskip\z@\cr}

\def\endeqnarray{\@@eqncr\egroup
      \global\advance\c@equation\m@ne$$\global\@ignoretrue % $$ MATCHING
      }

\newdimen\mathindent
\mathindent = \parindent

%

