%%
%% This is file `aethesis.cls',
%% This defines the Aerospace Engineering Thesis/Dissertation Template
%% 
%% Additional documentation is available from the TeX User's Group
%% and the base documentation files provided with LaTeX
%%
%% Written by: Drew Woodbury, July 2011
%% Modified by: Chris Roscoe, July 2012 (to reflect changes in Thesis Manual and some other tweaks)
%%		Changes	- pagestyles adjusted
%%							- set to 'plain' for main document (page numbers centred in footer)
%%							- 'headings' used for TOC, LOF, LOT to get column headings for multiple pages
%%							- created 'tocpage' environment to streamline switching between pagestyles
%%							WARNING: Due to an ancient bug in LaTeX, the 'addchaptertocontents' command
%%							must be executed inside an input file if '\include' is being used for the
%%							thesis chapters, otherwise the TOC will be out of order
%%						- margins adjusted
%%						- collected Journal-specific float/reference titles together in one section
%%						- changed collection of user inputs to avoid use of 'newcommand' in .tex file
%%						- set default number of committee members for various paper types
%%						- combined Title, Copyright, and Approval pages
%%						- changed Abstract environment
%%						- created 'frontmatter' and 'mainmatter' macros to remove pagestyle/numbering in .tex
%%						- changed section numbering to include upper level numbers
%%							- mainly to make \ref behave satisfactorily, but both ways satisfy Thesis Manual
%%							- TOC column widths adjusted to fit
%%						- changed subsection headings to italic to reflect AIAA Journal style
%%							- stylistic choice, both ways satisfy Thesis Manual
%%						- created single-spaced tabular environment, 'ssptabular'
%%						- eliminated vita page
%%						- changed Figure and Table numbering to chapter.number and reset with chapter
%%							- stylistic choice, both ways satisfy Thesis Manual
%%						- changed 'figurename' to 'Figure' from 'Fig.'
%%							- stylistic choice, both ways satisfy Thesis Manual
%%						- added 'twoside' option for double-sided printing/binding
%%							- note: Thesis Office requires single-sided submission
%%							- 'flushbottom' behaviour is buggy around floats in twoside mode
%%								- keep raggedbottom for now
%% Modified by: Chris Roscoe, August 2012 (a couple more minor changes)
%%		Changes	- Figure and Table captions changed to boldface 'number. caption' to match AIAA style
%%						- space added below captions (i.e. between caption and table)
%% 


%  ---------------------------------------
%  |                                     |
%  |           CLASS COMMANDS            |
%  |                                     |
%  ---------------------------------------
%
% -- IDENTIFICATION --
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
%\ProvidesClass{aethesis}
%              [2011/07/01 v1.0
% Aerospace Engineering Thesis/Dissertation class file] % Modified: CWTR 2012/07/25
%\ProvidesClass{aethesis}
%              [2012/07/25 v1.1
% Aerospace Engineering Thesis/Dissertation class file] % Modified: CWTR 2012/08/05
\ProvidesClass{aethesis}
              [2012/08/05 v1.2
 Aerospace Engineering Thesis/Dissertation class file]

\newcommand\@ptsize{}		% Stores value of second digit of font size
\newcommand\@degree{}		% Variable to store type of degree
\newcommand\@type{}			% Variable to store type of paper
\newif\if@cochair			% Statement to check if there is a chair or co-chairs

% -- DECLARE OPTIONS --
% Letter paper is the only possible size
\DeclareOption{letterpaper}
   {\setlength\paperheight {11in}%
    \setlength\paperwidth  {8.5in}}

% Currently only 12pt is implemented
% Other options are commented out for possible future updates
% \DeclareOption{10pt}{\renewcommand\@ptsize{0}}
% \DeclareOption{11pt}{\renewcommand\@ptsize{1}}
\DeclareOption{12pt}{\renewcommand\@ptsize{2}}

\DeclareOption{draft}{\setlength\overfullrule{5pt}}
\DeclareOption{final}{\setlength\overfullrule{0pt}}

% Added: CWTR 2012/07/25
% 'twoside' option for double-sided printing/binding
\DeclareOption{oneside}{\@twosidefalse \@mparswitchfalse}
\DeclareOption{twoside}{\@twosidetrue \@mparswitchtrue}
% Command to create empty double page for 'twoside' option
\newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty}\cleardoublepage}}

% Type of Paper (Thesis, Dissertation, Record of Study)
% Thesis is default
\DeclareOption{thesis}{\def\@degree{Master of Science}%
					   \def\@type{Thesis}%
					   \def\@nummember{3}}
\DeclareOption{ros}{\def\@degree{Master of Science}%
                    \def\@type{Record of Study}%
                    \def\@nummember{3}}
\DeclareOption{dissertation}{\def\@degree{Doctor of Philosophy}%
                             \def\@type{Dissertation}%
                             \def\@nummember{4}}

% Chair or Co-chairs (Chair is default)
\DeclareOption{chair}{\@cochairfalse}
\DeclareOption{cochair}{\@cochairtrue}

\DeclareOption{leqno}{\input{leqno.clo}} % Option for left hand equation numbers
\DeclareOption{fleqn}{\input{fleqn.clo}} % Option for flush left math equations

% -- EXECUTE OPTIONS --
\ExecuteOptions{letterpaper,12pt,final,oneside,chair}

\def\ds@twoside{\@twosidetrue  %  Defines twoside option.
           \@mparswitchtrue}

\ProcessOptions

%  ---------------------------------------
%  |                                     |
%  |               FONTS                 |
%  |                                     |
%  ---------------------------------------
% 
\input{aesize1\@ptsize.sty}
\setlength\lineskip{1\p@}
\setlength\normallineskip{1\p@}
\renewcommand\baselinestretch{1.1}
\setlength\parskip{0\p@}

% Page break penalties
\@lowpenalty   51
\@medpenalty  151
\@highpenalty 301

% Club and widow penalties (defaults are used so they are commented out)
% \clubpenalty  150
% \widowpenalty 150
% \displaywidowpenalty 50
% \predisplaypenalty   10000
% \postdisplaypenalty  0
% \interlinepenalty    0
% \brokenpenalty       100

% Modified: CWTR 2012/07/25
% Added 'Definitions' section to collect Journal-specific float/references nomenclature together
% Change definitions to avoid use of \newcommand in .tex file
%  ---------------------------------------
%  |                                     |
%  |            DEFINITIONS              |
%  |                                     |
%  ---------------------------------------
%
% Journal-specific format definitions
%\def\figurename{Fig.}	% Changed: CWTR 2012/07/25
\def\figurename{Figure}
\def\tablename{Table}
\def\bibname{References}

% User input definitions
\def\gradmonth#1{\gdef\@gradmonth{#1}}
\def\gradyear#1{\gdef\@gradyear{#1}}
\def\major#1{\gdef\@major{#1}}
\def\nummember#1{\gdef\@nummember{#1}}
\def\firstmember#1{\gdef\@firstmember{#1}}
\def\secondmember#1{\gdef\@secondmember{#1}}
\def\thirdmember#1{\gdef\@thirdmember{#1}}
\def\fourthmember#1{\gdef\@fourthmember{#1}}
\def\fifthmember#1{\gdef\@fifthmember{#1}}
\def\sixthmember#1{\gdef\@sixthmember{#1}}
\def\depthead#1{\gdef\@depthead{#1}}

%  ---------------------------------------
%  |                                     |
%  |            FRONT MATTER             |
%  |                                     |
%  ---------------------------------------
%
% Combines graduation month and year into single date
\newcommand\graddate{\@gradmonth\ \@gradyear}

% Modified: CWTR 2012/07/25
% Title page, copyright page, and approval page now combined in Thesis Manual

%% -- TITLE PAGE --
%%
%\newcommand\maketitlepage{\begin{titlepage}
% \null\vfil							% Vertical alignment
% \vskip 5\p@                   		% To adjust vertical centering.
% \begin{center}
%   \vskip -2em                 		% Adjust vertical position. 
%   {\textbf{\uppercase\expandafter{\@title}} \par}   % Force capitalization of title and bold it
%   \vskip 5em                		% Vertical space after title
%   {\lineskip .75em            		% Author (table produces proper alignment)
%     \begin{tabular}[t]{c} A \@type\\ by\\ \MakeUppercase{\@author}
%     \end{tabular}\par}      
%   \vskip 5em                  		% Vertical space after author.
%   {\singlespace Submitted to the Office of Graduate Studies of\\ Texas A\&M
%     University\\ in partial fulfillment of the requirements for the
%     degree of \\ \MakeUppercase{\@degree}\smallskip}
%   \vskip 5em                  		% Vertical space between degree and date
%   {\graddate \par}                   		% Date
%   \vskip 5em                  	% Vertical space between date and subject
%   {Major Subject: \major}				
%\end{center} \par
%\vfil\null
%\end{titlepage}
%\let\thanks\relax					% Turn off LaTeX's \thanks command
%\gdef\@thanks{}\let\maketitlepage\relax}
%  
%% -- COPYRIGHT PAGE --
%%
%\newcommand\makecopyright{\begin{titlepage}
%\centering
%\null\vfill
%\@title \par
%{Copyright \gradyear\ \@author}
%\end{titlepage}
%}
%
%% -- APPROVAL PAGE --
%%
%\newcommand\makeapprovalpage{\begin{titlepage}
%\null\vfil
%\vskip -10em						% Vertical centering
%%\vspace*{0pt}
%\begin{center}
%	{\textbf{\uppercase\expandafter{\@title}} \par} % Same as title page
%	\vskip 3em						% Vertical space between title and author
%	{\lineskip 0.75em				% Author (table produces proper alignment)
%	 \begin{tabular}[t]{c} A \@type\\ by\\ \MakeUppercase{\@author}
%	 \end{tabular}\par}
%	 \vskip 3em						% Vertical space between author and degree
%	 {\singlespace Submitted to the Office of Graduate Studies of\\ Texas A\&M
%	 University\\ in partial fulfillment of the requirements for the
%	 degree of \\ \MakeUppercase{\@degree}}		% Degree
%\end{center}
%\vskip 3em							% Vertical space between degree and approval
%\@@line{\hspace{1pt} Approved by:\hfil}		% Approval line
%\vskip 0.5em
%{\singlespace
%\begin{tabular}{ll}
%	\if@cochair
%		Co-Chairs of Committee, & \firstmember \\[-1em]
%						 		& \secondmember\\[-1em]
%		\ifnum\nummember>3
%			Committee Members,	& \thirdmember \\[-1em]
%		\else
%			Committee Member,	& \thirdmember \\[-1em]
%		\fi
%	\else
%		Chair of Committee,		& \firstmember \\[-1em]
%		Committee Members,		& \secondmember\\[-1em]
%								& \thirdmember \\[-1em]
%	\fi
%	\ifnum\nummember>3
%								& \fourthmember\\[-1em]
%		\ifnum\nummember>4
%								& \fifthmember \\[-1em]
%			\ifnum\nummember>5
%								& \sixthmember \\[-1em]
%			\fi
%		\fi
%	\fi
%	Head of Department,			& \depthead	 
%\end{tabular}}
%\begin{center}
%\vskip 3em       					% Vertical space between approval and date
%{\graddate \par}					% Date of graduation
%\vskip 3em       					% Vertical space between date and subject
%{Major Subject: \major}
%\end{center}\par 
%\vfil\null
%\end{titlepage}}

% -- TITLE PAGE --
%
\newcommand\maketitlepage{\begin{titlepage}
\null\vfil
\begin{center}
	{\textbf{\uppercase\expandafter{\@title}} \par} % Same as title page
	\vfill								% Vertical space between title and author
	{A \@type\\ by\\ \MakeUppercase{\@author} \par}
	\vfill								% Vertical space between author and degree
	 {\singlespace\vskip\baselineskip Submitted to the Office of Graduate and Professional Studies of\\ Texas A\&M
	 University\\ in partial fulfillment of the requirements for the
	 degree of\\ \MakeUppercase{\@degree}}		% Degree
\end{center}
\vfill									% Vertical space between degree and approval
\vskip -1em							% To produce proper vertical spacing
%\@@line{\hspace{1pt} Approved by:\hfil}		% Approval line
%\vskip 0.5em
{\singlespace
\begin{tabular}{ll}
	\if@cochair
		Co-Chairs of Committee, & \@firstmember \\[-1em]
						 		& \@secondmember\\[-1em]
		\ifnum\@nummember>3
			Committee Members,	& \@thirdmember \\[-1em]
		\else
			Committee Member,	& \@thirdmember \\[-1em]
		\fi
	\else
		Chair of Committee,		& \@firstmember \\[-1em]
		Committee Members,		& \@secondmember\\[-1em]
								& \@thirdmember \\[-1em]
	\fi
	\ifnum\@nummember>3
								& \@fourthmember\\[-1em]
		\ifnum\@nummember>4
								& \@fifthmember \\[-1em]
			\ifnum\@nummember>5
								& \@sixthmember \\[-1em]
			\fi
		\fi
	\fi
	Head of Department,			& \@depthead	 
\end{tabular}}
\begin{center}
\vfill										% Vertical space between approval and date
{\graddate \par}					% Date of graduation
\vfill										% Vertical space between date and subject
{Major Subject: \@major \par}
\vfill										% Vertical space between subject and copyright
{Copyright \@gradyear\  \@author}
\end{center}
\end{titlepage}}

% -- ABSTRACT --
%
\newcommand\abstractname{Abstract}
%\newcommand\abstract[1]{\newpage	% Modified: CWTR 2012/07/25
\newcommand\abstract[1]{\clearemptydoublepage
%  \pagenumbering{roman}				% Removed: CWTR 2012/07/25
%  \setcounter{page}{3}				% Removed: CWTR 2012/07/25
  \addcontentsline{toc}{chapter}{\hspace{-2em}\abstractname}	% TOC Entry
  \chapter*{\MakeUppercase{\abstractname}}#1		% Begin new page with abstract heading
%
% Removed: CWTR 2012/07/25
% Information paragraph removed from Thesis Manual
%
%  \begin{center}					% This begins the paragraph with additional information
%  \@title. (\graddate)\\ \@author, \prevdegrees\\ % Display information provided in main document
%  \if@cochair						% Check if user had co-chairs
%  	\centerline{\hbox{\singlespace Co-Chairs of Advisory Committee: \vtop{
%    \hbox{Dr. \firstmember}
%    \hbox{Dr. \secondmember} }}}	% Center co-chairs above each other
%  \else
%    Chair of Advisory Committee: Dr. \firstmember
%  \fi
%  \vskip 1.5em						% Spacing below information paragraph
%  \end{center}					
%  \hspace*{\parindent}#1			% Indent and then begin abstract
%  \gdef\@author{}\gdef\@title{}		% Clear commands used elsewhere by LaTeX
}

% -- DEDICATION PAGE --
% 
%\newcommand\dedicate[1]{\newpage	% Modified: CWTR 2012/07/25
\newcommand\dedicate[1]{\clearemptydoublepage
\addcontentsline{toc}{chapter}{\hspace{-2em}Dedication}
\null\vskip 7.5em
\centerline{#1}
\newpage}

% -- ACKNOWLEDGEMENTS PAGE --
%
%\newcommand\acknow[1]{\newpage	% Modified: CWTR 2012/07/25
\newcommand\acknow[1]{\clearemptydoublepage
\addcontentsline{toc}{chapter}{\hspace{-2em}Acknowledgements}
\chapter*{ACKNOWLEDGEMENTS}#1}

% -- NOMENCLATURE PAGE --
% UNTESTED!!
%\newcommand\nomen[1]{	% Modified: CWTR 2012/07/25
\newcommand\nomen[1]{\clearemptydoublepage
\addcontentsline{toc}{chapter}{\hspace{-2em}Nomenclature}
%\newpage								% Removed: CWTR 2012/07/25
\chapter*{NOMENCLATURE}#1}

% Added: CWTR 2012/07/25
% Macros to initialize frontmatter and mainmatter environments
% -- FRONTMATTER MACRO --
\newcommand\frontmatter{%
  \clearemptydoublepage
  \pagestyle{plain}
  \pagenumbering{roman} 
  \setcounter{page}{1}}
\newcommand\mainmatter{%
  \clearemptydoublepage
  \pagestyle{plain}
  \pagenumbering{arabic}
  \setcounter{page}{1}}

%  ---------------------------------------
%  |                                     |
%  |            TOC, LOF, LOT            |
%  |                                     |
%  ---------------------------------------
%
% A \subsection command writes a
%       \contentsline{subsection}{TITLE}{PAGE}
% command on the .toc file, where TITLE contains the contents of the
% entry and PAGE is the page number.  If subsections are being numbered,
% then TITLE will be of the form
%       \numberline{NUM}{HEADING}
% where NUM is the number produced by \thesubsection.  Other sectioning
% commands work similarly.
%
% A \caption command in a 'figure' environment writes
%    \contentsline{figure}{\numberline{NUM}{CAPTION}}{PAGE}
% on the .lof file, where NUM is the number produced by \thefigure and
% CAPTION is the figure caption.  It works similarly for a 'table' environment.
%
% The command \contentsline{NAME} expands to \l@NAME.  So, to specify
% the table of contents, we must define \l@chapter, \l@section,
% \l@subsection, ... ; to specify the list of figures, we must define
% \l@figure; and so on.  Most of these can be defined with the
% \@dottedtocline command, which works as follows.
%
% \@dottedtocline{LEVEL}{INDENT}{NUMWIDTH}{TITLE}{PAGE}
%    LEVEL    : An entry is produced only if LEVEL < or = value of
%               'tocdepth' counter.  Note, \chapter is level 0, \section
%               is level 1, etc.
%    INDENT   : The indentation from the outer left margin of the start of
%               the contents line.
%    NUMWIDTH : The width of a box in which the section number is to go,
%               if TITLE includes a \numberline command.
%
% This command uses the following three parameters, which are set
% with a \def (so em's can be used to make them depend upon the font).
%   \@pnumwidth : The width of a box in which the page number is put.
%   \@tocrmarg  : The right margin for multiple line entries.  One
%                 wants \@tocrmarg > or = \@pnumwidth
%   \@dotsep    : Separation between dots, in mu units.  Should be \def'd to
%                 a number like 2 or 1.7
% Code commented out is original report code

% -- TABLE OF CONTENTS --
%
\newcommand\contentsname{Table of Contents}
\newcommand\@pnumwidth{1.5em}
\newcommand\@tocrmarg{6em}
\newcommand\@dotsep{4.5}
\setcounter{tocdepth}{2}

%\newcommand\tableofcontents{\newpage\tocspace	% Modified: CWTR 2012/07/25
\newcommand\tableofcontents{\begin{tocpage}\tocspace
	% \markboth places CHAPTER and Page headers at top of columns on pages after first
%	\chapter*{\MakeUppercase{\contentsname}\markright{Chapter}}	% Modified: CWTR 2012/07/25
	\chapter*{\MakeUppercase{\contentsname}}\markboth{CHAPTER}{Page}
	{\vskip -1em \noindent CHAPTER \hfill Page\\}				% Places "Page" correctly on first page
	%{\vskip 0em \hfill Page\\}				% Places "Page" correctly on first page owens mod
%	\thispagestyle{myheadings}				% Modified: CWTR 2012/07/25
	\thispagestyle{plain}
	\addcontentsline{toc}{chapter}{\hspace{-2em}\contentsname}
	\@starttoc{toc}
	\doublespace
\end{tocpage}}

% Format part entries for TOC
\newcommand\l@part[2]{%
  \pagebreak[3]					% Encourage page breaks before part
  \vskip 0.75em \@plus\p@ 		% Space above chapter line
  \@tempdima 1.5em       		% Width of box holding chapter number
  \begingroup
    \parindent \z@ \rightskip \@pnumwidth
    \parfillskip -\@pnumwidth
    \leavevmode          		% TeX command to enter horizontal mode.
    #1\dotfill \makebox[\@pnumwidth]{\hfill\rm #2}\par
  \endgroup
  \nopagebreak[3]				% Discourage page break after part
}

% Format chapter entries for TOC
\newcommand\l@chapter[2]{%
   \pagebreak[3]				% Encourage page breaking before a chapter
   \vskip 0.5em \@plus\p@  		% Space above chapter line
    {\leftskip 0em\relax		% No margin on left
     \rightskip \@tocrmarg		% Right margin set to hold page number
     \parfillskip -\rightskip	% Leave space at end of paragraph for page number
     \parindent 1.7em\relax		% Indent chapter title
     \@afterindenttrue			% Indent after paragraph
     \interlinepenalty\@M
     \leavevmode				% TeX command to enter horizontal mode.
     \@tempdima 4em\relax       % Width of box holding chapter number
     \advance\leftskip \@tempdima \hbox{}\hskip -\leftskip
     \uppercase{#1}\nobreak\leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern 
       \@dotsep mu$}\hfill \nobreak \makebox[\@pnumwidth]{\hfill\rm #2}\par}
     \vskip 0.5em \@plus\p@		% Space below chapter line
	 \nopagebreak[3]			% Discourage page breaking right after a chapter    
    % \doublespace
}  

% Format subsection entries for TOC
% Modified: CWTR 2012/07/25
%\def\l@section{\@dottedtocline{1}{7em}{1.5em}}
%\def\l@subsection{\@dottedtocline{2}{9em}{1.5em}}
%\def\l@subsubsection{\@dottedtocline{3}{11em}{1.5em}}
%\def\l@paragraph{\@dottedtocline{4}{13em}{1.5em}}
%\def\l@subparagraph{\@dottedtocline{5}{14em}{1.5em}}
\def\l@section{\@dottedtocline{1}{7em}{3.4em}}
\def\l@subsection{\@dottedtocline{2}{9em}{4.3em}}
\def\l@subsubsection{\@dottedtocline{3}{11em}{5.2em}}
\def\l@paragraph{\@dottedtocline{4}{13em}{6.1em}}
\def\l@subparagraph{\@dottedtocline{5}{14em}{7.1em}}

% Places CHAPTER by itself after front matter in TOC
% WARNING: Due to an ancient bug in LaTeX, this command must be executed inside an input file
% if '\include' is being used for the thesis chapters, otherwise the TOC will be out of order
\newcommand\addchaptertocontents{%
\addtocontents{toc}{\protect\contentsline{tocchapter}{\hspace{-2em}Chapter}}}
\newcommand\l@tocchapter[1]{\pagebreak[3]
   \vskip 0.5em \@plus\p@   
    {\leftskip 0em\relax \rightskip \@tocrmarg \parfillskip -\rightskip
     \parindent 1.7em\relax\@afterindenttrue
    \interlinepenalty\@M
    \leavevmode
    \@tempdima 4em\relax       % width of box holding chapter number
    \advance\leftskip \@tempdima \hbox{}\hskip -\leftskip
     \uppercase{#1}\nobreak\hfill\null\par}% 
    \vskip 0.5em \@plus\p@}  % space below chapter line

% -- LIST OF FIGURES --
%
\newcommand\listfigurename{List of Figures}
%\newcommand\listoffigures{\newpage\tocspace	% Modified: CWTR 2012/07/25
\newcommand\listoffigures{\begin{tocpage}\tocspace
%	\chapter*{\MakeUppercase{\listfigurename}\markright{Figure}} % Modified: CWTR 2012/07/25
	\chapter*{\MakeUppercase{\listfigurename}}\markboth{FIGURE}{Page}
	{\vskip -1em \hspace{-2.5em} FIGURE \hfill Page\\}
%	\thispagestyle{myheadings}				% Modified: CWTR 2012/07/25
	\thispagestyle{plain}
	\addcontentsline{toc}{chapter}{\hspace{-2em}\listfigurename}
	\@starttoc{lof}
	\doublespace
\end{tocpage}}

% Defines each entry in LOF
\newcommand\l@figure[2]{\pagebreak[3]
   \vskip .5em plus 1pt  		% Space above figure line
     {\leftskip 0pt\relax \rightskip \@tocrmarg \parfillskip -\rightskip
     \parindent 0pt\relax\@afterindenttrue
     \interlinepenalty\@M
     \leavevmode               
     \@tempdima 4em\relax       % Width of box holding figure number
     \advance\leftskip \@tempdima \hbox{}\hskip -\leftskip
       #1\nobreak\leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern 
       \@dotsep mu$}\hfill \nobreak \makebox[\@pnumwidth]{\hfill #2}\par}
   \vskip .5em plus 1pt}  		% Space below figure line

% -- LIST OF TABLES --
%
\newcommand\listtablename{List of Tables}
%\newcommand\listoftables{\tocspace	% Modified: CWTR 2012/07/25
\newcommand\listoftables{\begin{tocpage}\tocspace
%  \chapter*{\MakeUppercase{\listtablename}\markright{Table}} % Modified: CWTR 2012/07/25
	\chapter*{\MakeUppercase{\listtablename}}\markboth{TABLE}{Page}
  {\vskip -1em\hspace{-2.5em} TABLE \hfill Page\\}
%	\thispagestyle{myheadings}				% Modified: CWTR 2012/07/25
	\thispagestyle{plain}
  \addcontentsline{toc}{chapter}{\hspace{-2em}\listtablename}
  \@starttoc{lot}
  \doublespace
\end{tocpage}}

\let\l@table\l@figure

%  ---------------------------------------
%  |                                     |
%  |       CHAPTERS AND SECTIONS         |
%  |                                     |
%  ---------------------------------------
%
\newcommand\partname{Part}
\newcommand\chaptername{CHAPTER}
\newcommand*\chaptermark[1]{}
\setcounter{secnumdepth}{3}
\newcounter {part}
\newcounter {chapter}
\newcounter {section}[chapter]
\newcounter {subsection}[section]
\newcounter {subsubsection}[subsection]
\newcounter {paragraph}[subsubsection]
\newcounter {subparagraph}[paragraph]
\renewcommand \thepart {\@Roman\c@part.}
\renewcommand \thechapter {\@Roman\c@chapter}
% Modified: CWTR 2012/07/25
% Added upper levels to section numbers to make \ref work satisfactorily
%\renewcommand \thesection {\@Alph\c@section}
%\renewcommand\thesubsection   {\@arabic\c@subsection}
%\renewcommand\thesubsubsection{\@alph\c@subsubsection}
\renewcommand \thesection {\thechapter.\@Alph\c@section}
\renewcommand\thesubsection   {\thesection.\@arabic\c@subsection}
\renewcommand\thesubsubsection{\thesubsection.\@alph\c@subsubsection}
\renewcommand\theparagraph    {\null}
\renewcommand\thesubparagraph {\null}

% Places a period after the sections in both headings and the TOC
% Code copied from LaTeX base code
\def\@seccntformat#1{\csname the#1\endcsname.\quad}
\def\@sect#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}%
    \addcontentsline{toc}{#1}{%
      \ifnum #2>\c@secnumdepth \else
        \protect\numberline{\csname the#1\endcsname.}% Added period to section number in TOC
      \fi
      #7}%
  \else
    \def\@svsechd{%
      #6{\hskip #3\relax
      \@svsec #8}%
      \csname #1mark\endcsname{#7}%
      \addcontentsline{toc}{#1}{%
        \ifnum #2>\c@secnumdepth \else
          \protect\numberline{\csname the#1\endcsname.}% Added period to section number in TOC
        \fi
        #7}}%
  \fi
\@xsect{#5}}

\newcommand\@chapapp{\chaptername} % Changes value to \appendixname after using \appendix command

%% -- DEFINITION OF \par -- % Typo fixed: CWTR 2012/07/25
% -- DEFINITION OF \part --
%
% The \secdef command is used for both \part and \chapter definitions
% \secdef{UNSTARCMDS}{STARCMDS} :
%    When defining a \chapter or \section command without using
%    \@startsection, you can use \secdef as follows:
%       \def\chapter { ... \secdef \CMDA \CMDB }
%       \def\CMDA    [#1]#2{ ...   % Command to define \chapter[...]{...}
%       \def\CMDB    #1{ ...       % Command to define \chapter*{...}

\newcommand\part{
%  \clearpage		% Modified: CWTR 2012/07/25
	\clearemptydoublepage
  \thispagestyle{plain}
  \null\vfil
  \secdef\@part\@spart}
\def\@part[#1]#2{%
    \ifnum \c@secnumdepth >-2\relax
      \refstepcounter{part}%
      \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
    \else
      \addcontentsline{toc}{part}{#1}%
    \fi
    \markboth{}{}%
    {\centering
	 \interlinepenalty \@M
     \normalfont
     \ifnum \c@secnumdepth >-2\relax
       \huge\bfseries \partname\nobreakspace\thepart
       \par
       \vskip 20\p@
     \fi
     \Huge \bfseries #2\par}%
    \@endpart}
\def\@spart#1{%
    {\centering
     \interlinepenalty \@M
     \normalfont
     \Huge \bfseries #1\par}%
    \@endpart}
\def\@endpart{\vfil\newpage}

% -- DEFINITION OF \chapter --
%
% See LaTeX base code for additional explanation
%\newcommand\chapter{\clearpage		% Modified: CWTR 2012/07/25
\newcommand\chapter{\clearemptydoublepage
                    \global\@topnum\z@
                    \@afterindenttrue
                    \secdef\@chapter\@schapter}
\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
                         \refstepcounter{chapter}%
                         \typeout{\@chapapp\space\thechapter.}%
                         \addcontentsline{toc}{chapter}%
                                   {\hspace{-1em}\protect\numberline{\thechapter}
								   \hspace{-1em}\uppercase{#1}}%
                    \else
                      \addcontentsline{toc}{chapter}{#1}%
                    \fi
                    \chaptermark{#1}%
                    \@makechapterhead{\uppercase{#2}}%
                    \@afterheading
                    }
\def\@makechapterhead#1{%
  {\parindent \z@ \raggedright \normalfont
    \ifnum \c@secnumdepth >\m@ne
        \centering\bfseries \@chapapp\space\thechapter
        \par\nobreak
        \vskip 1.5em
    \fi
    \interlinepenalty\@M
    \bfseries\uppercase{#1}\par\nobreak
    \vskip 1.5em
  }}
\def\@schapter#1{\@makeschapterhead{\uppercase{#1}}%
                 \@afterheading
                 }
\def\@makeschapterhead#1{%
  {\parindent \z@ \raggedright \normalfont
    \interlinepenalty\@M
    \centering\bfseries\uppercase{#1}\par\nobreak
    \vskip 2em
  }}

% % -- DEFINITION OF SUBHEADINGS --
%
% The \@startsection command is used for both \part and \chapter definitions
% \@startsection {NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE}
%            optional * [ALTHEADING]{HEADING}
%    Generic command to start a section.
%    NAME       : e.g., 'subsection'
%    LEVEL      : a number, denoting depth of section -- e.g., chapter=0,
%                 section = 1, etc.  A section number will be printed if
%                 and only if LEVEL < or = the value of the secnumdepth
%                 counter.
%    INDENT     : Indentation of heading from left margin
%    BEFORESKIP : Absolute value = skip to leave above the heading.
%                 If negative, then paragraph indent of text following
%                 heading is suppressed.
%    AFTERSKIP  : if positive, then skip to leave below heading,
%                       else - skip to leave to right of run-in heading.
%    STYLE      : commands to set style
%
% To ensure paragraphs after section headings are indented the * and 
% [ALTHEADING] portions of \@startsection have been disabled

\newcommand\section{\@startsection {section}{1}{\z@}%
                                   {3.5ex \@plus -1ex \@minus -.2ex}%
                                   {2.3ex \@plus.2ex}%
                                   {\normalfont\bfseries}}
% Modified: CWTR 2012/07/25
% Changed subsection headings to italic to match AIAA Journal style
% Note: this also satisfies Thesis Manual requirements, but so did the old way
%\newcommand\subsection{\@startsection{subsection}{2}{\z@}%
%                                     {3.25ex\@plus -1ex \@minus -.2ex}%
%                                     {1.5ex \@plus .2ex}%
%                                     {\normalfont\bfseries}}
\newcommand\subsection{\@startsection{subsection}{2}{\z@}%
                                     {3.25ex\@plus -1ex \@minus -.2ex}%
                                     {1.5ex \@plus .2ex}%
                                     {\normalfont\itshape}}
\newcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
                                     {3.25ex\@plus -1ex \@minus -.2ex}%
                                     {1.5ex \@plus .2ex}%
                                     {\normalfont\normalsize}}
\newcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
                                    {3.25ex \@plus1ex \@minus.2ex}%
                                    {-1em}%
                                    {\normalfont\normalsize}}
\newcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
                                       {3.25ex \@plus1ex \@minus .2ex}%
                                       {-1em}%
                                       {\normalfont\normalsize}}

%  ---------------------------------------
%  |                                     |
%  |               LISTS                 |
%  |                                     |
%  ---------------------------------------
%
% -- GENERAL LIST PARAMETERS --
%
% The following commands are used to set the default values for the list
% environment's parameters. See the LaTeX manual for an explanation of
% the meanings of the parameters.  Defaults for the list environment are
% set as follows.  First, \rightmargin, \listparindent and \itemindent
% are set to 0pt.  Then, for a Kth level list, the command \@listK is
% called, where 'K' denotes 'i', 'ii', ... , 'vi'.  (I.e., \@listiii is
% called for a third-level list.)  By convention, \@listK should set
% \leftmargin to \leftmarginK.
%
% For efficiency, level-one list's values are defined at top level, and
% \@listi is defined to set only \leftmargin.

% Define left margin for lists
\setlength\leftmargini  {2.5em}
\leftmargin  \leftmargini			% Set default leftmargin to 1st level list

\setlength\leftmarginii  {2.2em}
\setlength\leftmarginiii {1.87em}
\setlength\leftmarginiv  {1.7em}
\setlength\leftmarginv  {1em}
\setlength\leftmarginvi {1em}

% Define size of list label
\setlength  \labelsep  {.5em}
\setlength  \labelwidth{\leftmargini}
\addtolength\labelwidth{-\labelsep}

% Penalties to encourage page breaking before
% and after paragraphs and between list items
\@beginparpenalty -\@lowpenalty
\@endparpenalty   -\@lowpenalty
\@itempenalty     -\@lowpenalty

% -- ENUMERATED LISTS --
%
% The enumerate environment use four counters: enumi, enumii, enumiii,
% enumiv, where enumN controls the number of the Nth level enumeration

% Counter style
\renewcommand\theenumi{\@arabic\c@enumi}
\renewcommand\theenumii{\@alph\c@enumii}
\renewcommand\theenumiii{\@roman\c@enumiii}
\renewcommand\theenumiv{\@Alph\c@enumiv}

% Item labels
\newcommand\labelenumi{\theenumi.}
\newcommand\labelenumii{(\theenumii)}
\newcommand\labelenumiii{\theenumiii.}
\newcommand\labelenumiv{\theenumiv.}

% Defines the output of \ref commands
\renewcommand\p@enumii{\theenumi}
\renewcommand\p@enumiii{\theenumi(\theenumii)}
\renewcommand\p@enumiv{\p@enumiii\theenumiii}

% -- ITEMIZED LISTS --
% 
% Same structure as enumerated lists only use item instead of enum
\newcommand\labelitemi{\textbullet}
\newcommand\labelitemii{\normalfont\bfseries \textendash}
\newcommand\labelitemiii{\textasteriskcentered}
\newcommand\labelitemiv{\textperiodcentered}

%  ---------------------------------------
%  |                                     |
%  |      ENVIRONMENT DESCRIPTIONS       |
%  |                                     |
%  ---------------------------------------
% 
% A series of possible environments for use with this class

% Added: CWTR 2012/07/25
% Single-spaced tabular environment
% -- SINGLE-SPACED TABULAR --
\newenvironment{ssptabular}{\def\baselinestretch{0.6}\normalsize\tabular}{\endtabular}

% -- DESCRIPTION --
%
\newenvironment{description}
               {\list{}{\labelwidth\z@ \itemindent-\leftmargin
                        \let\makelabel\descriptionlabel}}
               {\endlist}
\newcommand*\descriptionlabel[1]{\hspace\labelsep
                                \normalfont\bfseries #1}

% -- VERSE --
%
\newenvironment{verse}
               {\let\\\@centercr
                \list{}{\itemsep      \z@
                        \itemindent   -1.5em%
                        \listparindent\itemindent
                        \rightmargin  \leftmargin
                        \advance\leftmargin 1.5em}%
                \item\relax}
               {\endlist}
			   
% -- QUOTATION --
%
\newenvironment{quotation}
               {\list{}{\listparindent 1.5em%
                        \itemindent    \listparindent
                        \rightmargin   \leftmargin
                        \parsep        \z@ \@plus\p@}%
                \item\relax}
               {\endlist}

% -- QUOTE --
%
\newenvironment{quote}
               {\list{}{\rightmargin\leftmargin}%
                \item\relax}
               {\endlist}
			   
% -- TITLEPAGE --
%
% Used for Title and Approval pages
\newenvironment{titlepage}
    {%
%      \newpage		% Modified: CWTR 2012/07/25
      \clearemptydoublepage
      \thispagestyle{empty}%
%      \setcounter{page}\@ne
    }%
    {%
%    	\newpage		% Modified: CWTR 2012/07/25
			\clearemptydoublepage
%     \setcounter{page}\@ne
    }

% Added: CWTR 2012/07/25
% Created TOC, LOF, LOT environment to allow more rigorous pagestyle control
% -- TOCPAGE --
%
% Used for Table of Contents, List of Figures, and List of Tables pages
\newenvironment{tocpage}
    {%
    	\clearemptydoublepage
      \pagestyle{headings}%
    }%
    {%
    	\clearemptydoublepage
    	\pagestyle{plain}%
    }

%  ---------------------------------------
%  |                                     |
%  |             END MATTER              |
%  |                                     |
%  ---------------------------------------
%
% -- APPENDICES --
%
% Resets counters and redfines chapter counter to capital letters
% and changes table of contents descriptions to fit appendices
\newcommand\appendixname{APPENDIX}
\newcommand\appendix{\par
  \setcounter{chapter}{0}%
  \setcounter{section}{0}%
  \renewcommand\@chapapp{\appendixname}			% Chapters are now called Appendices
  % Redefine section variables and counters
  \renewcommand\thechapter{\@Alph\c@chapter}
  \renewcommand\thesection{\thechapter.\@arabic\c@section}
  \renewcommand\thesubsection{\thesection.\@alph\c@subsection}
  \renewcommand\thesubsubsection{\thesubsection.\@roman\c@subsubsection}
  % Redefine equations to use appendix counter in front of equations
  \renewcommand\theequation
  {\ifnum \c@chapter>\z@ \thechapter.\fi \@arabic\c@equation}
%  \renewcommand\chapter{\clearpage		% Modified: CWTR 2012/07/25
  \renewcommand\chapter{\clearemptydoublepage
                    \global\@topnum\z@
                    \@afterindenttrue
                    \secdef\@appendix\@sappendix}
}
\def\@appendix[#1]#2{\ifnum \c@secnumdepth >\m@ne
                         \refstepcounter{chapter}%
                         \typeout{\@chapapp\space\thechapter.}%
                         \addcontentsline{toc}{chapter}%
                                   {\hspace{-2em}\@chapapp\ \thechapter : \uppercase{#1}}%
                    \else
                      \addcontentsline{toc}{chapter}{#1}%
                    \fi
                    \chaptermark{#1}%
                    \@makechapterhead{\uppercase{#2}}%
                    \@afterheading
                    }
\def\@sappendix#1{\addcontentsline{toc}{chapter}%
                                   {\hspace{-2em}\@chapapp : \uppercase{#1}}
				  \@makesappendixhead{\uppercase{#1}}%
                  \@afterheading
                 }
\def\@makesappendixhead#1{%
  {\parindent \z@ \raggedright \normalfont
    \centering\bfseries\@chapapp
        \par\nobreak
        \vskip 1.5em
    \interlinepenalty\@M
    \centering\bfseries\uppercase{#1}\par\nobreak
    \vskip 1.5em
  }
}

% -- VITA PAGE --
%
% If appendices are used the Vita page has to use the original
% chapter code. Thus, it is forced here.

% Definition removed: CWTR 2012/07/25
% Vita page eliminated from Thesis Manual

%\newcommand\vita{\clearpage
% \global\@topnum\z@
% \@afterindenttrue
% \addcontentsline{toc}{chapter}{\hspace{-2em}Vita}
% \@makeschapterhead{VITA}%
% \@afterheading%
%}

%  ---------------------------------------
%  |                                     |
%  |       EXISTING ENVIRONMENTS         |
%  |                                     |
%  ---------------------------------------
%
% -- SET PARAMETERS --
%
\setlength\arraycolsep{5\p@}		% Separation between array columns
\setlength\tabcolsep{6\p@}			% Separation between table columns
\setlength\arrayrulewidth{.4\p@}	% Size of rules in arrays
\setlength\doublerulesep{2\p@}		% Separation between double rules
\setlength\tabbingsep{\labelsep}  	% Size of \' command
\skip\@mpfootins = \skip\footins	% Footnote specs for minipages
\setlength\fboxsep{3\p@}			% Separation between framed box and text
\setlength\fboxrule{.4\p@}			% Width of rules in framed boxes

% -- EQUATIONS --
%
\@addtoreset {equation}{chapter}	% Reset equations every chapter
\renewcommand\theequation
  {\ifnum \c@chapter>\z@ \@arabic\c@chapter.\fi \@arabic\c@equation}
  
%  ---------------------------------------
%  |                                     |
%  |               FLOATS                |
%  |                                     |
%  ---------------------------------------
%
% Parameter definitions for floating objects
% To define a float of type TYPE (e.g., TYPE = figure), the document style
% must define the following.
%
%  \fps@TYPE   : The default placement specifier for floats of type TYPE.
%
%  \ftype@TYPE : The type number for floats of type TYPE.  Each TYPE has
%                associated a unique positive TYPE NUMBER, which is a power
%                of two.  E.g., figures might have type number 1, tables type
%                number 2, programs type number 4, etc.
%
%  \ext@TYPE   : The file extension indicating the file on which the
%                contents list for float type TYPE is stored.  For example,
%                \ext@figure = 'lof'.
%
%  \fnum@TYPE  : A macro to generate the figure number for a caption.
%                For example, \fnum@TYPE == Figure \thefigure.
%
%  The actual float-making environment commands--e.g., the commands
%  \begin{figure} and \end{figure}--are defined in terms of the macros \@float
%  and \end@float, which are described below.
%
%  \@float{TYPE}[PLACEMENT] : Macro to begin a float environment for a
%     single-column float of type TYPE with PLACEMENT as the placement
%     specifier.  The default value of PLACEMENT is defined by \fps@TYPE.
%     The environment is ended by \end@float.
%     E.g., \begin{figure} == \@float{figure}, \end{figure} == \end@float.

% -- FLOAT LIMITS --
%
\setcounter{topnumber}{2}				% Maximum number of floats on top of page
\renewcommand\topfraction{.7}			% Maximum percentage of top page for floats
\setcounter{bottomnumber}{1}			% Maximum number of floats on bottom of page
\renewcommand\bottomfraction{.3}        % Maximum percentage of bottom page for floats
\setcounter{totalnumber}{3}				% Maximum number of floats per page
\renewcommand\textfraction{.2}			% Minimum part of text page occupied by text
\renewcommand\floatpagefraction{.5}     % Minimum part of float page occupied by floats

% -- FIGURES --
%
%\newcommand\figurename{Fig.}		% Moved to 'Definitions': CWTR 2012/07/25
%\newcounter{figure}					% Changed: CWTR 2012/07/25
%\renewcommand \thefigure{\@arabic\c@figure}
\newcounter{figure}[chapter]	% Figures reset with chapters
\renewcommand \thefigure{\thechapter.\@arabic\c@figure}
\def\fps@figure{tbp}					% Default float placement specifier
\def\ftype@figure{1}					% Figures float type is 1
\def\ext@figure{lof}					% File extension for figure floats
% Generates figure number in caption
\def\fnum@figure{\figurename\nobreakspace\thefigure} 
\newenvironment{figure}				
               {\@float{figure}}
               {\end@float}
			   
% -- TABLES --
%
%\newcommand\tablename{Table}		% Moved to 'Definitions': CWTR 2012/07/25
%\newcounter{table}					% Changed: CWTR 2012/07/25
%\renewcommand \thetable{\@arabic\c@table}
\newcounter{table}[chapter]		% Tables reset with chapters
\renewcommand \thetable{\thechapter.\@arabic\c@table}
\def\fps@table{tbp}					
\def\ftype@table{2}						% Tables float type is 2
\def\ext@table{lot}
\def\fnum@table{\tablename\nobreakspace\thetable}
\newenvironment{table}
               {\@float{table}}
               {\end@float}

% -- CAPTIONS --
%
\newlength\abovecaptionskip
\newlength\belowcaptionskip
\setlength\abovecaptionskip{10\p@}
%\setlength\belowcaptionskip{0\p@}	% Changed: CWTR 2012/08/05
\setlength\belowcaptionskip{6\p@}
\long\def\@makecaption#1#2{%
  \singlespace
  \vskip\abovecaptionskip
%  \sbox\@tempboxa{#1: #2}%	% Changed: CWTR 2012/08/05
  \sbox\@tempboxa{\bfseries #1. #2}%
  \ifdim \wd\@tempboxa >\hsize
%    #1: #2\par							% Changed: CWTR 2012/08/05
    \bfseries #1. #2\par
  \else
    \global \@minipagefalse
    \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
  \fi
  \vskip\belowcaptionskip}
  
%  ---------------------------------------
%  |                                     |
%  |              FOOTNOTES              |
%  |                                     |
%  ---------------------------------------
%
% \footnoterule is a macro to draw the rule separating the footnotes from
% the text.  It should take zero vertical space (See PLAIN.TEX.), so we  
% compensate for the natural height of the rule of 0.4pt by adding the right
% amount of vertical skip.
\renewcommand\footnoterule{%
  \kern-1\p@
  \hrule\@width 1in
  \kern.6\p@}
  
% Footnotes reset with each chapter
\@addtoreset{footnote}{chapter}

%   \@makefntext{NOTE} :
%        Must produce the actual footnote, using \@thefnmark as the mark
%        of the footnote and NOTE as the text.  It is called when effectively
%        inside a \parbox of width \columnwidth (i.e., with \hsize =
%        \columnwidth).
%
%        The following macro indents all lines of the footnote by 10pt, and
%        indents the first line of a new paragraph by 1em.  To change these
%        dimensions, just substitute the desired value for '10pt' [in both
%        places] or '1em'.  The mark is flushright against the footnote.
%          \long\def\@makefntext#1{\@setpar{\@@par\@tempdima \hsize
%             \advance\@tempdima-10pt\parshape \@ne 10pt \@tempdima}\par
%             \parindent 1em\noindent \hbox to \z@{\hss$^{\@thefnmark}$}#1}
%
%        A simpler macro is used, in which the footnote text is
%        set like an ordinary text paragraph, with no indentation except
%        on the first line of a paragraph, and the first line of the
%        footnote.  Thus, all the macro must do is set \parindent
%        to the appropriate value for succeeding paragraphs and put the
%        proper indentation before mark.
\newcommand\@makefntext[1]{%
    \parindent 1em%
    \noindent
    \hb@xt@1.8em{\hss\@makefnmark}#1}

% Removed: CWTR 2012/07/25
% Journal footnote no longer required in Thesis Manual

%% Generates the required journal footnote (called at beginning of first chapter)	  
%\newcommand\journalfootnote{\newcommand\@thefnmark{}\@footnotetext{\hskip -1.8em This \MakeLowercase{\@type} follows the style of \emph{\journal}.}} 

%  ---------------------------------------
%  |                                     |
%  |          CROSS REFERENCING          |
%  |                                     |
%  ---------------------------------------
%
% Bibliography
% BibTeX should be used with appropriate journal style
\newdimen\bibindent
\setlength\bibindent{1.5em}
\newenvironment{thebibliography}[1]{%
	  \addcontentsline{toc}{chapter}{\hspace{-2em}\bibname}
	  \chapter*{\MakeUppercase{\bibname}}%
      \list{\@biblabel{\@arabic\c@enumiv}}%
           {\settowidth\labelwidth{\@biblabel{#1}}%
            \leftmargin\labelwidth
            \advance\leftmargin\labelsep
            \usecounter{enumiv}%
            \let\p@enumiv\@empty
            \renewcommand\theenumiv{\@arabic\c@enumiv}}%
      \sloppy
      \clubpenalty4000
      \@clubpenalty \clubpenalty
      \widowpenalty4000%
      \sfcode`\.\@m}
     {\def\@noitemerr
       {\@latex@warning{Empty `thebibliography' environment}}%
      \endlist}

% -- INDEX --
%
% Produces double column format, with each paragraph a separate entry.
% The user commands \item, \subitem and \subsubitem are used to
% produce the entries, and \indexspace adds an extra vertical space
% that's the right size to put above the first entry with a new letter
% of the alphabet.
% This code has been unaltered from base LaTeX index code for report.cls
\newcommand\indexname{INDEX}
\newenvironment{theindex}
               {\twocolumn[\@makeschapterhead{\indexname}]%
                \@mkboth{\MakeUppercase\indexname}%
                        {\MakeUppercase\indexname}%
                \thispagestyle{plain}\parindent\z@
                \parskip\z@ \@plus .3\p@\relax
                \columnseprule \z@
                \columnsep 35\p@
                \let\item\@idxitem}
               {\onecolumn}
\newcommand\@idxitem{\par\hangindent 40\p@}
\newcommand\subitem{\@idxitem \hspace*{20\p@}}
\newcommand\subsubitem{\@idxitem \hspace*{30\p@}}
\newcommand\indexspace{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax} % Space between letter blocks


%  ---------------------------------------
%  |                                     |
%  |            MISCELLANEOUS            |
%  |                                     |
%  ---------------------------------------
%
% -- LEGACY SUPPORT --
\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
\DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
\DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
\DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
\DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal}

% -- DATE --
\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}

% -- INITIALIZE SETTINGS --
%\pagestyle{myheadings}
\pagestyle{plain} % Modified: CWTR 2012/07/25
\pagenumbering{arabic} % Modified: CWTR 2012/07/25
\raggedbottom	% Modified: CWTR 2012/07/25
% 'flushbottom' behaviour is buggy around floats in twoside mode
% keep raggedbottom for now
%\if@twoside\else\raggedbottom\fi % Ragged bottom unless twoside option
\onecolumn
\endinput
%%
%% End of file `aethesis.cls'.
