arxmliv
arxmliv build tool
 
KWARC group
LaTeXML
About
   
 

Back to Homepage

--- /arXMLiv/repos/arXMLiv/trunk/sty/article_cogis.cls	2010-04-03 06:44:13.000000000 +0200
+++ /arXMLiv/repos/arXMLiv/trunk/sty/newsiambook.cls	2007-06-14 22:13:13.000000000 +0200
@@ -1,65 +1,225 @@
-%%
-%% This is file `article.cls',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% classes.dtx  (with options: `article')
-%%
-%% This is a generated file.
-%%
-%% Copyright 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004
-%% The LaTeX3 Project and any individual authors listed elsewhere
-%% in this file.
-%%
-%% This file was generated from file(s) of the LaTeX base system.
-%% --------------------------------------------------------------
-%%
-%% It may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either version 1.3
-%% of this license or (at your option) any later version.
-%% The latest version of this license is in
-%%    http://www.latex-project.org/lppl.txt
-%% and version 1.3 or later is part of all distributions of LaTeX
-%% version 2003/12/01 or later.
-%%
-%% This file has the LPPL maintenance status "maintained".
-%%
-%% This file may only be distributed together with a copy of the LaTeX
-%% base system. You may however distribute the LaTeX base system without
-%% such generated files.
-%%
-%% The list of all files belonging to the LaTeX base distribution is
-%% given in the file `manifest.txt'. See also `legal.txt' for additional
-%% information.
-%%
-%% The list of derived (unpacked) files belonging to the distribution
-%% and covered by LPPL is defined by the unpacking scripts (with
-%% extension .ins) which are part of the distribution.
-%% \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{article}
-              [2004/02/16 v1.4f
- Standard LaTeX document class]
+\ProvidesClass{newsiambook}
+              [2000/06/29 v1.5.1
+ Customized LaTeX document class]
 \newcommand\@ptsize{}
 \newif\if@restonecol
 \newif\if@titlepage
-\@titlepagefalse
+\@titlepagetrue
+\newif\if@openright
+\newif\if@mainmatter \@mainmattertrue
 \if@compatibility\else
+\newif\if@onethmnum
+\@onethmnumfalse
+%_%_%_%_% remove theorem numbering from class???
+\newif\if@mytheorems
+\@mytheoremsfalse
+
+
+%_%_%_%default "plain" chapter opener...no graphic
+\DeclareOption{plain-opener}{%
+\def\@makechapterhead#1{%
+   {\parindent \z@ \raggedright \normalfont
+    \ifnum \c@secnumdepth >\m@ne
+      \if@mainmatter
+%
+\noindent\begin{picture}(360,144)
+\put(0,22.5){\setlength{\fboxsep}{0pt}%\fbox
+{\parbox[b][99pt][c]{300pt}{\raggedright\sffamily\Large\bfseries%
+\@chapapp\space \thechapter
+        \vskip3pt\par\nobreak
+    \Huge \bfseries #1\par}}}%%end of parbox and put
+\end{picture}
+ \fi
+    \fi
+    \interlinepenalty\@M}   \vskip 40\p@
+  }%
+\def\@part[#1]#2{%
+    \ifnum \c@secnumdepth >-2\relax
+      \refstepcounter{part}%
+      \addcontentsline{toc}{part}{\hbox to 20pt{\thepart}#1}%
+    \else
+      \addcontentsline{toc}{part}{#1}%
+    \fi
+    \markboth{}{}%
+    {\centering
+     \interlinepenalty \@M
+     \normalfont
+    %_%_%_%_%add part background graphic...
+ \ifnum \c@secnumdepth >-2\relax
+       \sffamily\huge\bfseries \partname~\thepart
+       \par
+       \vskip 20\p@
+     \fi
+     \sffamily\Huge \bfseries #2\par}%
+    \@endpart}}
+\DeclareOption{opener-d}{%
+%_%_%_%_% new makechapterhead
+%_%_%_%_% type "D"
+%_%_%_%_%
+\def\@makechapterhead#1{%
+   {\parindent \z@ \raggedright \normalfont
+    \ifnum \c@secnumdepth >\m@ne
+      \if@mainmatter
+%
+\noindent\begin{picture}(360,144)
+\put(0,11){\includegraphics[height=120pt]{macroa-1-gray.eps}}
+\put(72,22.5){\setlength{\fboxsep}{0pt}%\fbox
+{\parbox[b][99pt][c]{300pt}{\raggedright\sffamily\Large\bfseries%
+\@chapapp\space \thechapter
+        \vskip3pt\par\nobreak
+    \Huge \bfseries #1\par}}}%%end of parbox and put
+\end{picture}
+ \fi
+    \fi
+    \interlinepenalty\@M}   \vskip 40\p@
+  }%
+\def\@part[#1]#2{%
+    \ifnum \c@secnumdepth >-2\relax
+      \refstepcounter{part}%
+      \addcontentsline{toc}{part}{\hbox to 20pt{\thepart}#1}%
+    \else
+      \addcontentsline{toc}{part}{#1}%
+    \fi
+    \markboth{}{}%
+         \interlinepenalty \@M
+     \normalfont
+    %_%_%_%_%add part background graphic...
+ \ifnum \c@secnumdepth >-2\relax
+\noindent\begin{picture}(360,144)
+\put(0,11){\includegraphics[height=120pt]{macroa-1-gray.eps}}
+\put(72,22.5){\setlength{\fboxsep}{0pt}%\fbox
+{\parbox[b][99pt][c]{300pt}{\parindent0pt\sffamily\Large\bfseries%
+\partname\space \thepart
+        \vskip3pt\par\nobreak
+    \Huge \bfseries #2\par}}}%%end of parbox and put
+\end{picture}
+     \fi
+    \@endpart}}
+\DeclareOption{opener-c}{%
+%_%_%_%_% new makechapterhead
+%_%_%_%_% type "C"
+%_%_%_%_%
+\def\@makechapterhead#1{%
+   {\parindent \z@ \raggedright \normalfont
+    \ifnum \c@secnumdepth >\m@ne
+      \if@mainmatter
+%
+\noindent\begin{picture}(360,144)
+\put(0,0){\includegraphics[width=114pt]{macroa2-gray.eps}}
+\put(118,16){\vbox to 99pt{\hsize247pt\raggedright\sffamily\Large\bfseries%
+\vfill\@chapapp\space \thechapter
+        \vskip3pt\par\nobreak
+    \huge \bfseries #1\par\vfill}}%%end of parbox and put
+\end{picture}
+ \fi
+    \fi
+    \interlinepenalty\@M}   \vskip 40\p@
+  }%
+\def\@part[#1]#2{%
+    \ifnum \c@secnumdepth >-2\relax
+      \refstepcounter{part}%
+      \addcontentsline{toc}{part}{\hbox to 20pt{\thepart}#1}%
+    \else
+      \addcontentsline{toc}{part}{#1}%
+    \fi
+    \markboth{}{}%
+         \interlinepenalty \@M
+     \normalfont
+    %_%_%_%_%add part background graphic...
+ \ifnum \c@secnumdepth >-2\relax
+\noindent\begin{picture}(360,144)
+\put(0,0){\includegraphics[width=114pt]{macroa2-gray.eps}}
+\put(118,16){\vbox to 99pt{\hsize247pt\parindent0pt\sffamily\Large\bfseries%
+\vfill\partname\space \thepart
+        \vskip3pt\par\nobreak
+    \huge \bfseries #2\par\vfill}}%%end of parbox and put
+\end{picture}
+     \fi
+    \@endpart}}
+\DeclareOption{opener-b}{%
+%_%_%_%_% new makechapterhead
+%_%_%_%_% type "B"
+%_%_%_%_%
+\def\@makechapterhead#1{%
+   {\parindent \z@ \raggedright \normalfont
+    \ifnum \c@secnumdepth >\m@ne
+      \if@mainmatter
+%
+\noindent\begin{picture}(360,144)
+\put(0,0){\includegraphics[width=114pt]{macroa2-gray.eps}}
+\put(118,16){\vbox to 99pt{\hsize247pt\raggedright\sffamily\Large\bfseries%
+\@chapapp\space \thechapter
+        \vskip3pt\par\vfill\nobreak
+    \huge \bfseries #1\par}}%%end of parbox and put
+\end{picture}
+ \fi
+    \fi
+    \interlinepenalty\@M}   \vskip 40\p@
+  }%
+\def\@part[#1]#2{%
+    \ifnum \c@secnumdepth >-2\relax
+      \refstepcounter{part}%
+      \addcontentsline{toc}{part}{\hbox to 20pt{\thepart}#1}%
+    \else
+      \addcontentsline{toc}{part}{#1}%
+    \fi
+    \markboth{}{}%
+         \interlinepenalty \@M
+     \normalfont
+    %_%_%_%_%add part background graphic...
+ \ifnum \c@secnumdepth >-2\relax
+\noindent\begin{picture}(360,144)
+\put(0,0){\includegraphics[width=114pt]{macroa2-gray.eps}}
+\put(118,16){\vbox to 99pt{\parindent0pt\hsize247pt\sffamily\Large\bfseries%
+\partname\space \thepart
+        \vskip3pt\par\vfill\nobreak
+    \huge \bfseries #2\par}}%%end of parbox and put
+\end{picture}
+     \fi
+    \@endpart}}
+
+\DeclareOption{opener-a}{%
+%_%_%_%_% new makechapterhead...
+%_%_%_%_% type "A"
+%_%_%_%_%
+\def\@makechapterhead#1{%
+   {\parindent \z@ \raggedright \normalfont
+    \ifnum \c@secnumdepth >\m@ne
+      \if@mainmatter
+%
+\noindent\begin{picture}(360,144)
+\put(0,-1){\includegraphics[height=102pt]{macroa-gray.eps}}
+\put(118,0){\vbox to 100pt{\hsize247pt\raggedright\sffamily\Large\bfseries%
+\@chapapp\space \thechapter
+        \vfill\par\nobreak
+    \huge \bfseries #1\par}}%%end of parbox and put
+\end{picture}
+ \fi
+    \fi
+    \interlinepenalty\@M}   \vskip 40\p@
+  }%
+\def\@part[#1]#2{%
+    \ifnum \c@secnumdepth >-2\relax
+      \refstepcounter{part}%
+      \addcontentsline{toc}{part}{\thepart\hspace{10em}#1}%
+    \else
+      \addcontentsline{toc}{part}{#1}%
+    \fi
+    \markboth{}{}%
+         \interlinepenalty \@M
+     \normalfont
+    %_%_%_%_%add part background graphic...
+ \ifnum \c@secnumdepth >-2\relax
+\noindent\begin{picture}(360,144)
+\put(0,-1){\includegraphics[height=102pt]{macroa-gray.eps}}
+\put(118,0){\vbox to 100pt{\parindent0pt\hsize247pt\sffamily\Large\bfseries%
+\partname\space \thepart
+        \vfill\par\nobreak
+    \huge \bfseries #2\par}}%%end of parbox and put
+\end{picture}
+     \fi
+    \@endpart}}
 \DeclareOption{a4paper}
    {\setlength\paperheight {297mm}%
     \setlength\paperwidth  {210mm}}
@@ -102,6 +262,12 @@
 \if@compatibility\else
 \DeclareOption{notitlepage}{\@titlepagefalse}
 \fi
+\if@compatibility
+\@openrighttrue
+\else
+\DeclareOption{openright}{\@openrighttrue}
+\DeclareOption{openany}{\@openrightfalse}
+\fi
 \if@compatibility\else
 \DeclareOption{onecolumn}{\@twocolumnfalse}
 \fi
@@ -118,9 +284,11 @@
       }%
    \renewcommand\newblock{\par}}%
 }
-\ExecuteOptions{letterpaper,10pt,oneside,onecolumn,final}
+\DeclareOption{onethmnum}{\@onethmnumtrue} % added 7.29.96
+\DeclareOption{mytheorems}{\@mytheoremstrue} %_%_%_%_% remove theorem defs from class????
+\ExecuteOptions{plain-opener,letterpaper,10pt,twoside,onecolumn,final,openright}
 \ProcessOptions
-\input{size1\@ptsize.clo}
+\input{newsiambk1\@ptsize.clo}
 \setlength\lineskip{1\p@}
 \setlength\normallineskip{1\p@}
 \renewcommand\baselinestretch{}
@@ -129,53 +297,60 @@
 \@medpenalty  151
 \@highpenalty 301
 \setcounter{topnumber}{2}
-\renewcommand\topfraction{.7}
+\renewcommand\topfraction{.9}
 \setcounter{bottomnumber}{1}
-\renewcommand\bottomfraction{.3}
+\renewcommand\bottomfraction{.1}
 \setcounter{totalnumber}{3}
-\renewcommand\textfraction{.2}
-\renewcommand\floatpagefraction{.5}
+\renewcommand\textfraction{.1}
+\renewcommand\floatpagefraction{.91}
 \setcounter{dbltopnumber}{2}
 \renewcommand\dbltopfraction{.7}
 \renewcommand\dblfloatpagefraction{.5}
 \if@twoside
   \def\ps@headings{%
       \let\@oddfoot\@empty\let\@evenfoot\@empty
-      \def\@evenhead{\thepage\hfil\slshape\leftmark}%
-      \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
+      \def\@evenhead{\hbox to 0pt{\rule[-5pt]{\textwidth}{1pt}}\sffamily\thepage\hfil\leftmark}%
+      \def\@oddhead{\hbox to 0pt{\rule[-5pt]{\textwidth}{1pt}}\sffamily{\rightmark}\hfil\thepage}%
       \let\@mkboth\markboth
-    \def\sectionmark##1{%
-      \markboth {\MakeUppercase{%
-        \ifnum \c@secnumdepth >\z@
-          \thesection\quad
+    \def\chaptermark##1{%
+      \markboth {{%%%%%was \MakeUppercase
+        \ifnum \c@secnumdepth >\m@ne
+          \if@mainmatter
+            \@chapapp\ \thechapter. \ %
+          \fi
         \fi
         ##1}}{}}%
-    \def\subsectionmark##1{%
-      \markright {%
-        \ifnum \c@secnumdepth >\@ne
-          \thesubsection\quad
+    \def\sectionmark##1{%
+      \markright {{%%%%%was \MakeUppercase
+        \ifnum \c@secnumdepth >\z@
+          \thesection. \ %
         \fi
-        ##1}}}
+        ##1}}}}
 \else
   \def\ps@headings{%
     \let\@oddfoot\@empty
-    \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
+    \def\@oddhead{{\sffamily\rightmark}\hfil\thepage}%
     \let\@mkboth\markboth
-    \def\sectionmark##1{%
+    \def\chaptermark##1{%
       \markright {\MakeUppercase{%
         \ifnum \c@secnumdepth >\m@ne
-          \thesection\quad
+          \if@mainmatter
+            \@chapapp\ \thechapter. \ %
+          \fi
         \fi
         ##1}}}}
 \fi
 \def\ps@myheadings{%
     \let\@oddfoot\@empty\let\@evenfoot\@empty
-    \def\@evenhead{\thepage\hfil\slshape\leftmark}%
-    \def\@oddhead{{\slshape\rightmark}\hfil\thepage}%
+    \def\@evenhead{\sffamily\thepage\hfil\sffamily\leftmark}%
+    \def\@oddhead{{\sffamily\rightmark}\hfil\sffamily\thepage}%
     \let\@mkboth\@gobbletwo
+    \let\chaptermark\@gobble
     \let\sectionmark\@gobble
-    \let\subsectionmark\@gobble
     }
+\def\ps@plain{\let\@mkboth\@gobbletwo
+     \let\@oddhead\@empty\def\@oddfoot{\reset@font\hfil\sffamily\thepage
+     \hfil}\let\@evenhead\@empty\let\@evenfoot\@oddfoot}
   \if@titlepage
   \newcommand\maketitle{\begin{titlepage}%
   \let\footnotesize\small
@@ -262,73 +437,140 @@
   \par
   \vskip 1.5em}
 \fi
-\setcounter{secnumdepth}{3}
+\newcommand*\chaptermark[1]{}
+\setcounter{secnumdepth}{2}
 \newcounter {part}
-\newcounter {section}
+\newcounter {chapter}
+\newcounter {section}[chapter]
 \newcounter {subsection}[section]
 \newcounter {subsubsection}[subsection]
 \newcounter {paragraph}[subsubsection]
 \newcounter {subparagraph}[paragraph]
 \renewcommand \thepart {\@Roman\c@part}
-\renewcommand \thesection {\@arabic\c@section}
+\renewcommand \thechapter {\@arabic\c@chapter}
+\renewcommand \thesection {\thechapter.\@arabic\c@section}
 \renewcommand\thesubsection   {\thesection.\@arabic\c@subsection}
 \renewcommand\thesubsubsection{\thesubsection .\@arabic\c@subsubsection}
 \renewcommand\theparagraph    {\thesubsubsection.\@arabic\c@paragraph}
 \renewcommand\thesubparagraph {\theparagraph.\@arabic\c@subparagraph}
+\newcommand\@chapapp{\chaptername}
+\newcommand\frontmatter{%
+    \cleardoublepage
+  \@mainmatterfalse
+  \pagenumbering{roman}}
+\newcommand\mainmatter{%
+    \cleardoublepage
+  \@mainmattertrue
+  \pagenumbering{arabic}}
+\newcommand\backmatter{%
+  \if@openright
+    \cleardoublepage
+  \else
+    \clearpage
+  \fi
+  \@mainmatterfalse}
 \newcommand\part{%
-   \if@noskipsec \leavevmode \fi
-   \par
-   \addvspace{4ex}%
-   \@afterindentfalse
-   \secdef\@part\@spart}
-
-\def\@part[#1]#2{%
-    \ifnum \c@secnumdepth >\m@ne
-      \refstepcounter{part}%
-      \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
+  \if@openright
+    \cleardoublepage
     \else
-      \addcontentsline{toc}{part}{#1}%
+    \clearpage
     \fi
-    {\parindent \z@ \raggedright
+  \thispagestyle{plain}%
+  \if@twocolumn
+    \onecolumn
+    \@tempswatrue
+  \else
+    \@tempswafalse
+  \fi
+  \null%%%%%\vfil
+\vspace*{72pt}
+  \secdef\@part\@spart}
+
+
+
+\def\@spart#1{%
+    {\centering
      \interlinepenalty \@M
      \normalfont
-     \ifnum \c@secnumdepth >\m@ne
-       \Large\bfseries \partname\nobreakspace\thepart
-       \par\nobreak
+     \sffamily\Huge \bfseries #1\par}%
+    \@endpart}
+\def\@endpart{\vfil\newpage
+              \if@twoside
+                \null
+                \thispagestyle{empty}%
+                \newpage
      \fi
-     \huge \bfseries #2%
-     \markboth{}{}\par}%
-    \nobreak
-    \vskip 3ex
-    \@afterheading}
-\def\@spart#1{%
+              \if@tempswa
+                \twocolumn
+              \fi}
+\newcommand\chapter{\if@openright\cleardoublepage\else\clearpage\fi
+                    \thispagestyle{plain}%
+                    \global\@topnum\z@
+                    \@afterindentfalse
+                    \secdef\@chapter\@schapter}
+%_%_%_%_%
+%_%_%_%_% add third parameter to \chapter to include background graphic
+%_%_%_%_%
+\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
+                       \if@mainmatter
+                         \refstepcounter{chapter}%
+                         \typeout{\@chapapp\space\thechapter.}%
+                         \addcontentsline{toc}{chapter}%
+                                   {\protect\numberline{\thechapter}#1}%
+                       \else
+                         \addcontentsline{toc}{chapter}{#1}%
+                       \fi
+                    \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}
+%_%_%_%_%
+%_%_%_%_% new definition for chapter-page quote
+%_%_%_%_% optional argument moves environment right, in order to center
+\newenvironment{chapterquote}[1][0pt]{\normalsize\normalfont\itshape%
+\advance\leftskip#1}{\par}
+\def\@schapter#1{\if@twocolumn
+                   \@topnewpage[\@makeschapterhead{#1}]%
+                 \else
+                   \@makeschapterhead{#1}%
+                   \@afterheading
+                 \fi}
+\def\@makeschapterhead#1{%
+  \vspace*{50\p@}%
     {\parindent \z@ \raggedright
-     \interlinepenalty \@M
      \normalfont
-     \huge \bfseries #1\par}%
-     \nobreak
-     \vskip 3ex
-     \@afterheading}
+    \interlinepenalty\@M\centering
+    \Huge \sffamily\bfseries  #1\par\nobreak
+    \vskip 40\p@
+  }}
 \newcommand\section{\@startsection {section}{1}{\z@}%
                                    {-3.5ex \@plus -1ex \@minus -.2ex}%
-                                   {2.3ex \@plus.2ex}%
-                                   {\centering \normalfont \normalsize \bfseries}}
+                                   {1.5ex \@plus.0ex}%
+                                   {\raggedright\normalfont\fontsize{14}{16pt}\selectfont\sffamily\bfseries}}
 \newcommand\subsection{\@startsection{subsection}{2}{\z@}%
                                      {-3.25ex\@plus -1ex \@minus -.2ex}%
                                      {1.5ex \@plus .2ex}%
-                                     {\normalfont\normalsize}}
+                                     {\raggedright\normalfont\large\sffamily\bfseries}}
 \newcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
                                      {-3.25ex\@plus -1ex \@minus -.2ex}%
                                      {1.5ex \@plus .2ex}%
-                                     {\underline \normalfont\normalsize}}
+                                     {\normalfont\normalsize\sffamily\bfseries}}
 \newcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
                                     {3.25ex \@plus1ex \@minus.2ex}%
                                     {-1em}%
-                                    {\normalfont\normalsize\bfseries}}
+                                    {\normalfont\normalsize\sffamily\bfseries}}
 \newcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
                                        {3.25ex \@plus1ex \@minus .2ex}%
                                        {-1em}%
-                                      {\normalfont\normalsize\bfseries}}
+                                      {\normalfont\normalsize\sffamily\bfseries}}
 \if@twocolumn
   \setlength\leftmargini  {2em}
 \else
@@ -372,29 +614,6 @@
                {\endlist}
 \newcommand*\descriptionlabel[1]{\hspace\labelsep
                                 \normalfont\bfseries #1}
-\if@titlepage
-  \newenvironment{abstract}{%
-      \titlepage
-      \null\vfil
-      \@beginparpenalty\@lowpenalty
-      \begin{center}%
-        \bfseries \abstractname
-        \@endparpenalty\@M
-      \end{center}}%
-     {\par\vfil\null\endtitlepage}
-\else
-  \newenvironment{abstract}{%
-      \if@twocolumn
-        \section*{\abstractname}%
-      \else
-        \small
-        \begin{center}%
-          {\bfseries \abstractname\vspace{-.5em}\vspace{\z@}}%
-        \end{center}%
-        \quotation
-      \fi}
-      {\if@twocolumn\else\endquotation\fi}
-\fi
 \newenvironment{verse}
                {\let\\\@centercr
                 \list{}{\itemsep      \z@
@@ -418,6 +637,7 @@
 \if@compatibility
 \newenvironment{titlepage}
     {%
+      \cleardoublepage
       \if@twocolumn
         \@restonecoltrue\onecolumn
       \else
@@ -431,6 +651,7 @@
 \else
 \newenvironment{titlepage}
     {%
+      \cleardoublepage
       \if@twocolumn
         \@restonecoltrue\onecolumn
       \else
@@ -446,9 +667,10 @@
     }
 \fi
 \newcommand\appendix{\par
+  \setcounter{chapter}{0}%
   \setcounter{section}{0}%
-  \setcounter{subsection}{0}%
-  \gdef\thesection{\@Alph\c@section}}
+  \renewcommand\@chapapp{\appendixname}%
+  \renewcommand\thechapter{\@Alph\c@chapter}}
 \setlength\arraycolsep{5\p@}
 \setlength\tabcolsep{6\p@}
 \setlength\arrayrulewidth{.4\p@}
@@ -457,25 +679,29 @@
 \skip\@mpfootins = \skip\footins
 \setlength\fboxsep{3\p@}
 \setlength\fboxrule{.4\p@}
-\renewcommand \theequation {\@arabic\c@equation}
-\newcounter{figure}
-\renewcommand \thefigure {\@arabic\c@figure}
+\@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\nobreakspace\thefigure}
+\def\fnum@figure{\figurename~\thefigure}
 \newenvironment{figure}
                {\@float{figure}}
                {\end@float}
 \newenvironment{figure*}
                {\@dblfloat{figure}}
                {\end@dblfloat}
-\newcounter{table}
-\renewcommand\thetable{\@arabic\c@table}
+\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\nobreakspace\thetable}
+\def\fnum@table{\tablename~\thetable}
 \newenvironment{table}
                {\@float{table}}
                {\end@float}
@@ -486,15 +712,20 @@
 \newlength\belowcaptionskip
 \setlength\abovecaptionskip{10\p@}
 \setlength\belowcaptionskip{0\p@}
+\def\xtable{table}
 \long\def\@makecaption#1#2{%
   \vskip\abovecaptionskip
-  \sbox\@tempboxa{#1: #2}%
+  \sbox\@tempboxa{\textbf{#1.} \itshape#2}%
   \ifdim \wd\@tempboxa >\hsize
-    #1: #2\par
+    \hspace*{3pc}{\textbf{#1.} }\itshape#2\par
   \else
     \global \@minipagefalse
     \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
   \fi
+\ifx\@captype\xtable
+\vskip6pt
+\else
+\fi
   \vskip\belowcaptionskip}
 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
@@ -505,38 +736,41 @@
 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
 \DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
 \DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal}
-\newcommand\@pnumwidth{1.55em}
+\newcommand\@pnumwidth{15pt}
 \newcommand\@tocrmarg{2.55em}
 \newcommand\@dotsep{4.5}
-\setcounter{tocdepth}{3}
+\setcounter{tocdepth}{2}
 \newcommand\tableofcontents{%
-    \section*{\contentsname
+    \if@twocolumn
+      \@restonecoltrue\onecolumn
+    \else
+      \@restonecolfalse
+    \fi
+    \chapter*{\contentsname
         \@mkboth{%
-           \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
+           \contentsname}{\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@}%
-    \setlength\@tempdima{3em}%
     \begingroup
       \parindent \z@ \rightskip \@pnumwidth
       \parfillskip -\@pnumwidth
       {\leavevmode
-       \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
+       \normalsize \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
        \nobreak
-       \if@compatibility
          \global\@nobreaktrue
          \everypar{\global\@nobreakfalse\everypar{}}%
-      \fi
     \endgroup
   \fi}
-\newcommand*\l@section[2]{%
-  \ifnum \c@tocdepth >\z@
-    \addpenalty\@secpenalty
-    \addvspace{1.0em \@plus\p@}%
-    \setlength\@tempdima{1.0em}%
+\newcommand*\l@chapter[2]{%
+  \ifnum \c@tocdepth >\m@ne
+    \addpenalty{-\@highpenalty}%
+    \vskip 1.0em \@plus\p@
+    \setlength\@tempdima{2.5em}%was 1.5em
     \begingroup
       \parindent \z@ \rightskip \@pnumwidth
       \parfillskip -\@pnumwidth
@@ -544,32 +778,77 @@
       \advance\leftskip\@tempdima
       \hskip -\leftskip
       #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
+      \penalty\@highpenalty
     \endgroup
   \fi}
-\newcommand*\l@subsection{\@dottedtocline{2}{1.5em}{2.3em}}
-\newcommand*\l@subsubsection{\@dottedtocline{3}{3.8em}{3.2em}}
-\newcommand*\l@paragraph{\@dottedtocline{4}{7.0em}{4.1em}}
-\newcommand*\l@subparagraph{\@dottedtocline{5}{10em}{5em}}
+
+
+\newcommand*\l@section{\@dottedtocline{1}{2.5em}{3.3em}}
+\newcommand*\l@subsection{\@dottedtocline{2}{5.8em}{5.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{\MakeUppercase\listfigurename}%
-              {\MakeUppercase\listfigurename}%
+    \if@twocolumn
+      \@restonecoltrue\onecolumn
+    \else
+      \@restonecolfalse
+    \fi
+    \chapter*{\listfigurename
+      \@mkboth{\listfigurename}%
+              {\listfigurename}}%
     \@starttoc{lof}%
+    \if@restonecol\twocolumn\fi
     }
-\newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
+%_%_%_%_%
+%_%_%_%_%make list of algorithms
+%_%_%_%_%
+\newcommand*\l@algorithm{\@dottedtocline{1}{0pt}{84pt}}
+\newcommand\listofalgorithms{%
+    \if@twocolumn
+      \@restonecoltrue\onecolumn
+    \else
+      \@restonecolfalse
+    \fi
+    \chapter*{List of Algorithms
+      \@mkboth{{List of Algorithms}}%
+              {{List of Algorithms}}}%
+    \@starttoc{loa}%
+    \if@restonecol\twocolumn\fi
+    }
+
+\newcounter{algorithm}[section]
+\renewcommand{\thealgorithm}{\arabic{chapter}.\arabic{section}.\arabic{algorithm}}
+\newenvironment{algorithm}[1]{\addtocounter{algorithm}{1}%
+\addcontentsline{loa}{algorithm}%
+    {\protect\numberline{Algorithm~\thealgorithm}{\ignorespaces#1}}%
+\par\vspace{1\baselineskip}%
+\parindent0pt {\scshape\bfseries Algorithm~\thealgorithm}\enspace#1\\}%%%
+{\vspace{1\baselineskip}\par}
+%_%_%_%_%
+%_%_%_%_%
+%_%_%_%_%
+%%%\newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
+\newcommand*\l@figure{\@dottedtocline{1}{1.5em}{3.3em}}
 \newcommand\listoftables{%
-    \section*{\listtablename}%
+    \if@twocolumn
+      \@restonecoltrue\onecolumn
+    \else
+      \@restonecolfalse
+    \fi
+    \chapter*{\listtablename
       \@mkboth{%
-          \MakeUppercase\listtablename}%
-         {\MakeUppercase\listtablename}%
+          \listtablename}{\listtablename}}%
     \@starttoc{lot}%
+    \if@restonecol\twocolumn\fi
     }
 \let\l@table\l@figure
 \newdimen\bibindent
 \setlength\bibindent{1.5em}
 \newenvironment{thebibliography}[1]
-     {\section{\refname}%
-      \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
+     {\chapter*{\bibname
+        \@mkboth{\bibname}{\bibname}}%
+\addcontentsline{toc}{chapter}{\bibname}%
       \list{\@biblabel{\@arabic\c@enumiv}}%
            {\settowidth\labelwidth{\@biblabel{#1}}%
             \leftmargin\labelwidth
@@ -594,13 +873,14 @@
                 \else
                   \@restonecoltrue
                 \fi
-                \twocolumn[\section*{\indexname}]%
-                \@mkboth{\MakeUppercase\indexname}%
-                        {\MakeUppercase\indexname}%
-                \thispagestyle{plain}\parindent\z@
-                \parskip\z@ \@plus .3\p@\relax
                 \columnseprule \z@
                 \columnsep 35\p@
+                \twocolumn[\@makeschapterhead{\indexname}]%
+		\addcontentsline{toc}{chapter}{\indexname}%
+                \@mkboth{\indexname}%
+                        {\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@}
@@ -609,8 +889,9 @@
 \newcommand\indexspace{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
 \renewcommand\footnoterule{%
   \kern-3\p@
-  \hrule\@width.4\columnwidth
+  \hrule\@width6pc
   \kern2.6\p@}
+\@addtoreset{footnote}{chapter}
 \newcommand\@makefntext[1]{%
     \parindent 1em%
     \noindent
@@ -618,20 +899,20 @@
 \newcommand\contentsname{Contents}
 \newcommand\listfigurename{List of Figures}
 \newcommand\listtablename{List of Tables}
-\newcommand\refname{References}
+\newcommand\bibname{Bibliography}
 \newcommand\indexname{Index}
 \newcommand\figurename{Figure}
 \newcommand\tablename{Table}
 \newcommand\partname{Part}
+\newcommand\chaptername{Chapter}
 \newcommand\appendixname{Appendix}
-\newcommand\abstractname{Abstract}
 \def\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@}
-\pagestyle{plain}
+\pagestyle{headings}
 \pagenumbering{arabic}
 \if@twoside
 \else
@@ -644,6 +925,199 @@
 \else
   \onecolumn
 \fi
+
+
+%_%_%_%_%
+%_%_%_%_% borrowed from siamltex.cls...
+%_%_%_%_%
+
+\def\@begintheorem#1#2{\vskip-\lastskip\par\vskip12pt\par%
+\bgroup\noindent{\bfseries\scshape #1\ #2. }\it\ignorespaces}
+%
+\def\@opargbegintheorem#1#2#3{\vskip-\lastskip\par\vskip12pt\par\bgroup%
+   \noindent{\bfseries\scshape #1\ #2\ ({\upshape #3}). }\it\ignorespaces}
+%
+\def\@endtheorem{\egroup\vskip12pt}
+%
+
+\newlength{\proofboxwd}
+\setlength{\proofboxwd}{1pt}
+
+\def\proofbox{\hspace{12\proofboxwd}\vbox{\hrule height0.6\proofboxwd\hbox{%
+   \vrule height1.3ex width0.6\proofboxwd\hskip0.8ex
+   \vrule width0.6\proofboxwd}\hrule height0.6\proofboxwd
+  }}
+
+
+\def\tempproofbox{\hspace{12\proofboxwd}\vbox{\hrule height0.6\proofboxwd\hbox{%
+   \vrule height1.3ex width0.6\proofboxwd\hskip0.8ex
+   \vrule width0.6\proofboxwd}\hrule height0.6pt
+  }}
+
+
+\def\myproofbox{\tempproofbox\global\setlength{\proofboxwd}{0pt}}
+
+\newenvironment{proof}{%
+\vskip-\lastskip\par
+\vskip12pt\par\noindent{\bfseries\itshape Proof.} \ignorespaces}%
+{\proofbox\vspace{1\baselineskip}\global\setlength{\proofboxwd}{1pt}}
+
+
+\if@mytheorems
+\else
+\if@onethmnum
+  \newtheorem{theorem}{Theorem}
+  \newtheorem{lemma}[theorem]{Lemma}
+  \newtheorem{corollary}[theorem]{Corollary}
+  \newtheorem{proposition}[theorem]{Proposition}
+  \newtheorem{definition}[theorem]{Definition}
+\else
+  \newtheorem{theorem}{Theorem}[chapter]
+  \newtheorem{lemma}[theorem]{Lemma}
+  \newtheorem{corollary}[theorem]{Corollary}
+  \newtheorem{proposition}[theorem]{Proposition}
+  \newtheorem{definition}[theorem]{Definition}
+\fi
+\fi
+
+
+\newcounter{rmnum}
+\newenvironment{romannum}
+               {\begin{list}{{\hfill\upshape (\roman{rmnum})}}{\usecounter{rmnum}
+                \setlength{\leftmargin}{24pt}\labelwidth24pt\labelsep.5em%
+		\itemsep2pt\parsep0pt
+                \setlength{\itemindent}{0pt}}}{\end{list}}
+\newcounter{muni}
+\newenvironment{remunerate}
+               {\begin{list}{{\hfill\upshape \arabic{muni}.}}{\usecounter{muni}
+                \setlength{\leftmargin}{24pt}\labelwidth24pt\labelsep.5em%
+		\itemsep2pt\parsep0pt
+                \setlength{\itemindent}{0pt}}}{\end{list}}
+
+\newenvironment{bulletlist}
+{\begin{list}{{\hfill\raisebox{1.12pt}{$\bullet$}}}{%
+                \setlength{\leftmargin}{24pt}\labelwidth24pt\labelsep.5em%
+		\itemsep2pt\parsep0pt
+                \setlength{\itemindent}{0pt}}}{\end{list}}
+
+\newenvironment{alphlist}
+               {\begin{list}{{\hfill\upshape (\alph{muni})}}{\usecounter{muni}
+                \setlength{\leftmargin}{24pt}\labelwidth24pt\labelsep.5em%
+		\itemsep2pt\parsep0pt
+                \setlength{\itemindent}{0pt}}}{\end{list}}
+
+
+\newcommand\sameauthor{\leavevmode\vrule height 2pt depth -1.6pt width 23pt}
+
+
+
+%_%_%_%_% fix eqnarray spacing
+\def\@tempb{%
+   \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@\arraycolsep \hfil${##}$\hfil
+      &\global\@eqcnt\tw@ \hskip \tw@\arraycolsep
+         $\displaystyle{##}$\hfil\tabskip\@centering
+      &\global\@eqcnt\thr@@ \hb@xt@\z@\bgroup\hss##\egroup
+         \tabskip\z@skip
+      \cr
+}
+\ifx\eqnarray\@tempb    % Try the default eqnarray environment
+  \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 \hfil$\displaystyle{{}##{}}$\hfil
+      &\global\@eqcnt\tw@ $\displaystyle{##}$\hfil\tabskip\@centering
+      &\global\@eqcnt\thr@@ \hb@xt@\z@\bgroup\hss##\egroup
+         \tabskip\z@skip
+      \cr
+}
+\else    \typeout{Warning: Unable to fix unknown version of \string\eqnarray.}
+\fi
+
+\def\@tempb{}
+
+
+%_%_%_%_%
+%_%_%_%_% for crops and other stuff...
+%_%_%_%_%
+\setlength{\paperheight}{10in}
+\setlength{\paperwidth}{7in}
+
+\setlength{\oddsidemargin}{.75in}
+\setlength{\evensidemargin}{.766in}
+
+%_%_%_%_%
+%_%_%_%_% Problems/exercises
+%_%_%_%_%
+\newcounter{prob}
+\newenvironment{problems}
+               {%
+\section*{\rule[6pt]{\textwidth}{1pt}\newline\nobreak Problems}%
+\addcontentsline{toc}{section}{Problems}%
+\markright{Problems}
+\begin{list}{{\hfill\upshape \arabic{prob}.}}{\usecounter{prob}
+                \setlength{\leftmargin}{24pt}\labelwidth24pt\labelsep.5em%
+		\itemsep2pt\parsep0pt
+                \setlength{\itemindent}{0pt}}}{\end{list}}
+
+\newenvironment{exercises}
+               {%
+\section*{\rule[6pt]{\textwidth}{1pt}\newline\nobreak Exercises}%
+\addcontentsline{toc}{section}{Exercises}%
+\markright{Exercises}
+\begin{list}{{\hfill\upshape \arabic{chapter}.\arabic{prob}.}}{\usecounter{prob}
+                \setlength{\leftmargin}{28pt}\labelwidth28pt\labelsep.5em%
+		\itemsep2pt\parsep0pt
+                \setlength{\itemindent}{0pt}}}{\end{list}}
+
+%_%_%_%_%
+%_%_%_%_% front matter, etc.
+%_%_%_%_%
+\newenvironment{thepreface}{\if@openright\cleardoublepage\else\clearpage\fi
+\@makeschapterhead{Preface}%
+\addcontentsline{toc}{chapter}{Preface}%
+                \@mkboth{Preface}%
+                        {Preface}%
+                \thispagestyle{plain}}
+               {\clearpage}
+
+%_%_%_%_%
+%_%_%_%_%
+%_%_%_%_%
+
+%_%_%_%_% #1 is the contributor's name, #2 is the affiliation
+\newcommand{\contributor}[2]{\noindent\vtop{\hsize14pc#1\\\itshape#2}\par}
+
+\newenvironment{contributors}{\if@openright\cleardoublepage\else\clearpage\fi
+\@makeschapterhead{List of Contributors}%
+%\addcontentsline{toc}{chapter}{List of Contributors}%
+                \@mkboth{List of Contributors}%
+                        {List of Contributors}%
+                \thispagestyle{plain}\begin{multicols}{2}\parindent0pt%
+\parskip6pt plus2pt minus1pt%
+\widowpenalty10000\clubpenalty10000}
+               {\end{multicols}\clearpage}
+
+\setlength{\parskip}{1\parskip}
+
+
+\parskip1\parskip
+\hfuzz362pt
 \endinput
 %%
-%% End of file `article.cls'.
+%% End of file `book.cls'.

 

Close Window
 
  The service has been written by
Heinrich Stamerjohanns