% Most users will need to modify ONLY the parts in this file that are marked as ``MODIFY ME''

\input{shsu-style}

\input{theorems}

\input{commands}

%%%%%%%%%%%%%%
%% MODIFY ME %%%%%
%%%% BEGIN %%%%%%
%%%%%%%%%%%%%%
% The following command specifies which chapters and appendices
% are included in the document. 
%
% If you remove an entry from this list, the final pdf file will not include that chapter. 
% But the chapter numbering, page numbering, table of contents, and other automatic counters
% will still take into account all the chapters that appear below as \include{}
% 
% Note that there are no spaces in between entries in this list. 
\includeonly{chap1,chap2,chap3,chap4,chap5,chap6,appendix1,appendix2}
%%%%%%%%%%%%%%
%%%%% END  %%%%%%
%%%%%%%%%%%%%%

% \makeindex

\begin{document}

\frontmatter

%%%%%%%%%%%%%%
%% MODIFY ME %%%%%
%%%% BEGIN %%%%%%
%%%%%%%%%%%%%%
\title{On Writing a M.S. in Mathematics Thesis at Sam Houston State University}

%    author information
\author{Luis David Garc\'{\i}a-Puente}
%%%%%%%%%%%%%%
%%%%% END  %%%%%%
%%%%%%%%%%%%%%

\date{\today}

\maketitle

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% You can LaTeX the Approval Sheet. However, it may
% not entirely fit the spacing of the Word template 
% provided by the library.
% I AM EXTREMELY INTERESTED IN TESTING IF THIS WORKS
% To do this, uncomment the following two lines and then comment
% the third line below.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%\setcounter{page}{2}
%\input{approval-sheet}
%
\setcounter{page}{3}

\input{dedication}

\input{abstract}

\input{acknowledgements}

\clearpage 
\pagestyle{plain}
\addcontentsline{toc}{chapter}{TABLE OF CONTENTS}
\tableofcontents
\clearpage

\addcontentsline{toc}{chapter}{LIST OF TABLES}
\listoftables
\clearpage

\addcontentsline{toc}{chapter}{LIST OF FIGURES}
\listoffigures


\addtocontents{toc}{%
 \protect\noindent\normalfont CHAPTER\protect\par}

\mainmatter

\pagestyle{fancy}
\fancypagestyle{plain}{\pagestyle{fancy}}

%%%%%%%%%%%%%%
%% MODIFY ME %%%%%
%%%% BEGIN %%%%%%
%%%%%%%%%%%%%%
% Main content
\include{chap1}

\include{chap2}

\include{chap3}

\include{chap4}

\include{chap5}

\include{chap6}
%%%%%%%%%%%%%%
%%%%% END  %%%%%%
%%%%%%%%%%%%%%

\clearpage

%%%%%%%%%%%%%%%%%%%%%%%
% REFERENCES
%  Bibliography prepared with BibTeX using amsplain or amsalpha.
% I modified amsplain and amsalpha to abbreviate the first name of each author.
\addcontentsline{toc}{chapter}{REFERENCES}
% \bibliographystyle{amsplain}
 \bibliographystyle{abbrvamsplain}
 \bibliography{Bibliography}
%%%%%%%%%%%%%%%%%%%%%%%

\backmatter

%%%%%%%%%%%%%%%
% APPENDIX
%%%%%%%%%%%%%%%
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% The following two lines are old and must not be uncommented.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\addtocontents{toc}{%
 %\protect\noindent\normalfont APPENDIX\protect\par}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Since the format of the CHAPTER headings was changed,
% I need to manually change the format for the Appendix heading.
\titleformat{\chapter}[display]
{\normalfont\bfseries\filcenter}
{APPENDIX \thechapter}
{0ex}
{\titlerule[0pt]
\vspace{0ex}%
}
[\vspace{0ex}%
{\titlerule[0pt]}]
\titlespacing{\chapter} {0pt}{-20pt}{12pt}
%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%%%%%%%%%%%%%%
%% MODIFY ME %%%%%
%%%% BEGIN %%%%%%
%%%%%%%%%%%%%%
% Comment the following lines if there are no appendices
%
\begin{appendices}

\include{appendix1}

\include{appendix2}

\end{appendices}
%%%%%%%%%%%%%%
%%%%% END  %%%%%%
%%%%%%%%%%%%%%

% \backmatter

\input{vita}

%\printindex 
 

\end{document}  % The End
