% Montclair State University Master Thesis Template
% (c) 2006 Lukasz Grzegorz Maciak
\documentclass[12pt]{report}

% define your title and author here - this is the only place you will need to do this
% title and your name will be automatically placed on the title page, and on the signature page
\newcommand{\thesistitle}{Your Thesis Title} 
\newcommand{\thesisauthor}{Your Name}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This block makes the figure captions different size than the normal text
\newcommand{\captionfonts}{\footnotesize} % you can use \small, \tiny and etc..

% do not touch the code below
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%-DO-NOT-TOUCH-BLOCK-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
			\makeatletter  % Allow the use of @ in command names
			\long\def\@makecaption#1#2{%
			  \vskip\abovecaptionskip
			  \sbox\@tempboxa{{\captionfonts #1: #2}}%
			  \ifdim \wd\@tempboxa >\hsize
			    {\captionfonts #1: #2\par}
			  \else
			    \hbox to\hsize{\hfil\box\@tempboxa\hfil}%
			  \fi
			  \vskip\belowcaptionskip}
			\makeatother   % Cancel the effect of \makeatletter
						
			\renewcommand{\topfraction}{0.9}
			\renewcommand{\bottomfraction}{0.8}
			\setcounter{topnumber}{2}
			\setcounter{bottomnumber}{2}
			\setcounter{totalnumber}{4}
			\setcounter{dbltopnumber}{2}
			\renewcommand{\dbltopfraction}{0.9}
			\renewcommand{\textfraction}{0.07}
			\renewcommand{\floatpagefraction}{0.7}
			% floatpagefraction MUST be less than topfraction !!
			\renewcommand{\dblfloatpagefraction}{0.7}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% END OF -DO-NOT-TOUCH- BLOCK %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%\listfiles 			%lists files called in compiling this document (for debuging only)

% PACKAGE DECLARATIONS

% Uncomment packages as needed. Only the essential packages were left uncommented

%\usepackage{showkeys} 		%shows label names, etc
%\usepackage{axodraw,color} 	%optional graphics packages

\usepackage{epsf,graphicx} 	%essential graphics packages
\usepackage{latexsym,amssymb} 	%define additional symbols
\usepackage{setspace,cite} 	%double spacing for text, single for captions, footnotes, etc.

%\usepackage{mcite} 		%can find on web. not really recommended
%\usepackage{draft}		%draft option - doesn't put full figures in - useful when editing 
\usepackage{fancyhdr} 		%does the headers on the pages - keep in
%\usepackage{makeidx} 		%in case you have an index too
\usepackage{ifthen}		%better contitional statements
%\makeindex  			%also needed for an index
\usepackage{multicol} 		%support for for multiple column text
\usepackage{appendix}		%better handling of appendices
\usepackage{moreverb}		%verbatim environment that respects tabs (use \begin{verbatimtab})
\usepackage{boxedminipage}	%nice text boxes for formulas and algorithms

% SETTING UP THE MARGINS

% set the margins using the graphics package
% note by university standards you need 1" top, right and bottom margins, and 1.5" left margin 
\usepackage[top=1in, bottom=1in, left=1.5in, right=1in]{geometry}


% ALTERNATIVE WAY OF SETTING THE MARGINS

% use this if you do not have the geometry package

% \textwidth 6in		% width 6 in gives you 1 inch margin on both sides (left and right)
% \textheight 9in		% height 9 in gives you 1 inch margins top and bottom
% \oddsidemargin 0.5in 		% add .5in to the left margin


% TIME AND DATE MAGIC

% these few lines below set up the date according to MSU submission specifications
% you can only submit a thesis in May, August or January. So if it is, say June of 2006 the
% template will automatically display your date as June, 2006. If it is December, the template
% will display January, 2007 and etc..

% please do not modify this code unless you know what you are doing. If for some reason you need
% to specify a certain date uncomment the lines below to set appropriate date, rather than hard-code
% the dates on the titlepage:
	
%\month{5} 	% set month (in numeric format)
%\year{2006}	% set year

\newcounter{theyear} 			% create a new variable for the current year
\setcounter{theyear}{\number\year}	% initialize it to the current year

% if the submission date falls on January, increment the year
\ifthenelse{\number\month > 8}{\addtocounter{theyear}{1}}

% a command to display just the current year: \justyear => 2006
\newcommand{\justyear}{	\number\value{theyear}}

% a command to display the submission date in a shorthand format: \shorttoday => April, 2006
\newcommand{\shorttoday}{\ifthenelse{\number\month<5}{May, }{\ifthenelse{\number\month <8}{August, }{January, }} \justyear}
	
% BIBLIOGRAPHY	
	
% set up BibTeX style to plain. The bibliography is actually imported at the end of this file
% you will need to use thesis.bib provided with your document, or create your own
\bibliographystyle{IEEEtran}

% NUMBERING

% By default the subsubsections are not numbered and do not appear is the table of contents. I'm overriding that.
% If you don't want them to be numbered, just comment out the two lines below.
% Please note that the paragraph are still not numbered.
\setcounter{secnumdepth}{3} 		% number subsubsections
\setcounter{tocdepth}{3}				% show subsubsections in table of contents


% OTHER

\newcommand{\vbrk}{\vspace{.2in}} % set up a command that makes a .2in vertical space

% redefine the plain page style to move the page numbers
% to the bottom right corner as per MSU standards
% this will mostly affect the first page of each chapter
\fancypagestyle{plain}{%
\fancyhf{} 				% clear all header and footer fields
\fancyfoot[R]{\thepage} 		% insert page number in the right corner
\renewcommand{\headrulewidth}{0pt}	
\renewcommand{\footrulewidth}{0pt}}

% change the style for all the other pages as per MSU specifications
\pagestyle{fancy}
\fancyhf{} 				% clear all header and footer fields
\fancyfoot[R]{\thepage}			% insert page number in the right corner
\renewcommand{\headrulewidth}{0pt}	


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%           THE DOCUMENT STARTS HERE             %%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{document}
\newpage

%Puts page numbering of preamble in roman and of main body of thesis in
%arabic. Also defines how chapters and sections are made
\pagenumbering{arabic}
\setcounter{page}{1} 

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% by Montclair standards a thesis must include:
	
	% 1.	An Abstract
	% 2.	Thesis Signature Page
	% 3.	Title Page
	% 4.	Copyright Page 		(if needed)
	% 5.	Acknowledgements 	(if needed)
	% 7.	Table of Contents
	% 8.	Table of Figures	(if needed)
	% 9.	Thesis Text
	% 10.	Bibiliography
	% 11.	Apendices		(if needed)
	% 12.	Suplemental Figures	(if needed)

% in exactly that order. These are defined below. Please note that
% YOU DO NOT NEED TO EDIT THE TITLE, SIGNATURE AND COPYRIGHT PAGES!!!
% they are generate automatically, and do not need any modification

% you do need to modify the avstract, the acknowledgements and etc,,,


% ********************************************************************************************************************************
% ******* Title page - DO NOT MODIFY!!!!! ****************************************************************************************
% ********************************************************************************************************************************
\newpage
\thispagestyle{empty}
\vspace*{1in}
\begin{center}
{\LARGE\bf \uppercase{\textbf{\thesistitle}} \\} 
\vspace{.5in}
{\large A THESIS\\}
\vspace{.5in}
{\large Submitted in partial fulfillment of the requirements\\}
{\large for the degree of Masters in Computer Science\\}
\vspace{1.5in}
{\large by\\}
\vspace{.5in}
{\large \thesisauthor\\} 
\vspace{.1in}
{\large Montclair State University\\}
\vspace{.1in}
{\large Montclair, NJ\\}
\vspace{.1in}
{\large \justyear\\}
\end{center}

\newpage

% ********************************************************************************************************************************
% ******* Abstract Page **********************************************************************************************************
% ******************************************************************************************************************************** 

\begin{abstract}

% this is dummy text - please delete


	Abstract goes here


\end{abstract}



\singlespacing

% **********************************************************************************************************************************
% ********* Signature Page *********************************************************************************************************
% **********************************************************************************************************************************

\newpage
\thispagestyle{empty}

\begin{center}


\large{ MONTCLAIR STATE UNIVERSITY \\

\vspace{.3in}

\thesistitle \\ 

\vspace{.1in}

by\\

\vspace{.1in}

\thesisauthor \\ 

\vspace{.3in}
}

A Master's Thesis Submitted to the Faculty of\\

\vspace{.1in}

Montclair State University \\

\vspace{.1in}

In Partial Fulfillment of the Requirements \\

\vspace{.1in}

For the Degree of

\vspace{.1in}

Master of Computer Science

\vspace{.2in}

\shorttoday

\end{center}

\vspace{1in}

\begin{multicols}{2}
\noindent\\
College of Science and Mathematics\\

\noindent\\
Department of Computer Science \\

\vspace{.1in}
\noindent \\
Certified by: \\
	
\vspace{.2in}

\noindent \rule{2.5in}{.1mm}\\
Dean of College or School\\

\vspace{.1in}

\noindent \rule{2.5in}{.1mm}\\
Date\\

\bigskip{}

\noindent\\
Thesis Committee:\\
	
\vspace{.2in}

\noindent \rule{2.5in}{.1mm}\\
Thesis Sponsor\\
\vspace{.1in}

\noindent \rule{2.5in}{.1mm}\\
Committee Member\\
\vspace{.1in}

\noindent \rule{2.5in}{.1mm}\\
Committee Member \hspace{1in}\\
\vspace{.1in}

\noindent \rule{2.5in}{.1mm}\\
Committee Member\\
\end{multicols}

% ******************************************************************************************************************************
% ********* Copyright Page - DO NOT MODIFY *************************************************************************************
% ******************************************************************************************************************************
\newpage
\thispagestyle{empty}

\begin{center}
	\vspace*{3in}
	Copyright \copyright{} 2006 by \emph{\thesisauthor}. All rights reserved.
\end{center}

%\doublespacing

%\pagestyle{fancy}
\pagenumbering{roman}
\setcounter{page}{1} 


% **************************************************************************************************************************
% ******** Acknowledgments  ************************************************************************************************
% **************************************************************************************************************************
\chapter*{Acknowledgments} 
\addcontentsline{toc}{chapter} 
		 {\protect\numberline{Acknowledgments\hspace{-96pt}}} 

% this is dummy text - please remove

List of acknowledgments.
	
\tableofcontents

\listoffigures
\addcontentsline{toc}{chapter}{\protect\numberline{List of Figures\hspace{-96pt}}}

\listoftables
\addcontentsline{toc}{chapter}{\protect\numberline{List of Tables\hspace{-96pt}}}

\newpage
\thispagestyle{plain}
\pagenumbering{arabic}

\singlespacing  % you must use setspace.sty to get this. setspace also
								% defines the below two spacing options. It's magic.
%\doublespacing
%\onehalfspacing

% spacing between paragraphs
\addtolength{\parskip}{.1in} % makes Latex skip lines between paragraphs

%*************************************************************************************************************************
% ******** Thesis Text  **************************************************************************************************
% ************************************************************************************************************************

\chapter{Introduction} \label{chap:introduction}

\section{Lorem}

\subsection{Ipsum}

\subsubsection{Qwerty}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%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%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\chapter{Conclusions and Future Work}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%adds the bibliography to the table of contents
\addcontentsline{toc}{chapter} 
		 {\protect\numberline{Bibliography\hspace{-96pt}}} 

% generate bibiliography from thesis.bib
\bibliography{thesis}

\appendix
%\appendixpage
\addappheadtotoc

\chapter{Some Random Appendix}

\chapter{Source Code Appendix} \label{chap:code}

\end{document}
