arxmliv
arxmliv build tool
 
KWARC group
LaTeXML
About
   
 

Back to Homepage

--- /arXMLiv/repos/arXMLiv/trunk/sty/ar3e.cls	2010-04-03 02:08:35.000000000 +0200
+++ /arXMLiv/repos/arXMLiv/trunk/sty/mythesis.cls	2010-04-01 23:34:49.000000000 +0200
@@ -1,11 +1,51 @@
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{ar2e}[1997/08/13 v1.0 Standard LaTeX document class]
+%%
+%% 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 1998 1999
+%% The LaTeX3 Project and any individual authors listed elsewhere
+%% in this file.
+%%
+%% This file is part of the LaTeX2e system.
+%% ----------------------------------------
+%%
+%% It may be distributed under the terms of the LaTeX Project Public
+%% License, as described in lppl.txt in the base LaTeX distribution.
+%% Either version 1.0 or, at your option, any later version.
+%% \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{mythesis}[2001/8/24 NYU Physics Thesis Class For LaTeX]
+
+
+
 \newcommand\@ptsize{}
+\newif\if@restisappx    % I added this for appendix determination zoro
+\@restisappxfalse       % I added this for appendix determination zoro
 \newif\if@restonecol
 \newif\if@titlepage
-\@titlepagefalse
-\newif\if@openbib
-\@openbibfalse
+\@titlepagetrue
+\newif\if@openright
+\if@compatibility\else
 \DeclareOption{a4paper}
    {\setlength\paperheight {297mm}%
     \setlength\paperwidth  {210mm}}
@@ -28,216 +68,110 @@
    {\setlength\@tempdima   {\paperheight}%
     \setlength\paperheight {\paperwidth}%
     \setlength\paperwidth  {\@tempdima}}
+\fi
+\if@compatibility
+  \renewcommand\@ptsize{0}
+\else
 \DeclareOption{10pt}{\renewcommand\@ptsize{0}}
+\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{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}
 \DeclareOption{leqno}{\input{leqno.clo}}
 \DeclareOption{fleqn}{\input{fleqn.clo}}
-\DeclareOption{openbib}{\@openbibtrue}
-\ExecuteOptions{letterpaper,10pt,onecolumn,final,twoside}
-\ProcessOptions
-%\input{size1\@ptsize.clo}
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\renewcommand\normalsize{%
-   \@setfontsize\normalsize\@xipt{13pt}
-   \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
-   \abovedisplayshortskip \z@ \@plus3\p@
-   \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
-   \belowdisplayskip \abovedisplayskip
-   \let\@listi\@listI}
-\normalsize
-\newcommand\small{%
-   \@setfontsize\small\@xpt{12}%
-   \abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@
-   \abovedisplayshortskip \z@ \@plus2\p@
-   \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@
-   \def\@listi{\leftmargin\leftmargini
-               \topsep 4\p@ \@plus2\p@ \@minus2\p@
-               \parsep \z@
-               \itemsep \parsep}%
-   \belowdisplayskip \abovedisplayskip
-}
-\newcommand\footnotesize{%
-   \@setfontsize\footnotesize\@ixpt{11}%
-   \abovedisplayskip 6\p@ \@plus2\p@ \@minus4\p@
-   \abovedisplayshortskip \z@ \@plus\p@
-   \belowdisplayshortskip 3\p@ \@plus\p@ \@minus2\p@
-   \def\@listi{\leftmargin\leftmargini
-               \topsep 3\p@ \@plus\p@ \@minus\p@
+\DeclareOption{openbib}{%
+  \AtEndOfPackage{%
+   \renewcommand\@openbib@code{%
+      \advance\leftmargin\bibindent
+      \itemindent -\bibindent
+      \listparindent \itemindent
                \parsep \z@
-               \itemsep \parsep}%
-   \belowdisplayskip \abovedisplayskip
+      }%
+   \renewcommand\newblock{\par}}%
 }
-\newcommand\scriptsize{\@setfontsize\scriptsize\@viiipt\@xpt}
-\newcommand\tiny{\@setfontsize\tiny\@vpt\@vipt}
-\newcommand\large{\@setfontsize\large\@xiipt{14}}
-\newcommand\Large{\@setfontsize\Large\@xivpt{18}}
-\newcommand\LARGE{\@setfontsize\LARGE\@xviipt{22}}
-\newcommand\huge{\@setfontsize\huge\@xxpt{25}}
-\newcommand\Huge{\@setfontsize\Huge\@xxvpt{30}}
-%
-\setlength\parindent{1em}
-\setlength\headheight{10\p@}
-\setlength\headsep   {12\p@}
-\setlength\topskip   {10\p@}
-\setlength\footskip{30\p@}
-\setlength\maxdepth{.5\topskip}
-\setlength\@maxdepth\maxdepth
-\setlength\textwidth{40pc}\advance\hoffset2pc
-\setlength\textheight{54pc}\advance\voffset-5pc
-
-\setlength\oddsidemargin{-2pc}
-\setlength\evensidemargin{-2pc}
-\setlength\topmargin{4pc}
-\setlength\marginparwidth{130\p@}
-\setlength\marginparsep{11\p@}
-\setlength\marginparpush{5\p@}
-
-\setlength\footnotesep{6.65\p@}
-\setlength{\skip\footins}{9\p@ \@plus 4\p@ \@minus 2\p@}
-\setlength\floatsep    {12\p@ \@plus 2\p@ \@minus 2\p@}
-\setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
-\setlength\intextsep   {12\p@ \@plus 2\p@ \@minus 2\p@}
-\setlength\dblfloatsep    {12\p@ \@plus 2\p@ \@minus 2\p@}
-\setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
-\setlength\@fptop{0\p@ \@plus 1fil}
-\setlength\@fpsep{8\p@ \@plus 2fil}
-\setlength\@fpbot{0\p@ \@plus 1fil}
-\setlength\@dblfptop{0\p@ \@plus 1fil}
-\setlength\@dblfpsep{8\p@ \@plus 2fil}
-\setlength\@dblfpbot{0\p@ \@plus 1fil}
-\setlength\partopsep{0\p@}
-\def\@listI{\leftmargin\leftmargini
-            \parsep \z@
-            \topsep 8\p@ \@plus2\p@ \@minus4\p@
-            \itemsep4\p@ \@plus2\p@ \@minus\p@}
-\let\@listi\@listI
-\@listi
-\def\@listii {\leftmargin\leftmarginii
-              \labelwidth\leftmarginii
-              \advance\labelwidth-\labelsep
-              \topsep    4\p@ \@plus2\p@ \@minus\p@
-              \parsep \z@
-              \itemsep   \parsep}
-\def\@listiii{\leftmargin\leftmarginiii
-              \labelwidth\leftmarginiii
-              \advance\labelwidth-\labelsep
-              \topsep    2\p@ \@plus\p@\@minus\p@
-              \parsep    \z@
-              \partopsep \p@ \@plus\z@ \@minus\p@
-              \itemsep   \topsep}
-\def\@listiv {\leftmargin\leftmarginiv
-              \labelwidth\leftmarginiv
-              \advance\labelwidth-\labelsep}
-\def\@listv  {\leftmargin\leftmarginv
-              \labelwidth\leftmarginv
-              \advance\labelwidth-\labelsep}
-\def\@listvi {\leftmargin\leftmarginvi
-              \labelwidth\leftmarginvi
-              \advance\labelwidth-\labelsep}
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\ExecuteOptions{letterpaper,10pt,oneside,onecolumn,final,openany}
+\ProcessOptions
+\input{size1\@ptsize.clo}
 \setlength\lineskip{1\p@}
 \setlength\normallineskip{1\p@}
-\renewcommand\baselinestretch{1.1}
-\setlength\parskip{0\p@}
+\renewcommand\baselinestretch{}
+\setlength\parskip{0\p@ \@plus \p@}
 \@lowpenalty   51
 \@medpenalty  151
 \@highpenalty 301
-\setcounter{topnumber}{1}
-\renewcommand\topfraction{.1}
-\setcounter{bottomnumber}{5}
-\renewcommand\bottomfraction{.1}
+\setcounter{topnumber}{2}
+\renewcommand\topfraction{.7}
+\setcounter{bottomnumber}{1}
+\renewcommand\bottomfraction{.3}
 \setcounter{totalnumber}{3}
-\renewcommand\textfraction{.9}
-\renewcommand\floatpagefraction{1}
+\renewcommand\textfraction{.2}
+\renewcommand\floatpagefraction{.5}
 \setcounter{dbltopnumber}{2}
-\renewcommand\dbltopfraction{.1}
-\renewcommand\dblfloatpagefraction{.1}
-
-\long\def\@makecaption#1#2{
- \vskip 10pt
- \setbox\@tempboxa\hbox{#1: #2}
- \ifdim \wd\@tempboxa >\hsize #1: #2\par \else \hbox
-to\hsize{\hfil\box\@tempboxa\hfil}
- \fi}
-\def\figurebox#1#2{\hfill\fboxsep0pt\fbox{\vbox to #1{\hsize#2\hskip#2}}\hfill}
-
-\def\Caption{\refstepcounter\@captype \@dblarg{\@caption\@captype}}
-\long\def\@caption#1[#2]#3{%
-  \par
-  \addcontentsline{\csname ext@#1\endcsname}{#1}%
-    {\protect\numberline{\csname the#1\endcsname}{\ignorespaces #2}}%
-  \begingroup
-    \@parboxrestore
-    \if@minipage
-      \@setminipage
-    \fi
-    \normalsize
-    \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
-  \endgroup}
-
-\def\toprule{\hline}
-\def\colrule{\hline}
-\def\botrule{\hline}
-
-
+\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}%
       \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@plain{\let\@mkboth\@gobbletwo
-\def\@oddhead{\hfill\footnotesize\@jname\ \@jyear\
-\@jvol\qquad\@arinfo\hfill}\def\@oddfoot{\rm\hfil\thepage
-\hfil}\let\@evenhead\@oddhead\let\@evenfoot\@oddfoot}
-%
-%%%
-\def\jname#1{\gdef\@jname{#1}}
-\def\jvol#1{\gdef\@jvol{#1}}
-\def\jyear#1{\gdef\@jyear{#1}}
-\def\ARinfo#1{\gdef\@arinfo{#1}}
-\jname{}\jyear{}\jvol{}\ARinfo{}
-%
 \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
-    \let\subsectionmark\@gobble
     }
 \if@titlepage
   \newcommand\maketitle{\begin{titlepage}%
   \let\footnotesize\small
   \let\footnoterule\relax
+  \let \footnote \thanks
   \null\vfil
   \vskip 60\p@
   \begin{center}%
@@ -255,15 +189,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
-    \renewcommand\thefootnote{\fnsymbol{footnote}}%
-    \def\@makefnmark{\hbox to\z@{$\m@th^{\@thefnmark}$\hss}}%
+    \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
+    \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
     \long\def\@makefntext##1{\parindent 1em\noindent
-            \hbox to1.8em{\hss$\m@th^{\@thefnmark}$}##1}%
+            \hb@xt@1.8em{%
+                \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
     \if@twocolumn
       \ifnum \col@number=\@ne
         \@maketitle
@@ -278,115 +222,199 @@
     \thispagestyle{plain}\@thanks
   \endgroup
   \setcounter{footnote}{0}%
-  \let\thanks\relax
-  \let\maketitle\relax\let\@maketitle\relax
-  \gdef\@thanks{}\gdef\@author{}\gdef\@title{}}
+  \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-0.2cm
-%\vskip2em
-\begin{center}{\LARGE\bf\@title \par}\vskip2em
-%\vskip2em
-{\large\it\begin{tabular}[t]{@{}p{\textwidth}@{}}\@author\end{tabular}}
-\vskip0.5em
-%\vskip2em
-{\small\unvbox\keywordsbox\par}\end{center}\vskip1em
-%\vskip 2em%
-{\unvbox\abstractbox\par}
-\vskip-0.2cm
-\tableofcontents}
-\fi
-\def\affiliation#1{\\{\raggedright\upshape\footnotesize#1\par}\\[6pt]}
-\def\@keywords{}
-\newbox\keywordsbox
-\newenvironment{keywords}{%
-  \global\setbox\keywordsbox\vbox\bgroup\footnotesize\noindent\@hangfrom{KEYWORDS:\ }}{%
-		\egroup}
-\def\@abstract{}
-\newbox\abstractbox
-\newenvironment{abstract}{\global\setbox\abstractbox\vbox\bgroup\parindent0pt\footnotesize
-{\bf ABSTRACT:}\ \noindent}{\egroup}
-\setcounter{secnumdepth}{3}
+  \newpage
+  \null
+  \vskip 2em%
+  \begin{center}%
+  \let \footnote \thanks
+    {\LARGE \@title \par}%
+    \vskip 1.5em%
+    {\large
+      \lineskip .5em%
+      \begin{tabular}[t]{c}%
+        \@author
+      \end{tabular}\par}%
+    \vskip 1em%
+    {\large \@date}%
+  \end{center}%
+  \par
+  \vskip 1.5em}
+\fi
+\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{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\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\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}%
+      \if@restisappx                                           % zoro
+         \addcontentsline{loa}{part}{\thepart\hspace{1em}#1}%  % zoro
+      \else                                                    % zoro
       \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
+      \fi                                                      % zoro
     \else
+      \if@restisappx                                           % zoro
+         \addcontentsline{loa}{part}{#1}%                      % zoro
+      \else                                                    % zoro
       \addcontentsline{toc}{part}{#1}%
+      \fi                                                      % zoro
     \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
-    \vskip 2ex
-
-    \@afterheading}
+     \Huge \bfseries #2\par}%
+    \@endpart}
 \def\@spart#1{%
-    {\parindent \z@ \raggedright
+    {\centering
      \interlinepenalty \@M
-     \reset@font
-     \huge \bfseries #1\par}%
-     \nobreak
-%     \vskip 3ex
-    \vskip 2ex
-      \@afterheading}
+     \normalfont
+     \Huge \bfseries #1\par}%
+    \@endpart}
 \def\@endpart{\vfil\newpage
               \if@twoside
-                \hbox{}%
+                \null
                 \thispagestyle{empty}%
                 \newpage
               \fi
               \if@tempswa
                 \twocolumn
               \fi}
-\newcommand\section{\@startsection {section}{1}{\z@}%
+\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.}%
+                         \if@restisappx                        % zoro
+                            \addcontentsline{loa}{chapter}%
+                                   {\protect\numberline{\thechapter}#1}%
+                         \else                                 % zoro
+                            \addcontentsline{toc}{chapter}%
+                                   {\protect\numberline{\thechapter}#1}%
+                         \fi                                   % zoro
+                    \else
+                      \if@restisappx                           % zoro
+                         \addcontentsline{loa}{chapter}{#1}%   % zoro
+                      \else                                    % zoro
+                         \addcontentsline{toc}{chapter}{#1}%
+                      \fi                                      % zoro
+                    \fi
+                    \chaptermark{#1}%
+                    \addtocontents{lof}{\protect\addvspace{10\p@}}%
+                    \addtocontents{lot}{\protect\addvspace{10\p@}}%
+                    \addtocontents{loa}{\protect\addvspace{10\p@}}% % zoro
+                    \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@
+  }}
+
+% zoro !! in all sectional commands below changed \@startsection to
+%\@mystartsection. \@mystartsection is defined below to handle appendicies
+
+\newcommand\section{\@mystartsection {section}{1}{\z@}%
                                    {-3.5ex \@plus -1ex \@minus -.2ex}%
                                    {2.3ex \@plus.2ex}%
-                                   {\reset@font\large\bfseries}}
-\newcommand\subsection{\@startsection{subsection}{2}{\z@}%
+                                   {\normalfont\Large\bfseries}}
+\newcommand\subsection{\@mystartsection{subsection}{2}{\z@}%
                                      {-3.25ex\@plus -1ex \@minus -.2ex}%
                                      {1.5ex \@plus .2ex}%
-                                     {\reset@font\large\it}}
-\newcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
+                                     {\normalfont\large\bfseries}}
+\newcommand\subsubsection{\@mystartsection{subsubsection}{3}{\z@}%
                                      {-3.25ex\@plus -1ex \@minus -.2ex}%
                                      {1.5ex \@plus .2ex}%
-                                     {\reset@font\normalsize}}
-\newcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
+                                     {\normalfont\normalsize\bfseries}}
+\newcommand\paragraph{\@mystartsection{paragraph}{4}{\z@}%
                                     {3.25ex \@plus1ex \@minus.2ex}%
                                     {-1em}%
-                                    {\reset@font\normalsize\bfseries}}
-\newcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
+                                    {\normalfont\normalsize\bfseries}}
+\newcommand\subparagraph{\@mystartsection{subparagraph}{5}{\parindent}%
                                        {3.25ex \@plus1ex \@minus .2ex}%
                                        {-1em}%
-                                      {\reset@font\normalsize\bfseries}}
+                                      {\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}
@@ -397,17 +425,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.}
@@ -415,36 +442,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
+      \@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
+               {\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@}%
-                \item[]}
+                        \parsep        \z@ \@plus\p@}%
+                \item\relax}
                {\endlist}
 \newenvironment{quote}
                {\list{}{\rightmargin\leftmargin}%
-                \item[]}
+                \item\relax}
                {\endlist}
+\if@compatibility
 \newenvironment{titlepage}
     {%
       \if@twocolumn
@@ -453,18 +504,35 @@
         \@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}}}
+  \gdef\@chapapp{\appendixname}%
+  \@restisappxtrue%         % I added this for appendix determination zoro
+  \addcontentsline{toc}{chapter}{Appendices} % Where Appendcies begin zoro
+  \gdef\thechapter{\@Alph\c@chapter}}
 \setlength\arraycolsep{5\p@}
 \setlength\tabcolsep{6\p@}
 \setlength\arrayrulewidth{.4\p@}
@@ -473,9 +541,12 @@
 \skip\@mpfootins = \skip\footins
 \setlength\fboxsep{3\p@}
 \setlength\fboxrule{.4\p@}
-\renewcommand\theequation{\arabic{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}
@@ -486,8 +557,9 @@
 \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}
@@ -508,7 +580,8 @@
   \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}
@@ -518,321 +591,111 @@
 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
-\gdef\cal{\protect\pcal}
-\newcommand{\pcal}{\@fontswitch{\relax}{\mathcal}}
-\gdef\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}{2}
 \newcommand\tableofcontents{%
-    \par\addvspace{24pt plus3pt minus3pt}%
-    \noindent{\normalsize\contentsname}%
-    \vskip6pt
-    \@starttoc{toc}}
-\def\numberline#1{}
-\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
-    \endgroup
-  \fi}
-\newcommand\l@section[2]{%
-  \ifnum \c@tocdepth >\z@
-    \addpenalty{\@secpenalty}%
-    \addvspace{1.0em \@plus\p@}%
-    \begingroup
-      \parindent \z@ \rightskip \@pnumwidth
-      \parfillskip -\@pnumwidth
-      \leavevmode\small
-      #1\nobreak\leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep
-       mu$}\hfill \nobreak\hbox to\@pnumwidth{\hss #2}\par
+         \everypar{\global\@nobreakfalse\everypar{}}%
     \endgroup
   \fi}
-\newcommand\l@subsection[2]{%
-  \ifnum \c@tocdepth > 1
-    \addpenalty{\@secpenalty}%
-    \setlength\@tempdima{14pt}%
+\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
-      \leftskip\@tempdima\footnotesize
-      \leavevmode{\itshape#1}\nobreak\leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep
-       mu$}\hfill \nobreak\hbox to\@pnumwidth{\hss #2}\par
+      \leavevmode \bfseries
+      \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}{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}}%
+    \addcontentsline{toc}{chapter}{\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}}%
+    \addcontentsline{toc}{chapter}{\listtablename}
     \@starttoc{lot}%
+    \if@restonecol\twocolumn\fi
     }
 \let\l@table\l@figure
-%
-%%% Begin cite.sty
-\edef\citenum{% to restore funny codes
-  \catcode\string`\string ` \the\catcode\string`\`
-  \catcode\string`\string ' \the\catcode\string`\'
-  \catcode\string`\string = \the\catcode\string`\=
-  \catcode\string`\string _ \the\catcode\string`\_
-  \catcode\string`\string : \the\catcode\string`\:}
-\catcode\string`\`12
-\catcode`\'12
-\catcode`\=12
-\catcode`\_8
-\catcode`\:12
-
-%   Handle optional variations:  [verbose,nospace,space,nosort,noadjust],
-%   \citeform,\citeleft,\citeright,\citemid,\citepunct,\citedash
-%
-%   Set defaults:
-
-%   [ on the left.
-\@ifundefined{citeleft}{\let\citeleft=[}{}
-
-%   ] on the right:
-\@ifundefined{citeright}{\let\citeright=]}{}
-
-%   , (comma space) before note
-\@ifundefined{citemid}{\def\citemid{,\penalty\@medpenalty\ }}{}
-
-%   , (comma thin-space) between entries; [nospace] eliminates the space
-\@ifundefined{citepunct}{
-   \def\citepunct{,\penalty\@m\hskip.13emplus.1emminus.1em}%
- }{}
-
-%   -- (endash) designating range of numbers:
-% (using \hbox avoids easy \exhyphenpenalty breaks)
-\@ifundefined{citedash}{\def\citedash{\hbox{--}\penalty\@m }}{}
-
-%   Each number left as-is:
-\@ifundefined{citeform}{\def\citeform{}}{}
-
-%   Do not repeat warnings.  [verbose] reverses
-\let\oc@verbo\relax
-
-\@ifundefined{DeclareOption}{}%
-{ \toks@={\def\oc@verbo#1#2#3#4{}}
-  \DeclareOption{verbose}{\the\toks@}
-  \DeclareOption{nospace}{\def\citepunct{,\penalty\@m}}
-  \DeclareOption{space}{\def\citepunct{,\penalty\@highpenalty\ }}
-  \DeclareOption{nosort}{\def\@addto@cite@list
-   {\edef\@cite@list{\@cite@list \@celt{\@B@citeB}}}}
-  \DeclareOption{sort}{\let\@cite@list\relax}% default!
-  \DeclareOption{noadjust}{\let\cite@adjust\@empty}% Don't change spaces
-  \DeclareOption{adjust}{\let\cite@adjust\relax}% adjust space before [ ]
-  %\ProvidesPackage{cite}[1999/04/23 \space  v 3.8]
-  \ProcessOptions }
-
-%----------------------
-% \citen uses \@nocite to ignore spaces after commas, and write the aux file
-% \citation. \citen then loops over the citation tags, using \@make@cite@list
-% to make a sorted list of numbers.  Finally, \citen executes \@citelist to
-% compress ranges of numbers and print the list. \citen can be used by itself
-% to give citation numbers without the brackets and other formatting; e.g.,
-% "See also ref.~\citen{junk}."
-%
-\edef\citen{\noexpand\protect \expandafter\noexpand\csname citen \endcsname}
-
-\@namedef{citen }#1{%
-\begingroup
-\let\@safe@activesfalse\@empty
-\@nocite{#1}% ignores spaces, writes to .aux file, returns #1 in \@no@sparg
-\@tempcntb\m@ne    % \@tempcntb tracks highest number
-\let\@h@ld\relax   % nothing held from list yet
-\let\@citea\@empty % no punctuation preceding first
-\let\@celt\delimiter % an unexpandable, but identifiable, token
-\def\@cite@list{}% % empty list to start
-\@for \@citeb:=\@no@sparg\do{\@make@cite@list}% make a sorted list of numbers
-% After sorted citelist is made, execute it to compress citation ranges.
-\@tempcnta\m@ne    % no previous number
-\let\@celt\@compress@cite \@cite@list % output number list with compression
-\@h@ld % output anything held over
-\endgroup}
-
-% For each citation, check if it is defined and if it is a number.
-% if a number: insert it in the sorted \@cite@list
-% otherwise: output it immediately.
-%
-\def\@make@cite@list{%
- \expandafter\let \expandafter\@B@citeB
-          \csname b@\@citeb\@extra@b@citeb \endcsname
- \ifx\@B@citeB\relax % undefined: output ? and warning
-    \@citea {\bf{?}}\let\@citea\citepunct \G@refundefinedtrue
-    \@warning {Citation `\@citeb' on page \thepage\space undefined}%
-    \oc@verbo \global\@namedef{b@\@citeb\@extra@b@citeb}{?}%
- \else %  defined               % remove previous line to repeat warnings
-    \ifcat _\ifnum\z@<0\@B@citeB _\else A\fi % a positive number, put in list
-       \@addto@cite@list
-    \else % citation is not a number, output immediately
-       \@citea \citeform{\@B@citeB}%
-       \let\@citea\citepunct
- \fi\fi}
-
-% Regular definition for adding entry to cite list, with sorting
-
-\@ifundefined{@addto@cite@list}{% sort option either declared or defaulted
-  \def\@addto@cite@list{\@tempcnta\@B@citeB \relax
-     \ifnum \@tempcnta>\@tempcntb % new highest, add to end (efficiently)
-        \edef\@cite@list{\@cite@list \@celt{\@B@citeB}}%
-        \@tempcntb\@tempcnta
-     \else % arbitrary number: insert appropriately
-        \edef\@cite@list{\expandafter\@sort@celt \@cite@list \@gobble @}%
-     \fi}
-%
-% \@sort@celt inserts number (\@tempcnta) into list of \@celt{num} (#1{#2})
-% \@celt must not be expandable; list should end with two vanishing tokens.
-%
-  \def\@sort@celt#1#2{\ifx \@celt #1% parameters are \@celt {num}
-       \ifnum #2<\@tempcnta % number goes later in list
-          \@celt{#2}%
-          \expandafter\expandafter\expandafter\@sort@celt % continue
-       \else % number goes here
-          \@celt{\number\@tempcnta}\@celt{#2}% stop comparing
-    \fi\fi}
-}% end sort option definitions
-{}% nosort definition is done in options processing
-
-% Check if each number follows previous and can be put in a range
-%
-\def\@compress@cite#1{%  % This is executed for each number
-  \advance\@tempcnta\@ne % Now \@tempcnta is one more than the previous number
-  \ifnum #1=\@tempcnta   % Number follows previous--hold on to it
-     \ifx\@h@ld\relax    % first pair of successives
-        \edef\@h@ld{\@citea \noexpand\citeform{#1}}%
-     \else               % compressible list of successives
-        \def\@h@ld{\citedash \citeform{#1}}%
-     \fi
-  \else   %  non-successor -- dump what's held and do this one
-     \@h@ld \@citea \citeform{#1}\let\@h@ld\relax
-  \fi \@tempcnta#1\let\@citea\citepunct
-}
-
-\edef\cite{\noexpand\protect\expandafter\noexpand\csname cite \endcsname}
-
-\@namedef{cite }{\@ifnextchar [{\@tempswatrue\@citex}{\@tempswafalse\@citex[]}}
-
-%  Make \@citex refer to \citen:
-%
-\def\@citex[#1]#2{\@cite{\citen{#2}}{#1}}%
-
-%  Replacement for \@cite which defines the formatting normally done
-%  around the citation list.  Minor changes can
-%  be done by changing \citeleft, \citemid, and \citeright; but in other
-%  cases it might be necessary to redefine the whole macro.
-%
-\def\@cite#1#2{\leavevmode \cite@adjust
-  \citeleft{#1\if@tempswa \citemid #2\fi
-  \spacefactor\@m % punctuation in note doesn't affect outside
-  }\citeright}
-
-%  Put a penalty before the citation, and adjust the spacing: if no space
-%  already or if there is extra space due to some punctuation, then change
-%  to one inter-word space.
-%
-\@ifundefined{cite@adjust}{\def\cite@adjust{%
-  \@tempskipa\lastskip \edef\@tempa{\the\@tempskipa}\unskip
-  \ifnum\lastpenalty=\z@ \penalty\@highpenalty \fi
-  \ifx\@tempa\@zero@skip \spacefactor1001 \fi % if no space before, set flag
-  \ifnum\spacefactor>\@m \ \else \hskip\@tempskipa \fi}}{}
-
-\edef\@zero@skip{\the\z@skip}
-
-% \nocite: This is changed to ignore *ALL* spaces and be robust.  The
-% parameter list, with spaces removed, is `returned' in \@no@sparg, which
-% is used by \citen.
-%
-\edef\nocite{\noexpand\protect\expandafter\noexpand\csname nocite \endcsname}
-
-\@namedef{nocite }#1{\@bsphack \@nocite{#1}%
- \@for \@citeb:=\@no@sparg\do{\@ifundefined{b@\@citeb\@extra@b@citeb}%
-    {\G@refundefinedtrue\@warning{Citation `\@citeb' undefined}%
-    \oc@verbo \global\@namedef{b@\@citeb\@extra@b@citeb}{?}}{}}%
- \@esphack}
-
-\def\@nocite#1{\xdef\@no@sparg{\@ignsp#1 \! }% remove *ALL* spaces
- \if@filesw \immediate\write\@auxout {\string\citation {\@no@sparg}}\fi}
-
-% for ignoring *ALL* spaces in the input.  This presumes there are no
-% \outer tokens and no \if-\fi constructs in the parameter.  Spaces inside
-% braces are retained.
-%
-\def\@ignsp#1 {\ifx\!#1\@empty\else #1\expandafter\@ignsp\fi}
-
-\let\nocitecount\relax  % in case \nocitecount was used for drftcite
-
-\@ifundefined{@extra@b@citeb}{\def\@extra@b@citeb{}}{}
-%  in case no fancy bib package (chapterbib) defines this
-
-\@ifundefined{G@refundefinedtrue}{\let\G@refundefinedtrue\relax}{}
-
-\citenum % execute restore-catcodes
-
-% Aliases:
-\let\citenum\citen
-\let\citeonline\citen
-%%%%% end cite.sty
-\def\@cite#1#2{({#1\if@tempswa , #2\fi})}
-\def\@biblabel#1{#1.}
 \newdimen\bibindent
-\bibindent=1.5em
-\newenvironment{thebibliography}[1]{%
-			%\twocolumn
-   \footnotesize
-   \section*{\footnotesize\it Literature Cited}%
-   \def\@tempa{#1}%
-   \ifx\@tempa\@empty
-   \list{}{\def\@biblabel##1{##1}\labelwidth0pt\leftmargin1em\itemindent-1em\itemsep0pt\labelsep0pt
-            \usecounter{enumiv}%
-            \let\p@enumiv\@empty}%
-   \else
-   \list{\@biblabel{\arabic{enumiv}}}%
+\setlength\bibindent{1.5em}
+\newenvironment{thebibliography}[1]
+     {\chapter*{\bibname
+        \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}}%
+      \addcontentsline{toc}{chapter}{\bibname}              % zoro
+      \list{\@biblabel{\@arabic\c@enumiv}}%
            {\settowidth\labelwidth{\@biblabel{#1}}%
-            \leftmargin\labelwidth\itemsep0pt
+            \leftmargin\labelwidth
             \advance\leftmargin\labelsep
+            \@openbib@code
             \usecounter{enumiv}%
             \let\p@enumiv\@empty
-            \renewcommand\theenumiv{\arabic{enumiv}}}%
-   \fi
-      \if@openbib
-        \renewcommand\newblock{\par}
-      \else
-        \renewcommand\newblock{\hskip .11em \@plus.33em \@minus.07em}%
-      \fi
-      \sloppy\clubpenalty4000\widowpenalty4000%
-      \sfcode`\.=\@m}
+            \renewcommand\theenumiv{\@arabic\c@enumiv}}%
+      \sloppy
+      \clubpenalty4000
+      \@clubpenalty \clubpenalty
+      \widowpenalty4000%
+      \sfcode`\.\@m}
      {\def\@noitemerr
        {\@latex@warning{Empty `thebibliography' environment}}%
-      \endlist}
-\newcommand\newblock{}
-
-\def\@lbibitem[#1]#2{\item[\@biblabel{}\hfill]\if@filesw
-      {\let\protect\noexpand
-       \immediate
-       \write\@auxout{\string\bibcite{#2}{#1}}}\fi\ignorespaces}
-
+      \endlist
+      }
+\newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
+\let\@openbib@code\@empty
 \newenvironment{theindex}
                {\if@twocolumn
                   \@restonecolfalse
@@ -841,75 +704,45 @@
                 \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}
 \renewcommand\footnoterule{%
   \kern-3\p@
-  \hrule width .4\columnwidth
+  \hrule\@width.4\columnwidth
   \kern 2.6\p@}
-\long\def\@makefntext#1{%
+\@addtoreset{footnote}{chapter}
+\newcommand\@makefntext[1]{%
     \parindent 1em%
     \noindent
-    \hbox to 1.8em{\hss\@makefnmark}#1}
-\newcommand\contentsname{CONTENTS}
+    \hb@xt@1.8em{\hss\@makefnmark}#1}
+\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}
-%%
-\newenvironment{extract}{%
-\par\leftskip1pc\rightskip1pc\small}{\par\leftskip0pc\rightskip0pc}
-%
-%%
-\newcommand\today{\ifcase\month\or
+\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{myheadings}
-\pagenumbering{arabic}      % Arabic page numbers
-\raggedbottom
-\newdimen\nomenspace\nomenspace=6pt
-\newdimen\tempdima\newbox\tempbox
-\def\nomenentry#1#2{%
-\setbox\tempbox=\vbox{\hsize\tempdim\raggedright#2\endgraf}
-\hbox to 20pc{\hbox to\tempdima{#1\hfill}=\hskip3pt\vtop{\hsize\tempdim\raggedright#2\endgraf%
-\ifdim\ht\tempbox>1.5\baselineskip\vskip2pt\fi}}}
-\def\nomensection#1{\vskip12pt\noindent{#1}\vskip6pt}
-\newenvironment{nomenclature}[1]{%
-\lineskip0pt\normallineskip0pt\setbox\tempbox=\hbox{#1}%
-\tempdima\wd\tempbox\advance\tempdima\nomenspace\advance\tempdima6pt
-\tempdim20pc\advance\tempdim-\tempdima\advance\tempdim-8pt
-\section*{Nomenclature}}{\par\addvspace{12pt plus 6pt}}
-%
-\newbox\tempbox
-\newenvironment{note}{%
-\setbox\tempbox\vbox\bgroup\hsize\marginparwidth\raggedright
-\noindent{\bf Note to Editor:}\\}{%
-\egroup\marginpar{\box\tempbox}}
-%
-% Added on 22nd, Jan-2001
-%
-\def\revise#1#2{\strikeout{#1}\ {#2}}
-%
-\def\strikeout#1{$\setbox\z@\hbox{#1}\dp\z@\z@\m@th\raise2.5pt\hbox{\rlap{\vrule height.5pt width\wd\z@}}\hbox{\box\z@}$}
-%
-%
+\pagestyle{plain}
+\pagenumbering{arabic}
 \if@twoside
 \else
   \raggedbottom
@@ -921,8 +754,351 @@
 \else
   \onecolumn
 \fi
-\endinput
+%\endinput
 %%
-%% End of file `areviews.cls'.
+%% End of file `report.cls'.
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%  here is what I have done for thesis.cls the rest is from report.cls
+
+%
+%    thesis.cls
+% Defines thesis document class for NYU thesis
+%
+% Invoking this style:  Start you document with
+%
+%   \documentclass[options]{thesis}
+%
+% Options:
+%      singlespace
+%      onehalfspace
+%      doublespace (default)
+
+
+%%\NeedsTeXFormat{LaTeX2e}[1995/06/01]
+%%\ProvidesClass{thesis}[2001/8/24 NYU Physics Thesis Class For LaTeX]
+
+
+\RequirePackage{setspace}[1998/04/8]
+
+\newcommand{\etptsize}{12pt}
+
+\DeclareOption{10pt}{\renewcommand{\etptsize}{10pt}}
+\DeclareOption{11pt}{\renewcommand{\etptsize}{11pt}}
+\DeclareOption{12pt}{\renewcommand{\etptsize}{12pt}}
+\DeclareOption{letterpaper}{\PassOptionsToClass{letterpaper}{report}}
+
+% The following options set the global amount of spacing
+
+\newcommand{\etspacing}{\setstretch{1.37}}
+\DeclareOption{truedoublespace}{\renewcommand{\etspacing}{\doublespacing}}
+\DeclareOption{doublespace}{\renewcommand{\etspacing}{\setstretch{1.37}}}
+\DeclareOption{onehalfspace}{\renewcommand{\etspacing}{\onehalfspacing}}
+\DeclareOption{singlespace}{\renewcommand{\etspacing}{\singlespacing}}
+
+
+% Other options should go here, before this:
+% Pass all other options to report.cls.
+%\DeclareOption*{%
+% \PassOptionsToClass{\CurrentOption}{report}
+%}
+
+
+% This could be the default ...
+%\ExecuteOptions{12pt,letterpaper,doublespace}
+
+\ProcessOptions\relax
+%\LoadClass[\etptsize]{report}
+%\LoadClassWithOptions{report} %Let's build thesis.cls on top of report.cls
+
+% Adjust spacing of document
+\etspacing
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% PAGE LAYOUT
+%
+% Remember that the margins are set with the assumption of letterpaper
+% (8.5"x11")!!!!!!
+%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+   \paperwidth      8.50in
+   \paperheight     11.0in
+
+% HORIZONNTAL LAYOUT
+
+% If you want to use marginal notes in your thesis set the width of the
+% marginal notes field to some value (0.5" or 1") with
+% \marginaparwidth 0.5in
+% \marginparsep    0.10in
+% Use \marginparsep to separate the marginal notes field from the main
+% text body

+   \hoffset         0.00in
+   \oddsidemargin   0.60in % set left margin on righthandpage to 0.6+1.0=1.6in
+   \evensidemargin  0.10in % set left margin on lefthandpage to  0.1+1.0=1.1in
+   \marginparsep    0.00in
+   \marginparwidth  0.00in
+%%%%%%   \textwidth 5.80in textwidth with no marginal notes (for reference)

+% Compute the maximum textwidth..
+       \advance \evensidemargin by \marginparwidth
+       \advance \evensidemargin by \marginparsep
+
+       \textwidth       \paperwidth
+       \advance \textwidth by -2.00in
+       \advance \textwidth by -\oddsidemargin
+       \advance \textwidth by -\evensidemargin
+
+% VERTICAL LAYOUT
+
+   \voffset         0.00in
+   \topmargin       0.10in %set the top margin to 0.1in+1.0in=1.1in
+                           % The footer should be at least
+                           % "double space" from the bottom and we
+                           % want text symmetric on the page so want
+                           % set \footskip to \headheight + headsep !
+   \headheight      15pt   %height of the header (the font size is 12pt)
+   \headsep         40pt   %space between header and the text body ("double space")
+                           % 40pt=2*15pt+10pt for safety in with page number
+%   \footskip        0.30in
+   \footskip        \headheight
+       \advance \footskip by \headsep
+
+% Compute.....
+
+       \textheight   \paperheight
+       \advance \textheight by -2.00in
+       \advance \textheight by -\topmargin
+       \advance \textheight by -\headheight
+       \advance \textheight by -\headsep
+       \advance \textheight by -\footskip
+       \advance \textheight by -0.10in
+
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+
+%
+% Title Page Information Commands
+
+\renewcommand{\title}[1]{\gdef\@title{#1}}
+\newcommand{\thesisauthor}[1]{\gdef\@thesisauthor{#1}}
+\newcommand{\thesisadviser}[1]{\gdef\@thesisadviser{#1}}
+\newcommand{\department}[1]{\gdef\@department{#1}}
+\newcommand{\degree}[1]{\gdef\@degree{#1}}
+\newcommand{\submityear}[1]{\gdef\@submityear{#1}}
+\newcommand{\submitmonth}[1]{\gdef\@submitmonth{#1}}
+
+
+
+\newcommand{\memberone}[1]{\gdef\@memberone{#1}}
+\newcommand{\membertwo}[1]{\gdef\@membertwo{#1}}
+\newcommand{\memberthree}[1]{\gdef\@memberthree{#1}}
+\newcommand{\memberfour}[1]{\gdef\@memberfour{#1}}
+\newcommand{\memberfive}[1]{\gdef\@memberfive{#1}}
+\newcommand{\membersix}[1]{\gdef\@membersix{#1}}
+
+
+
+
+
+%
+%  RE-NEW COMMANDS
+%
+\renewcommand{\maketitle}{% \maketitle produces NYU dissertation title page.
+   \begin{titlepage}
+   \doublespacing
+   \begin{center}
+
+      \MakeUppercase{\@title}\\ [12pt]
+            by \\  [8pt]
+      \@thesisauthor \\ [8pt]
+      A dissertation submitted  in partial fulfillment\\ [8pt]
+      of the requirements for the degree of\\ [8pt]
+      \@degree\\  [8pt]
+      Department of \@department\\  [8pt]
+      New York University \\ [8pt]
+      \@submitmonth,\ \@submityear
+   \end{center}
+
+   \vfill
+   \hspace{2in} \hrulefill \vskip -3pt
+   \hspace{2in} Thesis Adviser\hfill \@thesisadviser
+   \vfill
+   \mbox{}
+   \end{titlepage}
+   \setcounter{page}{2}
+}
+
+%\let\oldlistoffigures = \listoffigures
+%\renewcommand{\listoffigures}{%
+%   \oldlistoffigures\addcontentsline{toc}{chapter}{List of Figures}}
+%   \oldlistoffigures\addcontentsline{toc}{chapter}{\listfigurename}}
+
+%\let\oldlistoftables = \listoftables
+%\renewcommand{\listoftables}{%
+%   \oldlistoftables\addcontentsline{toc}{chapter}{List of Tables}}
+%   \oldlistoftables\addcontentsline{toc}{chapter}{\listtablename}}
+
+
+
+%
+%  NEW COMMANDS
+%
+
+\newcommand{\copyrightpage}{% \copyrightpage produces copyright page
+   \thispagestyle{empty}
+%   \mbox{}
+%   \vfill
+   \begin{center}
+       {\large \copyright}\ {\@thesisauthor} \\ [24pt]
+       All Rights Reserved, {\@submityear} \\
+   \end{center}
+   \vfill
+   \mbox{}
+%   \clearpage
+%   \cleardoublepage
+}
+%\newcommand{\thesisbody}{% Start thesis body with this command
+%        \cleardoublepage
+%%        \pagestyle{myheadings} % Uncomment these if page number on top
+%%        \markright{}
+%        \pagestyle{plain}
+%        \pagenumbering{arabic}
+%        \setcounter{page}{1}
+%}
+
+\newcommand{\epigraph}[2]{%
+% first argument is the author of the epigraph, the second is the text
+% itself
+   \hfill\begin{minipage}{3in}{%
+               \raggedbottom\begin{singlespace}{\em #2}\end{singlespace}}
+   \centerline{{\em #1}}
+   \vspace{\baselineskip}
+   \end{minipage}
+}
+
+
+
+%
+%  NEW ENVIRONMENT
+%
+%
+
+\newenvironment{preface}[1]{%
+    \clearpage
+    \chapter*{#1}
+    \addcontentsline{toc}{chapter}{#1}}{\clearpage}
+
+
+\newenvironment{thesisbody}{
+        \cleardoublepage
+%        \pagestyle{myheadings} % Uncomment these if page number on top
+%        \markright{}
+        \pagestyle{plain}
+        \pagenumbering{arabic}
+        \setcounter{page}{1}
+}{\clearpage}
+
+
+% -------------------------------------------
+
+\newcommand\listofappendicess{List of Appendices}
+\newcommand\listofappendices{%
+    \if@twocolumn
+      \@restonecoltrue\onecolumn
+    \else
+      \@restonecolfalse
+    \fi
+    \chapter*{\listofappendicess
+      \@mkboth{\MakeUppercase\listofappendicess}%
+              {\MakeUppercase\listofappendicess}}%
+    \addcontentsline{toc}{chapter}{\listofappendicess}
+    \@starttoc{loa}%
+    \if@restonecol\twocolumn\fi
+    }
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% Too the definitions of \@startsection and \@sect and modified them to
+% handle list of appendicies as a separate table of contents....
+% from /usr/share/texmf/tex/latex/base/latex.ltx
+% change the name of \@startsection to \mystartsection and \@sect to \mysect
+
+\def\@mystartsection#1#2#3#4#5#6{%
+  \if@noskipsec \leavevmode \fi
+  \par
+  \@tempskipa #4\relax
+  \@afterindenttrue
+  \ifdim \@tempskipa <\z@
+    \@tempskipa -\@tempskipa \@afterindentfalse
+  \fi
+  \if@nobreak
+    \everypar{}%
+  \else
+    \addpenalty\@secpenalty\addvspace\@tempskipa
+  \fi
+  \@ifstar
+    {\@ssect{#3}{#4}{#5}{#6}}%
+    {\@dblarg{\@mysect{#1}{#2}{#3}{#4}{#5}{#6}}}} % the only change here
+                                                  % is \@sect to \@mysect
+                                                  % so we can use list of
+                                                  % appendicies
+\def\@mysect#1#2#3#4#5#6[#7]#8{%
+  \ifnum #2>\c@secnumdepth
+    \let\@svsec\@empty
+  \else
+    \refstepcounter{#1}%
+    \protected@edef\@svsec{\@seccntformat{#1}\relax}%
+  \fi
+  \@tempskipa #5\relax
+  \ifdim \@tempskipa>\z@
+    \begingroup
+      #6{%
+        \@hangfrom{\hskip #3\relax\@svsec}%
+          \interlinepenalty \@M #8\@@par}%
+    \endgroup
+    \csname #1mark\endcsname{#7}%
+    \if@restisappx%                              % zoro inserted this if
+      \addcontentsline{loa}{#1}{%
+        \ifnum #2>\c@secnumdepth \else
+          \protect\numberline{\csname the#1\endcsname}%
+        \fi
+        #7}%
+    \else
+      \addcontentsline{toc}{#1}{%
+        \ifnum #2>\c@secnumdepth \else
+          \protect\numberline{\csname the#1\endcsname}%
+        \fi
+        #7}%
+    \fi
+  \else
+    \def\@svsechd{%
+      #6{\hskip #3\relax
+      \@svsec #8}%
+      \csname #1mark\endcsname{#7}%
+      \if@restisappx%                            % zoro inserted this if
+        \addcontentsline{loa}{#1}{%
+          \ifnum #2>\c@secnumdepth \else
+            \protect\numberline{\csname the#1\endcsname}%
+          \fi
+          #7}%
+      \else
+        \addcontentsline{toc}{#1}{%
+          \ifnum #2>\c@secnumdepth \else
+            \protect\numberline{\csname the#1\endcsname}%
+          \fi
+          #7}%
+      \fi}
+  \fi
+  \@xsect{#5}}
+
+%%%% End of what I have done for thesis.cls
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\endinput

 

Close Window
 
  The service has been written by
Heinrich Stamerjohanns