arxmliv
arxmliv build tool
 
KWARC group
LaTeXML
About
   
 

Back to Homepage

--- /arXMLiv/repos/arXMLiv/trunk/sty/cimsart.cls	2010-04-02 15:21:43.000000000 +0200
+++ /arXMLiv/repos/arXMLiv/trunk/sty/reportj.cls	2010-04-01 15:07:38.000000000 +0200
@@ -1,17 +1,103 @@
-%% File: cimsart.cls
-%% See also the change log at the end of the file.
 %%
-%% Macros written by G. Fang (fang@cims.nyu.edu). Some are adapted from the
-%% standard LaTeX article.cls.
-
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{cimsart} [1996/8/22 v1.0 LaTeX class for CPAM]
+%% This is file `report.cls',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% classes.dtx  (with options: `report')
+%%
+%% This is a generated file.
+%%
+%% Copyright 1993 1994 1995 1996 1997
+%% The LaTeX3 Project and any individual authors listed elsewhere
+%% in this file.
+%%
+%% For further copyright information, and conditions for modification
+%% and distribution, see the file legal.txt, and any other copyright
+%% notices in this file.
+%%
+%% This file is part of the LaTeX2e system.
+%% ----------------------------------------
+%%   This system is distributed in the hope that it will be useful,
+%%   but WITHOUT ANY WARRANTY; without even the implied warranty of
+%%   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+%%
+%%   For error reports concerning UNCHANGED versions of this file no
+%%   more than one year old, see bugs.txt.
+%%
+%%   Please do not request updates from us directly.  Primary
+%%   distribution is through the CTAN archives.
+%%
+%%
+%% IMPORTANT COPYRIGHT NOTICE:
+%%
+%% You are NOT ALLOWED to distribute this file alone.
+%%
+%% You are allowed to distribute this file under the condition that it
+%% is distributed together with all the files listed in manifest.txt.
+%%
+%% If you receive only some of these files from someone, complain!
+%%
+%%
+%% Permission is granted to copy this file to another file with a
+%% clearly different name and to customize the declarations in that
+%% copy to serve the needs of your installation, provided that you
+%% comply with the conditions in the file legal.txt.
+%%
+%% However, NO PERMISSION is granted to generate or to distribute a
+%% modified version of this file under its original name.
+%%
+%% You are NOT ALLOWED to change this file.
+%%
+%%
+%% MODIFICATION ADVICE:
+%%
+%% If you want to customize this file, it is best to make a copy of
+%% the source file(s) from which it was produced.  Use a different
+%% name for your copy(ies) and modify the copy(ies); this will ensure
+%% that your modifications do not get overwritten when you install a
+%% new release of the standard system.  You should also ensure that
+%% your modified source file does not generate any modified file with
+%% the same name as a standard file.
+%%
+%% You can then easily distribute your modifications by distributing
+%% the modified and renamed copy of the source file, taking care to
+%% observe the conditions in legal.txt; this will ensure that other
+%% users can safely use your modifications.
+%%
+%% You will also need to produce your own, suitably named, .ins file to
+%% control the generation of files from your source file; this file
+%% should contain your own preambles for the files it generates, not
+%% those in the standard .ins files.
+%%
+%% The names of the source files used are shown above.
+%%
+%%
+%%
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+\NeedsTeXFormat{LaTeX2e}[1995/12/01]
+\ProvidesClass{reportj}
+              [1996/10/31 v1.3u
+ Standard LaTeX document class customized by Jesus Maiz Apellaniz]
 \newcommand\@ptsize{}
 \newif\if@restonecol
 \newif\if@titlepage
-\@titlepagefalse
-%\newif\if@openbib  %2/19/98
-%\@openbibfalse     %2/19/98
+\@titlepagetrue
+\newif\if@openright
 \if@compatibility\else
 \DeclareOption{a4paper}
    {\setlength\paperheight {297mm}%
@@ -35,28 +121,37 @@
    {\setlength\@tempdima   {\paperheight}%
     \setlength\paperheight {\paperwidth}%
     \setlength\paperwidth  {\@tempdima}}
-\fi %2/19/98
+\fi
 \if@compatibility
+  \renewcommand\@ptsize{0}
+\else
 \DeclareOption{10pt}{\renewcommand\@ptsize{0}}
-\fi %2/19/98
+\fi
 \DeclareOption{11pt}{\renewcommand\@ptsize{1}}
 \DeclareOption{12pt}{\renewcommand\@ptsize{2}}
+\if@compatibility\else
 \DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
+\fi
 \DeclareOption{twoside}{\@twosidetrue  \@mparswitchtrue}
-\DeclareOption{draft}{\setlength\overfullrule{5\p@}}
-\DeclareOption{final}{\setlength\overfullrule{\z@}}
+\DeclareOption{draft}{\setlength\overfullrule{5pt}}
+\if@compatibility\else
+\DeclareOption{final}{\setlength\overfullrule{0pt}}
+\fi
 \DeclareOption{titlepage}{\@titlepagetrue}
+\if@compatibility\else
 \DeclareOption{notitlepage}{\@titlepagefalse}
+\fi
+\if@compatibility
+\else
+\DeclareOption{openright}{\@openrighttrue}
+\DeclareOption{openany}{\@openrightfalse}
+\fi
+\if@compatibility\else
 \DeclareOption{onecolumn}{\@twocolumnfalse}
+\fi
 \DeclareOption{twocolumn}{\@twocolumntrue}
-\newif\iftagsleft@
-\DeclareOption{leqno}{%
-  \tagsleft@true \PassOptionsToPackage{leqno}{amsmath}}
-\DeclareOption{reqno}{%
-  \tagsleft@false \PassOptionsToPackage{reqno}{amsmath}}
+\DeclareOption{leqno}{\input{leqno.clo}}
 \DeclareOption{fleqn}{\input{fleqn.clo}}
-%\DeclareOption{openbib}{\@openbibtrue}   %2/19/98
-%% Added section below from article.cls on 2/19/98
 \DeclareOption{openbib}{%
   \AtEndOfPackage{%
    \renewcommand\@openbib@code{%
@@ -67,27 +162,13 @@
       }%
    \renewcommand\newblock{\par}}%
 }
-\DeclareOption{psamsfonts}{%
-  \PassOptionsToPackage{psamsfonts}{amsfonts}%
-  \PassOptionsToPackage{cmex10}{amsmath}%
-  }
-\ExecuteOptions{letterpaper,11pt,twoside,final,leqno,psamsfonts}
-%% change to above line made by Fang (originally) and pdm 5/5/97
-\renewcommand\@eqnnum{\hbox to .01\p@{}\rlap{\reset@font\rmfamily%
-\hskip -\displaywidth(\theequation)}}
+\ExecuteOptions{letterpaper,10pt,oneside,onecolumn,final,openany}
 \ProcessOptions
-\def\cpamtimespace{}
-\def\@setfontsize#1#2#3{\@nomath#1%          %%change is made (fang)
-    \ifx\protect\relax
-      \let\@currsize#1%
-    \fi
-    \fontsize{#2}{#3}\selectfont\cpamtimespace}
 \input{size1\@ptsize.clo}
-\topskip=10\p@
 \setlength\lineskip{1\p@}
 \setlength\normallineskip{1\p@}
 \renewcommand\baselinestretch{}
-%\setlength\parskip{0\p@ plus .5\p@}   %2/6/98
+\setlength\parskip{0\p@ \@plus \p@}
 \@lowpenalty   51
 \@medpenalty  151
 \@highpenalty 301
@@ -107,34 +188,48 @@
       \def\@evenhead{\thepage\hfil\slshape\leftmark}%
       \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
       \let\@mkboth\markboth
-      \def\sectionmark##1{%
-        \markboth {\uppercase{\ifnum \c@secnumdepth >\z@
-            \thesection.\hskip 1em\relax\fi
+    \def\chaptermark##1{%
+      \markboth {\MakeUppercase{%
+        \ifnum \c@secnumdepth >\m@ne
+            \@chapapp\ \thechapter. \ %
+        \fi
             ##1}}{}}%
-      \def\subsectionmark##1{%
-        \markright {\ifnum \c@secnumdepth >\@ne
-            \thesubsection\hskip 1em\relax \fi
-            ##1}}}
+    \def\sectionmark##1{%
+      \markright {\MakeUppercase{%
+        \ifnum \c@secnumdepth >\z@
+          \thesection. \ %
+        \fi
+        ##1}}}}
 \else
     \def\ps@headings{%
       \let\@oddfoot\@empty
       \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
       \let\@mkboth\markboth
-      \def\sectionmark##1{%
-        \markright {\uppercase{\ifnum \c@secnumdepth >\m@ne
-            \thesection\hskip 1em\relax \fi
+    \def\chaptermark##1{%
+      \markright {\MakeUppercase{%
+        \ifnum \c@secnumdepth >\m@ne
+            \@chapapp\ \thechapter. \ %
+        \fi
             ##1}}}}
 \fi
+\def\ps@myheadings{%
+    \let\@oddfoot\@empty\let\@evenfoot\@empty
+    \def\@evenhead{\thepage\hfil\slshape\leftmark}%
+    \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
+    \let\@mkboth\@gobbletwo
+    \let\chaptermark\@gobble
+    \let\sectionmark\@gobble
+    }
 \if@titlepage
   \newcommand\maketitle{\begin{titlepage}%
-  \let\footnotesize\small                  %^ PDM 7/15/96 (commented out)
+  \let\footnotesize\small
   \let\footnoterule\relax
+  \let \footnote \thanks
   \null\vfil
   \vskip 60\p@
   \begin{center}%
     {\LARGE \@title \par}%
     \vskip 3em%
-  \end{center}\par
     {\large
      \lineskip .75em%
       \begin{tabular}[t]{c}%
@@ -147,14 +242,25 @@
   \vfil\null
   \end{titlepage}%
   \setcounter{footnote}{0}%
-  \let\thanks\relax\let\maketitle\relax
-  \gdef\@thanks{}\gdef\@author{}\gdef\@title{}}
+  \global\let\thanks\relax
+  \global\let\maketitle\relax
+  \global\let\@thanks\@empty
+  \global\let\@author\@empty
+  \global\let\@date\@empty
+  \global\let\@title\@empty
+  \global\let\title\relax
+  \global\let\author\relax
+  \global\let\date\relax
+  \global\let\and\relax
+}
 \else
-\newcommand\maketitle{\par\begingroup%             %change is made (fang)
-    \renewcommand\thefootnote{\fnsymbol{footnote}}%
-    \def\@makefnmark{\hbox to\z@{$\m@th^{\@thefnmark}$\hss}}%
+\newcommand\maketitle{\par
+  \begingroup
+    \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
+    \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
     \long\def\@makefntext##1{\parindent 1em\noindent
-            {$\m@th^{\@thefnmark}$}##1}%
+            \hb@xt@1.8em{%
+                \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
     \if@twocolumn
       \ifnum \col@number=\@ne
         \@maketitle
@@ -165,108 +271,170 @@
       \newpage
       \global\@topnum\z@   % Prevents figures from going at top of page.
       \@maketitle
-\thispagestyle{ffirstpage}
     \fi
-\@thanks
+    \thispagestyle{plain}\@thanks
   \endgroup
   \setcounter{footnote}{0}%
-  \let\thanks\relax
-  \let\maketitle\relax\let\@maketitle\relax
-  \gdef\@thanks{}\gdef\@author{}\gdef\@title{}}
-\def\@maketitle{%                                  %change is made (fang)
+  \global\let\thanks\relax
+  \global\let\maketitle\relax
+  \global\let\@maketitle\relax
+  \global\let\@thanks\@empty
+  \global\let\@author\@empty
+  \global\let\@date\@empty
+  \global\let\@title\@empty
+  \global\let\title\relax
+  \global\let\author\relax
+  \global\let\date\relax
+  \global\let\and\relax
+}
+\def\@maketitle{%
   \newpage
+  \null
+  \vskip 2em%
   \begin{center}%
-\vspace*{-20.5\p@}
+  \let \footnote \thanks
 {\LARGE \@title \par}%
-    \vskip 12\p@
-    {\normalsize
-{\def\arraystretch{.8} \begin{tabular}[t]{c}
+    \vskip 1.5em%
+    {\large
+      \lineskip .5em%
+      \begin{tabular}[t]{c}%
         \@author
-      \end{tabular}\par}}%
-\@dedication%
+      \end{tabular}\par}%
+    \vskip 1em%
+    {\large \@date}%
   \end{center}%
   \par
-  \vskip 1.2em}
+  \vskip 1.5em}
 \fi
+\newcommand*\chaptermark[1]{}
 \setcounter{secnumdepth}{3}
 \newcounter {part}
-\newcounter {section}
+\newcounter {chapter}
+\newcounter {section}[chapter]
 \newcounter {subsection}[section]
 \newcounter {subsubsection}[subsection]
 \newcounter {paragraph}[subsubsection]
 \newcounter {subparagraph}[paragraph]
-\renewcommand\thepart          {\Roman{part}}
-\renewcommand\thesection       {\arabic{section}}
-\renewcommand\thesubsection    {\thesection.\arabic{subsection}}
-\renewcommand\thesubsubsection {\thesubsection .\arabic{subsubsection}}
-\renewcommand\theparagraph     {\thesubsubsection.\arabic{paragraph}}
-\renewcommand\thesubparagraph  {\theparagraph.\arabic{subparagraph}}
-\newcommand\part{\par
-   \addvspace{4ex}%
-   \@afterindentfalse
+\renewcommand \thepart {\@Roman\c@part}
+\renewcommand \thechapter {\@arabic\c@chapter}
+%\renewcommand \thesection {\thechapter.\@arabic\c@section}
+\renewcommand \thesection {\@arabic\c@section}
+\renewcommand \thesubsection   {\thesection.\@arabic\c@subsection}
+%\renewcommand \thesubsection   {Ejemplo \thesection.\@arabic\c@subsection}
+\renewcommand \thesubsubsection{\thesubsection.\@arabic\c@subsubsection}
+%\renewcommand \thesubsubsection{\@arabic\c@subsubsection}
+\renewcommand \theparagraph    {\@arabic\c@paragraph}
+\renewcommand \thesubparagraph {\@arabic\c@subparagraph}
+\newcommand\@chapapp{\chaptername}
+\newcommand\part{%
+  \if@openright
+    \cleardoublepage
+  \else
+    \clearpage
+  \fi
+  \thispagestyle{plain}%
+  \if@twocolumn
+    \onecolumn
+    \@tempswatrue
+  \else
+    \@tempswafalse
+  \fi
+  \null\vfil
    \secdef\@part\@spart}

 \def\@part[#1]#2{%
-    \ifnum \c@secnumdepth >\m@ne
+    \ifnum \c@secnumdepth >-2\relax
       \refstepcounter{part}%
       \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
     \else
       \addcontentsline{toc}{part}{#1}%
     \fi
-    {\parindent \z@ \raggedright
+    \markboth{}{}%
+    {\centering
      \interlinepenalty \@M
-     \reset@font
-     \ifnum \c@secnumdepth >\m@ne
-       \Large\bfseries \partname~\thepart
-       \par\nobreak
+     \normalfont
+     \ifnum \c@secnumdepth >-2\relax
+       \huge\bfseries \partname~\thepart
+       \par
+       \vskip 20\p@
      \fi
-     \huge \bfseries #2%
-     \markboth{}{}\par}%
-    \nobreak
-    \vskip 3ex
-    \@afterheading}
+     \Huge \bfseries #2\par}%
+    \@endpart}
 \def\@spart#1{%
-    {\parindent \z@ \raggedright
+    {\centering
      \interlinepenalty \@M
-     \reset@font
-     \huge \bfseries #1\par}%
-     \nobreak
-     \vskip 3ex
-     \@afterheading}
+     \normalfont
+     \Huge \bfseries #1\par}%
+    \@endpart}
 \def\@endpart{\vfil\newpage
               \if@twoside
-                \hbox{}%
+                \null
                 \thispagestyle{empty}%
                 \newpage
               \fi
               \if@tempswa
                 \twocolumn
               \fi}
-% This part is changed                                 %change is made (fang)
-\def\@fseccntformat#1{\csname the#1\endcsname\hskip .8em}
-\def\@gseccntformat#1{}
-
-\newcommand\section{\let\@seccntformat\@fseccntformat%
-\@startsection{section}{1}{\z@}{-3.5ex \@plus -1ex \@minus -.2ex}%
-                      {1.6ex \@plus.2ex}%
-                      {\normalfont\centering\large\bfseries}}
-
-\newcommand\subsection{\let\@seccntformat\@fseccntformat%
-\@startsection{subsection}{2}{\z@}{-3.25ex\@plus -1ex \@minus -.2ex}%
+\newcommand\chapter{\if@openright\cleardoublepage\else\clearpage\fi
+                    \thispagestyle{plain}%
+                    \global\@topnum\z@
+                    \@afterindentfalse
+                    \secdef\@chapter\@schapter}
+\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
+                         \refstepcounter{chapter}%
+                         \typeout{\@chapapp\space\thechapter.}%
+                         \addcontentsline{toc}{chapter}%
+                                   {\protect\numberline{\thechapter}#1}%
+                    \else
+                      \addcontentsline{toc}{chapter}{#1}%
+                    \fi
+                    \chaptermark{#1}%
+                    \addtocontents{lof}{\protect\addvspace{10\p@}}%
+                    \addtocontents{lot}{\protect\addvspace{10\p@}}%
+                    \if@twocolumn
+                      \@topnewpage[\@makechapterhead{#2}]%
+                    \else
+                      \@makechapterhead{#2}%
+                      \@afterheading
+                    \fi}
+\def\@makechapterhead#1{%
+  \vspace*{50\p@}%
+  {\parindent \z@ \raggedright \normalfont
+    \ifnum \c@secnumdepth >\m@ne
+        \huge\bfseries \@chapapp\space \thechapter
+        \par\nobreak
+        \vskip 20\p@
+    \fi
+    \interlinepenalty\@M
+    \Huge \bfseries #1\par\nobreak
+    \vskip 40\p@
+  }}
+\def\@schapter#1{\if@twocolumn
+                   \@topnewpage[\@makeschapterhead{#1}]%
+                 \else
+                   \@makeschapterhead{#1}%
+                   \@afterheading
+                 \fi}
+\def\@makeschapterhead#1{%
+  \vspace*{50\p@}%
+  {\parindent \z@ \raggedright
+    \normalfont
+    \interlinepenalty\@M
+    \Huge \bfseries  #1\par\nobreak
+    \vskip 40\p@
+  }}
+\newcommand\section{\@startsection {section}{1}{\z@}%
+                                   {-3.5ex \@plus -1ex \@minus -.2ex}%
+                                   {2.3ex \@plus.2ex}%
+                                   {\normalfont\Large\bfseries}}
+\newcommand\subsection{\@startsection{subsection}{2}{\z@}%
+                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
                                   {1.5ex \@plus .2ex}%
                                   {\normalfont\large\bfseries}}
-
-\newcommand\cpamsubsubsection{\let\@seccntformat\@gseccntformat
-\@startsection{subsubsection}{3}{\z@}{-3.25ex\@plus -1ex \@minus -.2ex}%
+\newcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
+                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
                                      {1.5ex \@plus .2ex}%
                                      {\normalfont\normalsize\bfseries}}
-\def\cpamsub[#1]#2{\cpamsubsubsection*{#2}%
-\addcontentsline{toc}{subsubsection}{\normalfont#1}}
-\def\cpamsubb#1{\cpamsubsubsection*{#1}%
-\addcontentsline{toc}{subsubsection}{\normalfont#1}}
-\def\subsubsection{\@ifnextchar*{\cpamsubsubsection}{\@ifnextchar[{\cpamsub}{%
-\cpamsubb}}}
-
 \newcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
                                     {3.25ex \@plus1ex \@minus.2ex}%
                                     {-1em}%
@@ -274,24 +442,13 @@
 \newcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
                                        {3.25ex \@plus1ex \@minus .2ex}%
                                        {-1em}%
-                                      {\reset@font\normalsize\bfseries}}
-\def\@dottedtocline#1#2#3#4#5{\ifnum #1>\c@tocdepth \else
-  \vskip \z@ \@plus.2\p@
-  {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
-    \parindent #2\relax\@afterindenttrue
-   \interlinepenalty\@M
-   \leavevmode
-   \@tempdima #3\relax
-   \advance\leftskip \@tempdima \hbox{}\hskip -\leftskip
-    {#4}\nobreak\leaders\hbox{$\m@th \mkern \@dotsep mu\mkern \@dotsep
-       mu$}\hfill \nobreak
-           \hbox to\@pnumwidth{\hfil\reset@font\rmfamily #5}\par}\fi}
-
+                                      {\normalfont\normalsize\bfseries}}
 \if@twocolumn
   \setlength\leftmargini  {2em}
 \else
   \setlength\leftmargini  {2.5em}
 \fi
+\leftmargin  \leftmargini
 \setlength\leftmarginii  {2.2em}
 \setlength\leftmarginiii {1.87em}
 \setlength\leftmarginiv  {1.7em}
@@ -302,17 +459,16 @@
   \setlength\leftmarginv  {1em}
   \setlength\leftmarginvi {1em}
 \fi
-\setlength\leftmargin    {\leftmargini}
 \setlength  \labelsep  {.5em}
 \setlength  \labelwidth{\leftmargini}
 \addtolength\labelwidth{-\labelsep}
 \@beginparpenalty -\@lowpenalty
 \@endparpenalty   -\@lowpenalty
 \@itempenalty     -\@lowpenalty
-\renewcommand\theenumi{\arabic{enumi}}
-\renewcommand\theenumii{\alph{enumii}}
-\renewcommand\theenumiii{\roman{enumiii}}
-\renewcommand\theenumiv{\Alph{enumiv}}
+\renewcommand\theenumi{\@arabic\c@enumi}
+\renewcommand\theenumii{\@alph\c@enumii}
+\renewcommand\theenumiii{\@roman\c@enumiii}
+\renewcommand\theenumiv{\@Alph\c@enumiv}
 \newcommand\labelenumi{\theenumi.}
 \newcommand\labelenumii{(\theenumii)}
 \newcommand\labelenumiii{\theenumiii.}
@@ -320,56 +476,60 @@
 \renewcommand\p@enumii{\theenumi}
 \renewcommand\p@enumiii{\theenumi(\theenumii)}
 \renewcommand\p@enumiv{\p@enumiii\theenumiii}
-\newcommand\labelitemi{$\m@th\bullet$}
-\newcommand\labelitemii{\normalfont\bfseries --}
-\newcommand\labelitemiii{$\m@th\ast$}
-\newcommand\labelitemiv{$\m@th\cdot$}
+\newcommand\labelitemi{\textbullet}
+\newcommand\labelitemii{\normalfont\bfseries \textendash}
+\newcommand\labelitemiii{\textasteriskcentered}
+\newcommand\labelitemiv{\textperiodcentered}
 \newenvironment{description}
                {\list{}{\labelwidth\z@ \itemindent-\leftmargin
                         \let\makelabel\descriptionlabel}}
                {\endlist}
-\newcommand\descriptionlabel[1]{\hspace\labelsep
+\newcommand*\descriptionlabel[1]{\hspace\labelsep
                                 \normalfont\bfseries #1}
 \if@titlepage
   \newenvironment{abstract}{%
       \titlepage
       \null\vfil
-      \begin{center}
+      \@beginparpenalty\@lowpenalty
+      \begin{center}%
         \bfseries \abstractname
-      \end{center}}
+        \@endparpenalty\@M
+      \end{center}}%
      {\par\vfil\null\endtitlepage}
 \else
 \newenvironment{abstract}{%
       \if@twocolumn
-        \section*{\footnotesize \abstractname}%
+        \section*{\abstractname}%
       \else
+        \small
         \begin{center}%
-\vskip -\p@
-          {\bfseries \footnotesize\abstractname\vspace{-.15em}}%
+          {\bfseries \abstractname\vspace{-.5em}\vspace{\z@}}%
         \end{center}%
-   \if@afterindent\hskip \parindent\else\relax\fi%      %change is made (fang)
-   \fi\footnotesize\ignorespaces}{\par}%                %change is made (fang)
+        \quotation
+      \fi}
+      {\if@twocolumn\else\endquotation\fi}
 \fi
 \newenvironment{verse}
-               {\let\\=\@centercr
+               {\let\\\@centercr
                 \list{}{\itemsep      \z@
                         \itemindent   -1.5em%
                         \listparindent\itemindent
                         \rightmargin  \leftmargin
                         \advance\leftmargin 1.5em}%
-                \item[]}
+                \item\relax}
                {\endlist}
 \newenvironment{quotation}
                {\list{}{\listparindent 1.5em%
                         \itemindent    \listparindent
                         \rightmargin   \leftmargin
                         \parsep        \z@ \@plus\p@}%
-                \item[]}
+                \item\relax}
                {\endlist}
 \newenvironment{quote}
                {\list{}{\rightmargin\leftmargin}%
-                \item[]}
+                \item\relax}
                {\endlist}
+\if@compatibility
 \newenvironment{titlepage}
     {%
       \if@twocolumn
@@ -378,31 +538,32 @@
         \@restonecolfalse\newpage
       \fi
       \thispagestyle{empty}%
-      \if@compatibility
-        \setcounter{page}{0}
+      \setcounter{page}\z@
+    }%
+    {\if@restonecol\twocolumn \else \newpage \fi
+    }
+\else
+\newenvironment{titlepage}
+    {%
+      \if@twocolumn
+        \@restonecoltrue\onecolumn
       \else
-        \setcounter{page}{1}%
-      \fi}%
+        \@restonecolfalse\newpage
+      \fi
+      \thispagestyle{empty}%
+      \setcounter{page}\@ne
+    }%
     {\if@restonecol\twocolumn \else \newpage \fi
-      \setcounter{page}{1}%
+     \if@twoside\else
+        \setcounter{page}\@ne
+     \fi
     }
+\fi
 \newcommand\appendix{\par
+  \setcounter{chapter}{0}%
   \setcounter{section}{0}%
-  \setcounter{subsection}{0}%
-  \renewcommand\thesection{\Alph{section}}}
-%                                                       %change is made (fang)
-\newcount\cpamappdx
-\cpamappdx=0
-\def\cpamapp#1[#2]{\let\@seccntformat\@gseccntformat\section*{#1#2}
-\addcontentsline{toc}{section}{\normalfont\bfseries #1#2}}
-\def\singappdx{\refstepcounter{section}\@ifnextchar[{\cpamapp
-{Appendix:\ }}{\cpamapp{Appendix}[]}}
-\def\multappdx{\refstepcounter{section}\@ifnextchar[{\cpamapp{Appendix
-\thesection:\ }}{\cpamapp{Appendix                      % Added space after colon
-\thesection}[]}}
-\def\appdx{\ifodd\cpamappdx\let\cpamappendix\multappdx\else\let\cpamappendix
-\singappdx\fi\advance\cpamappdx by 10\cpamappendix}
-
+  \renewcommand\@chapapp{\appendixname}%
+  \renewcommand\thechapter{\@Alph\c@chapter}}
 \setlength\arraycolsep{5\p@}
 \setlength\tabcolsep{6\p@}
 \setlength\arrayrulewidth{.4\p@}
@@ -411,28 +572,29 @@
 \skip\@mpfootins = \skip\footins
 \setlength\fboxsep{3\p@}
 \setlength\fboxrule{.4\p@}
-\renewcommand\theequation{\thesection.%                 % Changed to \thesection
-\arabic{equation}}%                                     % Change is made (fang)
-\newcounter{figure}
-\renewcommand\thefigure{\thesection.%
-\@arabic\c@figure}%                                     % Change is made (fang)
+\@addtoreset {equation}{chapter}
+\renewcommand\theequation
+  {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@equation}
+\newcounter{figure}[chapter]
+\renewcommand \thefigure
+     {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@figure}
 \def\fps@figure{tbp}
 \def\ftype@figure{1}
 \def\ext@figure{lof}
-\def\fnum@figure{\figurename~\thefigure}
+\def\fnum@figure{{\bf \figurename~\thefigure}}
 \newenvironment{figure}
                {\@float{figure}}
                {\end@float}
 \newenvironment{figure*}
                {\@dblfloat{figure}}
                {\end@dblfloat}
-\newcounter{table}
-\renewcommand\thetable{\arabic{section}.%
-\@arabic\c@table}%                                     %change is made (fang)
+\newcounter{table}[chapter]
+\renewcommand \thetable
+     {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@table}
 \def\fps@table{tbp}
 \def\ftype@table{2}
 \def\ext@table{lot}
-\def\fnum@table{\tablename~\thetable}
+\def\fnum@table{{\bf \tablename~\thetable}}
 \newenvironment{table}
                {\@float{table}}
                {\end@float}
@@ -445,12 +607,12 @@
 \setlength\belowcaptionskip{0\p@}
 \long\def\@makecaption#1#2{%
   \vskip\abovecaptionskip
-  \sbox\@tempboxa{#1.\hspace{.5em} #2}%        %^ PDM 7/15/96 \hspace
-  \ifdim \wd\@tempboxa >.75\hsize
-  \begin{quote}#1.\hspace{.5em} #2%\par         %^ PDM 7/15/96 \hspace
-    \end{quote}
+  \sbox\@tempboxa{#1: #2}%
+  \ifdim \wd\@tempboxa >\hsize
+    #1: #2\par
   \else
-    \hbox to \hsize{\hfil\box\@tempboxa\hfil}%
+    \global \@minipagefalse
+    \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
   \fi
   \vskip\belowcaptionskip}
 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
@@ -460,73 +622,90 @@
 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
-%\renewcommand{\cal}{\protect\pcal}
-\newcommand{\pcal}{\@fontswitch{\relax}{\mathcal}}
-%\renewcommand{\mit}{\protect\pmit}
-\newcommand{\pmit}{\@fontswitch{\relax}{\mathnormal}}
+\DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
+\DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal}
 \newcommand\@pnumwidth{1.55em}
 \newcommand\@tocrmarg {2.55em}
 \newcommand\@dotsep{4.5}
-\setcounter{tocdepth}{3}
+\setcounter{tocdepth}{1}
 \newcommand\tableofcontents{%
-    \section*{\contentsname
-        \@mkboth{\uppercase{\contentsname}}{\uppercase{\contentsname}}}%
-    \@starttoc{toc}}
-\newcommand\l@part[2]{%
+    \if@twocolumn
+      \@restonecoltrue\onecolumn
+    \else
+      \@restonecolfalse
+    \fi
+    \chapter*{\contentsname
+        \@mkboth{%
+           \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
+    \@starttoc{toc}%
+    \if@restonecol\twocolumn\fi
+    }
+\newcommand*\l@part[2]{%
   \ifnum \c@tocdepth >-2\relax
-    \addpenalty{\@secpenalty}%
+    \addpenalty{-\@highpenalty}%
     \addvspace{2.25em \@plus\p@}%
     \begingroup
       \setlength\@tempdima{3em}%
       \parindent \z@ \rightskip \@pnumwidth
       \parfillskip -\@pnumwidth
       {\leavevmode
-       \large \bfseries #1\hfil \hbox to\@pnumwidth{\hss #2}}\par
+       \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
        \nobreak
-       \if@compatibility
          \global\@nobreaktrue
-         \everypar{\global\@nobreakfalse\everypar{}}
-      \fi
+         \everypar{\global\@nobreakfalse\everypar{}}%
     \endgroup
   \fi}
-\newcommand\l@section[2]{%
-  \ifnum \c@tocdepth >\z@
-    \addpenalty{\@secpenalty}%
-    \addvspace{1.0em \@plus\p@}%
-    \setlength\@tempdima{1.4em}%
+\newcommand*\l@chapter[2]{%
+  \ifnum \c@tocdepth >\m@ne
+    \addpenalty{-\@highpenalty}%
+    \vskip 1.0em \@plus\p@
+    \setlength\@tempdima{1.5em}%
     \begingroup
       \parindent \z@ \rightskip \@pnumwidth
       \parfillskip -\@pnumwidth
       \leavevmode \bfseries
       \advance\leftskip\@tempdima
       \hskip -\leftskip
-      #1\nobreak\hfil \nobreak\hbox to\@pnumwidth{\hss #2}\par
+      #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
+      \penalty\@highpenalty
     \endgroup
   \fi}
-\newcommand\l@subsection   {\@dottedtocline{2}{1.4em}{2.2em}}
-\newcommand\l@subsubsection{\@dottedtocline{3}{5.3em}{0em}}%%change is made (fang)
-\newcommand\l@paragraph    {\@dottedtocline{4}{5.8em}{3.8em}}
-\newcommand\l@subparagraph {\@dottedtocline{5}{9.6em}{5em}}
+\newcommand*\l@section{\@dottedtocline{1}{1.5em}{2.3em}}
+\newcommand*\l@subsection{\@dottedtocline{2}{3.8em}{3.2em}}
+\newcommand*\l@subsubsection{\@dottedtocline{3}{7.0em}{4.1em}}
+\newcommand*\l@paragraph{\@dottedtocline{4}{10em}{5em}}
+\newcommand*\l@subparagraph{\@dottedtocline{5}{12em}{6em}}
 \newcommand\listoffigures{%
-    \section*{\listfigurename
-      \@mkboth{\uppercase{\listfigurename}}%
-              {\uppercase{\listfigurename}}}%
+    \if@twocolumn
+      \@restonecoltrue\onecolumn
+    \else
+      \@restonecolfalse
+    \fi
+    \chapter*{\listfigurename
+      \@mkboth{\MakeUppercase\listfigurename}%
+              {\MakeUppercase\listfigurename}}%
     \@starttoc{lof}%
+    \if@restonecol\twocolumn\fi
     }
-\newcommand\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
+\newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
 \newcommand\listoftables{%
-    \section*{\listtablename
-      \@mkboth{\uppercase{\listtablename}}{\uppercase{\listtablename}}}%
+    \if@twocolumn
+      \@restonecoltrue\onecolumn
+    \else
+      \@restonecolfalse
+    \fi
+    \chapter*{\listtablename
+      \@mkboth{%
+          \MakeUppercase\listtablename}{\MakeUppercase\listtablename}}%
     \@starttoc{lot}%
+    \if@restonecol\twocolumn\fi
     }
 \let\l@table\l@figure
 \newdimen\bibindent
-\bibindent=1.5em
-%% Added below from article.cls on 2/19/98
+\setlength\bibindent{1.5em}
 \newenvironment{thebibliography}[1]
-     {\section*{\refname
-        \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}}%
-      \footnotesize    %2/19/98
+     {\chapter*{\bibname
+        \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}}%
       \list{\@biblabel{\@arabic\c@enumiv}}%
            {\settowidth\labelwidth{\@biblabel{#1}}%
             \leftmargin\labelwidth
@@ -543,36 +722,8 @@
      {\def\@noitemerr
        {\@latex@warning{Empty `thebibliography' environment}}%
       \endlist}
-%% Deleted below on 2/19/98
-%\newenvironment{thebibliography}[1]                     %change is made (fang)
-%     {\section*{\refname\@mkboth{\uppercase{\refname}}{\uppercase{\refname}}}%
-%        \footnotesize%                          %change is made (fang)
-%        \list{\@biblabel{\arabic{enumiv}}}%
-%           {\settowidth\labelwidth{\@biblabel{#1}}%
-%            \leftmargin\labelwidth
-%            \advance\leftmargin\labelsep
-%            \if@openbib
-%              \advance\leftmargin\bibindent
-%              \itemindent -\bibindent
-%              \listparindent \itemindent
-%            \fi\parsep 2\p@ \itemsep \z@
-%            \usecounter{enumiv}%
-%            \let\p@enumiv\@empty
-%            \renewcommand\theenumiv{\arabic{enumiv}}}%
-%      \if@openbib
-%        \renewcommand\newblock{\par}
-%      \else
-%        \renewcommand\newblock{\hskip .11em \@plus.33em \@minus.07em}%
-%      \fi
-%      \sloppy\clubpenalty4000\widowpenalty4000%
-%      \sfcode`\.=\@m}
-%     {\def\@noitemerr
-%       {\@latex@warning{Empty `thebibliography' environment}}%
-%      \endlist}
-%% Inserted next two lines from article.cls on 2/19/98
 \newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
 \let\@openbib@code\@empty
-%\newcommand\newblock{}  %2/19/98
 \newenvironment{theindex}
                {\if@twocolumn
                   \@restonecolfalse
@@ -581,62 +732,50 @@
                 \fi
                 \columnseprule \z@
                 \columnsep 35\p@
-                \twocolumn[\section*{\indexname}]%
-                \@mkboth{\uppercase{\indexname}}%
-                        {\uppercase{\indexname}}%
+                \twocolumn[\@makeschapterhead{\indexname}]%
+                \@mkboth{\MakeUppercase\indexname}%
+                        {\MakeUppercase\indexname}%
                 \thispagestyle{plain}\parindent\z@
                 \parskip\z@ \@plus .3\p@\relax
                 \let\item\@idxitem}
                {\if@restonecol\onecolumn\else\clearpage\fi}
 \newcommand\@idxitem  {\par\hangindent 40\p@}
-\newcommand\subitem   {\par\hangindent 40\p@ \hspace*{20\p@}}
-\newcommand\subsubitem{\par\hangindent 40\p@ \hspace*{30\p@}}
+\newcommand\subitem{\@idxitem \hspace*{20\p@}}
+\newcommand\subsubitem{\@idxitem \hspace*{30\p@}}
 \newcommand\indexspace{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
-
-
-% Removed 2/10/98
-%\def\footnoterule{\kern-\p@\hrule width6pc height.5\p@\kern5\p@}
-%\long\def\@makefntext#1{\parindent 1em\noindent\@makefnmark#1}%change is made
-                                                              %        (fang)
-%% Incorporated from article.cls 2/10/98
-
 \renewcommand\footnoterule{%
   \kern-3\p@
   \hrule\@width.4\columnwidth
-  \kern4.6\p@}
-%\newcommand\@makefntext[1]{%
-%    \parindent 1em%
-%    \noindent
-%    \hb@xt@1.8em{\hss\@makefnmark}#1}
-\newcommand{\@makefntext}[1]{\setlength{\parindent}{0pt}%
-  \begin{list}{}{\setlength{\labelwidth}{1.0em}%
-      \setlength{\partopsep}{0pt}%
-      \setlength{\leftmargin}{\labelwidth}%
-      \setlength{\labelsep}{3pt}\setlength{\itemsep}{0pt}%
-      \setlength{\parsep}{2pt}\setlength{\topsep}{0pt}%
-      \footnotesize}\item[\hfill\@makefnmark]#1%
-  \end{list}
-}
-
-
-
+  \kern2.6\p@}
+\@addtoreset{footnote}{chapter}
+\newcommand\@makefntext[1]{%
+    \parindent 1em%
+    \noindent
+    \hb@xt@1.8em{\hss\@makefnmark}#1}
 \newcommand\contentsname{Contents}
 \newcommand\listfigurename{List of Figures}
 \newcommand\listtablename{List of Tables}
-\newcommand\refname{Bibliography}%                       %change is made (fang)
+\newcommand\bibname{Bibliography}
 \newcommand\indexname{Index}
 \newcommand\figurename{Figure}
 \newcommand\tablename{Table}
 \newcommand\partname{Part}
+\newcommand\chaptername{Chapter}
 \newcommand\appendixname{Appendix}
 \newcommand\abstractname{Abstract}
-\newcommand\today{\ifcase\month\or
+\newcommand\today{}
+\edef\today{\ifcase\month\or
   January\or February\or March\or April\or May\or June\or
   July\or August\or September\or October\or November\or December\fi
   \space\number\day, \number\year}
 \setlength\columnsep{10\p@}
 \setlength\columnseprule{0\p@}
-\pagenumbering{arabic}      % Arabic page numbers
+\pagestyle{plain}
+\pagenumbering{arabic}
+\if@twoside
+\else
+  \raggedbottom
+\fi
 \if@twocolumn
   \twocolumn
   \sloppy
@@ -644,461 +783,6 @@
 \else
   \onecolumn
 \fi
-%%%%%%%%%%%%%%%%%%%%%%%% New Features of CPAM Class %%%%%%%%%%%%%%%%%%%%%%%%%
-\AtBeginDocument{
-\expandafter\ifx\csname ver@amsthm.sty\endcsname\relax\else
-\let\@thm\@cpamthm
-\let\@begintheorem\@cpambegintheorem
-\let\@opargbegintheorem\relax
-\fi
-}
-\newcommand{\wiley}{{\scriptsize
-\copyright~\theyear\ John
-  Wiley \& Sons, Inc.}}
-
-% Removed on 3/6/98 (use \usepackage{times} instead)
-%\def\cpamtimes{
-%\let\tempencoding\encodingdefault
-%\def\encodingdefault{T1}
-%\@ifundefined{T@T1}{%
-%    \InputIfFileExists{T1enc.def}{}{%
-%         \@warning{Encoding file `T1enc.def' not found}%
-%        \let\encodingdefault\tempencoding
-%      }%
-%   }{}%
-%\fontencoding\encodingdefault\selectfont
-%\renewcommand{\sfdefault}{phv} \renewcommand{\rmdefault}{ptm}
-%\renewcommand{\ttdefault}{pcr}\def\cpamtimespace
-%{\spaceskip .3333em plus .16666em minus .1111em}\normalsize\rmfamily
-%}
-
-\def\authorheadline#1{\def\@authorheadline{\small\uppercase{#1}}}
-\def\titleheadline#1{\def\@titleheadline{\small\uppercase{#1}}}
-
-\def\@authorheadline{\small\uppercase{Author}}
-\def\@titleheadline{\small\uppercase{Version of Title For Headline}}
-\def\dedication#1{\gdef\@dedication{{\vskip1.5\p@\parindent=\z@%
-\everypar={\hskip\parfillskip}
-\baselineskip=10\p@\vrule height26\p@ width\z@ depth\z@
-\normalfont\rmfamily #1\vrule depth3\p@ width\z@ height\z@\vskip1sp}
-\everypar={\vskip18\p@\everypar={}}}}
-
-\def\@dedication{}
-
-\def\acknowledgment{\vskip6\p@ {\normalfont\bfseries Acknowledgment. }} %7/11/97 Changed \vskip10 to \vskip0, Acknowledgement to Acknowledgment
-\let\ack\acknowledgment
-
-%9/27/97 Added plural "Acknowledgments"
-\def\acknowledgments{\vskip6\p@ {\normalfont\bfseries Acknowledgments. }}
-\let\acks\acknowledgments
-
-\def\title#1{\ifodd\c@page\else\ \thispagestyle{empty}\vfill\break\fi%
-\gdef\@title{\normalfont\bfseries \Large #1}}
-\def\@cpamthm#1#2#3{\normalfont %
-  \labelsep.5em\relax \let\thmheadnl\relax
-  \let\theoremindent\noindent % no indent
-  \let\thm@swap\@gobble
-  \theoremheadfont{\scshape}% heading font bold
-  \theoremheadpunct{.}% add period after heading
-  \theorempreskipamount\topsep
-  \theorempostskipamount\theorempreskipamount
-  #1% style overrides
-  \def\@tempa{#2}\ifx\@empty\@tempa
-    \def\@tempa{\@oparg{\@begintheorem{#3}{}}[]}%
-  \else
-    \refstepcounter{#2}%
-    \def\@tempa{\@oparg{\@begintheorem{#3}{\csname the#2\endcsname}}[]}%
-  \fi
-  \@tempa
-}
-\def\@cpambegintheorem#1#2[#3]{%
-\trivlist
-\item[\normalfont % reset in case body font is abnormal
-  \hskip\labelsep
-  \the\theoremheadfont
-  \theoremindent
-  \@ifempty{#1}{\let\thmname\@gobble}{\let\thmname\@iden}%
-  \@ifempty{#2}{\let\thmnumber\@gobble}{\let\thmnumber\@iden}%
-  \@ifempty{#3}{\let\thmnote\@gobble}{\let\thmnote\@iden}%
-\thmhead{#1}{\hskip .17\parindent#2}{#3}]
-  \thmheadnl % possibly a newline.
-\hskip .32\parindent
-  \ignorespaces}
-
-\def\@title{\@latex@error{No \noexpand\title given}\@ehc}
-
-\oddsidemargin -.5\p@
-\setlength{\evensidemargin}{123truept}
-\marginparwidth 54.2\p@
-\marginparsep 7\p@
-\topmargin -21\p@
-\headheight 12\p@
-\headsep 13.99\p@
-\footskip 25\p@
-\columnsep 10\p@ \columnseprule \z@
-\footnotesep 2\p@
-\skip\footins 9\p@ plus 4\p@ minus 2\p@
-\floatsep 12\p@ plus 2\p@ minus 2\p@
-\intextsep 12\p@ plus 2\p@ minus 2\p@
-
-\setlength{\textwidth}{348truept}
-\setlength{\textheight}{540truept}
-
-\parindent=1.4em                    %2/19/98, not changed, but should be to absolute length
-
-%% Change below gives rubber length to \parskip for \flushbottom (default is rubber)
-%\parskip=\z@                       %2/19/98
-\parskip=0\p@ plus .5\p@            %2/19/98
-
-%\widowpenalty=10000                %2/19/98
-%\clubpenalty=10000                 %2/19/98
-%\raggedbottom                      %2/19/98
-\topsep 8\p@ plus 2\p@ minus 4\p@
-\partopsep 2\p@ plus \p@ minus \p@
-%\itemsep 4\p@ plus 2\p@ minus \p@  %2/19/98
-
-\def\yearofpublication#1{\def\theyear{#1}}
-\def\volume#1{\def\thevolume{#1}}
-\def\cccline#1{\def\thecccline{#1}}
-
-\yearofpublication{???}
-\volume{???}
-\cccline{???}
-
-\def\received#1{\def\thereceived{\normalsize Received #1.}}
-\def\revised#1{\def\therevised{\normalsize Revised #1.}}
-\long\def\moreatend#1{\long\def\themoreatend{\noindent#1}}
-\def\themoreatend{}
-\def\thereceived{}
-\def\therevised{}
-\def\digitpage#1{\ifnum#1<10 000#1\else\ifnum#1<100 00#1\else\ifnum#1<1000
-0#1\else#1\fi\fi\fi}
-\def\twodigitnumber#1{\ifnum#1<10 0#1\else#1\fi} % Added 1/27/97
-\def\startingpage#1{\c@page=#1\def\firstpage{#1}}
-\def\lastpage{2}
-\startingpage{1}
-
-\newcount\totpages
-\def\cpampages{%
-\digitpage{\firstpage}--\digitpage{\lastpage}%
-\totpages=\lastpage%
-\advance\totpages by -\firstpage%
-\advance\totpages by 1%
-\gdef\totalpages{\the\totpages}
-}
-\let\saveenddoc\enddocument
-
-%Changed \vskip22 to \vskip10  1/17/97  superseded by 3/6/98
-%Changed \vskip10 to \vskip0   7/11/97  superseded by 3/6/98
-% Changed next line to second line 3/6/98
-%\long\def\enddocument{\let\par\@@par\par\vskip0\p@\themoreatend\vskip0pt%
-\long\def\enddocument{%
-\noindent\thereceived\vskip0pt%
-\noindent\therevised
-\totpages=\thepage
-\clearpage
-\advance\totpages by -1
-%\ifodd\totpages\
-\totpages=\thepage
-\thispagestyle{empty} \clearpage
-%\fi
-\advance\totpages by -1
-\immediate\write\@auxout{%
-  \string\gdef\string\lastpage{\the\totpages}}
-\ifnum\cpamappdx>15%
-   \ifodd\cpamappdx\else\typeout{%
-     \@spaces CPAM Warning: Rerun to get appendix numbering correct.}%
-   \fi
-   \cpamappdx=1
-   \else \ifodd\cpamappdx%
-         \typeout{\@spaces CPAM: Rerun to get appendix numbering
-         correct.}%
-   \fi%
-   \cpamappdx=0%
-\fi%
-\immediate\write\@auxout{\string \global \string\cpamappdx=
-\the \cpamappdx}%
-\saveenddoc}
-
-\def\zerosection{\global\c@section-1\section}
-
-\def\smcopyright{{\raise 1\p@\hbox{\rmfamily\scriptsize\copyright}}}
-
-\def\@qed{\ifmmode % if math mode, assume display: omit penalty etc.
-  \else \leavevmode\unskip\penalty9999 \hbox{}\nobreak\hfill
-  \fi
-  \quad\hbox{\hskip.5em\vrule width.4em height.6em depth.05em\hskip.1em}}
-\def\endproofsym{\@qed}
-\let\cpamqed\@qed
-\def\endnobox{\def\endproofsym{}\end{proof}\def\endproofsym{\@qed}}
-
-%no footline
-%% Footline
-\def\mjfootline{}
-
-%% Footline
-%\def\mjfootline{{\let\par\@@par\leftskip=\z@\rightskip=\z@
-%\hbox{\vtop {\vskip 2\p@\parindent=\z@\baselineskip=9pt\rmfamily \footnotesize
-%Communications on Pure and Applied Mathematics, Vol.\ \thevolume,
-%\cpampages (\theyear)\hfill %\vskip0\p@
-%\vspace{0pt}
-%\hbox to \hsize{\smcopyright\ %\hskip3\p@  % Blanked out \hskip
-%\rmfamily \theyear\ John Wiley \& Sons, Inc.\hfil
-%CCC 0010--3640/98/%
-%\thecccline\digitpage{\firstpage}-\twodigitnumber{\totalpages}}}%
-                  %Added \twodigitnumber{} 1/27/97
-%}}}
-
-%% Old Footline
-%\def\mjfootline{\everypar={}\leftskip=0pt
-%\rightskip=0pt
-%\vtop to0pt{\vskip1sp
-%\iftitle\global\titlefalse
-%\hbox to\textwidth{\vtop{\parindent=0pt \parskip=0pt \parfillskip=0pt
-%\baselineskip=9pt \eightrm
-%Communications on Pure and Applied Mathematics,
-%Vol.\ \thevolume, \thepages\ (\theyear)\hfill\ \vskip1pt
-%\smcopyright\hskip3pt\theyear\ John Wiley \& Sons, Inc.\hfill
-%CCC \thecccline}}\else\hfill\fi\vss}}
-
-
-\def\ps@myheadings{\def\@oddfoot{\hss}%\mjfootline}
-    \def\@oddhead{{\hfil\normalfont\scshape
-\@titleheadline}\hfil\thepage}%
-    \let\@evenfoot\@empty
-    \def\@evenhead{\thepage\hfil\normalfont\scshape\@authorheadline\hfil}%
-    \let\@mkboth\@gobbletwo
-    \let\sectionmark\@gobble
-    \let\subsectionmark\@gobble}
-
-\def\ps@ffirstpage{\ps@plain
-  \def\@oddfoot{\mjfootline}
-  \let\@evenfoot\@oddfoot
-  \def\@oddhead{\hss}%
-  \let\@evenhead\@oddhead}% in case an article starts on a left-hand page
-
-\def\enddemosym{}
-
-\@definecounter{@@Democounter}
-\def\setdemocounter#1{\def\the@@Democounter{\csname the#1\endcsname}
-\def\@@democounter{#1}}
-\def\tmp@demo#1{\refstepcounter{\@@democounter}\nonumthm[\indent{#1}%
-\hskip .2\parindent\the@@Democounter]\ignorespaces}
-
-\def\demo#1{\global\@ignorefalse
-\begingroup\@endpefalse\def\@currenvir{cpamfdemo}\edef\@currenvline{\on@line}
-\def\tdemo@demo{#1}%
-\def\tdemo@demoa{Example}%
-%\def\tdemo@democ{Remark}%            % Commented out to make unnumbered Remark
-\def\tdemo@demob{Conjecture{}}%
-\ifx\tdemo@demo\tdemo@demoa\tmp@demo{\itshape Example}% % Added periods below 1/15/97
-\else\ifx\tdemo@demo\tdemo@demob\tmp@demo{\itshape Conjecture.}% Added
-                                                               % periods here and below 1/15/97
-%    \else\ifx\tdemo@demo\tdemo@democ\tmp@demo{\itshape Remark.}%% Commented out to make unnumbered Remark
-        \else%
-            \nonumthm[\indent{\itshape #1.}]\ignorespaces   % Changed \normalfont to \itshape 1/15/97
-        \fi
-    %\fi
-\fi
-}
-
-\def\cpam@demoend{cpamfdemo}
-
-\def\@badend#1{\ifx\@currenvir\cpam@demoend
-\def\cpammessage{\protect\demo{...}}\else
-\def\cpammessage{\protect\begin{\@currenvir}}\fi
-\ifx\@tempa\cpam@demoend\def\cpammessagee{\protect\enddemo}\else
-\def\cpammessagee{\protect\end{#1}}\fi
-\@latex@error{\cpammessage\@currenvline\space
- ended by \cpammessagee}\@ehd}
-
-\def\enddemo{\endnonumthm\@checkend{cpamfdemo}\expandafter\endgroup\if@endpe
-\@doendpe\fi\if@ignore\global\@ignorefalse\ignorespaces\fi}
-
-\newtheorem{theorem}{Theorem}[section]
-\setdemocounter{theorem}
-
-\newenvironment{nonumthm}[1][Demonstration:]{\trivlist \item[\hskip\labelsep%
-{{\normalfont\scshape #1}}]\hskip .32\parindent}{\enddemosym\endtrivlist}
-
-\newenvironment{proof}[1][Proof]{\trivlist\item[\hskip\labelsep{\hskip    % Deleted colon after "Proof" 1/15/97
-\parindent{\normalfont\scshape#1:}\hskip .321429\parindent}]\ignorespaces}% Added colon after proof title 1/15/97
-{\endproofsym\endtrivlist}
-
-\def\@begintheorem#1#2{\trivlist\item[\hskip\labelsep{%
-{\normalfont\rmfamily\scshape#1}\hskip .2\parindent{\normalfont#2\hskip
-.32\parindent}}]\rmfamily\itshape\ignorespaces}
-
-\def\@opargbegintheorem#1#2#3{\trivlist \item[\hskip\labelsep{%
-{\normalfont\scshape#1}\hskip .2\parindent\textmd{#2}\hskip %
-.2\parindent\textmd{(#3)}\hskip .32\parindent}]\itshape\ignorespaces}
-
-\@addtoreset{equation}{section}
-\@addtoreset{figure}{section}                    %^ PDM added 7/15/96
-
-\newdimen\cpamarraycolsep
-\setlength{\cpamarraycolsep}{.16667em}
-
-\def\eqnarray{\stepcounter{equation}%
-\def\@currentlabel{\p@equation\theequation}%
-\global\@eqnswtrue\m@th
-\global\@eqcnt\z@\tabskip\@centering\let\\\@eqncr
-$$\everycr{}\halign to\displaywidth\bgroup\hskip\@centering
-  $\displaystyle\tabskip\z@skip{##}$\@eqnsel&\global\@eqcnt\@ne
-  \hskip \tw@\cpamarraycolsep \hfil${##}$\hfil
-  &\global\@eqcnt\tw@ \hskip \tw@\cpamarraycolsep
-  $\displaystyle{##}$\hfil
-   \tabskip\@centering&\global\@eqcnt\thr@@
-       \hbox to\z@\bgroup\hss##\egroup\tabskip\z@skip\cr}
-
-\newif\if@ceqnsw
-\newskip\baselineskipp\newskip\cabovedisplayskip
-
-\def\veqnarray{\baselineskipp=\baselineskip%\baselineskip=-1000\p@%
-\cabovedisplayskip=\abovedisplayskip%
-\advance\abovedisplayskip by -.3\cabovedisplayskip%
-\advance\belowdisplayskip by -.3\cabovedisplayskip%
-$$\global\@ceqnswtrue\refstepcounter{equation}%
-\edef\@currentlabel{\theequation}%
-\m@th\global\@eqcnt\z@\tabskip\@centering\let\\\@eqncr%
-\vcenter\bgroup\everycr{}\vskip .7\cabovedisplayskip%
-\baselineskip=\baselineskipp%
-\halign\bgroup\hskip\@centering\global\@eqnswfalse
-  $\displaystyle\tabskip\z@skip{##}$\@eqnsel&\global\@eqcnt\@ne
-  \hskip \tw@\cpamarraycolsep \hfil${##}$\hfil
-  &\global\@eqcnt\tw@ \hskip \tw@\cpamarraycolsep
-  $\displaystyle{##}$\hfil%
-   \tabskip\@centering&\global\@eqcnt\thr@@
-       \hbox to\z@\bgroup\hss##\egroup\tabskip\z@skip\cr}
-
-\def\endveqnarray{\@@eeqncr\egroup\vskip .7\cabovedisplayskip\egroup%
-\eqno\if@ceqnsw\hbox{\@eqnnum}\else \global\advance\c@equation\m@ne\fi%
-\global\@ignoretrue$$}
-
-\def\nonumber{\global\@eqnswfalse\global\@ceqnswfalse}
-
-\def\@@eeqncr{\let\@tempa\relax\ifcase\@eqcnt\def\@tempa{& &}\or\def\@tempa{&}%
-        \or \else
-       \let\@tempa\@empty
-       \@latex@error{Too many columns in eqnarray environment}\@ehc\fi
-        \global\@eqcnt\z@\cr}
-
-\@afterindentfalse \pagestyle{myheadings}
-
-\tolerance=200
-\topskip=10\p@
-\maxdepth=4\p@
-\@maxdepth=4\p@
-
-\newcounter{abceqn}
-\def\alphaeq{\setcounter{abceqn}{\value{equation}}
-           \addtocounter{abceqn}{1}  \setcounter{equation}{0}
-           \def \theabceqn{\arabic{section}.\arabic{abceqn}\alph{equation}}
-           \def \theequation{\theabceqn} }
-\def\endalphaeq{\def \theequation{\arabic{equation}}
-                  \setcounter{equation}{\value{abceqn}}}
-\def\affil{\vrule height 11.2pt width \z@\small\itshape}
-\long\def\@caption#1[#2]#3{\par\addcontentsline{\csname
-  ext@#1\endcsname}{#1}{\protect\numberline{\csname
-  the#1\endcsname}{\ignorespaces #2}}\begingroup
-    \@parboxrestore
-    \footnotesize
-    \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
-  \endgroup}
-
-%%
-% The following command switches to lowercase roman numeral
-% enumeration. It is useful for roman enumeration in a theorem
-% environment.
-
-\newcommand{\romnum}{
-  \renewcommand{\theenumi}{\roman{enumi}}
-  \renewcommand\labelenumi{\rm (\theenumi)}
-}
-
-
-% The following command switches to lowercase alphabetical
-% enumeration. It is useful for alphabetical enumeration in a theorem
-% environment.
-
-\newcommand{\alphanum}{
-  \renewcommand{\theenumi}{\alph{enumi}}
-  \renewcommand\labelenumi{\rm (\theenumi)}
-}
-
-%The following environment creates wider linespacing for accommodating
-%super- and subscripts in running text.
-
-\newenvironment{widelinespacing}%
-{\renewcommand{\baselinestretch}{1.3}\small\normalsize}
-{\renewcommand{\baselinestretch}{1.0}\small\normalsize}
-
-% The following environment is used for current author info at the end
-% of an article.
-
-\newenvironment{contact}{%
-  \noindent\begin{minipage}{\textwidth}\begin{tabbing}%
-  \hspace{.5\textwidth}\=\kill%
-}
-{
-  \end{tabbing}\end{minipage}%
-}
-
-
-
-
-
 \endinput
-
-
-
-
-
-
-%% End of file `cpam1n.cls'.
-Please enter change logs here.
-Change log:
-
-7/15/96 Added point after equation number, 5 pt space between figure
-number and caption, reset figure counter for each new section.
-
-7/16/96 Made double-enumeration for figures reset in each new section.
-
-7/26/96 Added \wiley command to create copyright
-
-8/1/96  Changed \mit and \cal to \newcommand from \renewcommand
-
-10/25/96 Added \romnum command.
-
-12/28/96 Made \romnum change to roman (i), etc.
-
-1/15/97 Changed \demo to be italic for all and with final period in heading
-
-1/15/97 Added colon after proof title, deleted colon after "Proof"
-
-1/16/97 Changed equation number to \thesection. instead of \arabic{section}
-
-1/17/97 Reduced vertical spacing to Received line at end of article
-
-1/27/97 Added \twodigitnumber command and added to \totalpages for formatting
-
-3/23/97 Added \alphanum command
-
-3/25/97 Added environment widelinespacing
-
-4/2/97  Made \demo{Remark} unnumbered
-
-5/5/97  Added psamsfonts to exercised options
-
-5/20/97 Removed period from Example in demo definitions
-
-7/11/97 Reduced spacing before \ack
-        Reduced spacing before \received at end
-
-10/1/97 Added space after colon in multiple appendix headers
-
-2/19/98 Added glue to bibliography spacing
-        Reformatted footnotes
-
-3/6/98  Changed end-of-document to lift ``Received'' and eliminate
-        unnecessary commands
+%%
+%% End of file `report.cls'.

 

Close Window
 
  The service has been written by
Heinrich Stamerjohanns