%
% 	Simple LaTeX Thesis format
%		
%	Taken from a skeleton by Simson Garfinkel.  Massaged into
%	something prettier, more general, and more usable by
%	Jean Marie Diaz.
%
%	Copyright \copyright Student Information Processing Board, 1987
%
% Basic commands
%
\newcommand{\thesis}{
   \documentstyle[12pt,doublespace,ted]{report}
   \setlength{\oddsidemargin}{.25in}
   \setlength{\evensidemargin}{.25in}
   \setlength{\topmargin}{0in}
   \setlength{\headheight}{1pc}
   \setlength{\textheight}{8.5in}
   \setlength{\textwidth}{6in}
   \setcounter{secnumdepth}{1}
   \setcounter{tocdepth}{1}
   \setstretch{1.7}
   \begin{document}
}

\newcommand{\thesisend}{
   \end{document}
}

% Sequences for use on the title page
%

\newcommand{\thesistitle}[1]{
	\newcommand{\THESISTITLE}{#1}}

\newcommand{\thesisauthor}[1]{
	\newcommand{\THESISAUTHOR}{#1}}

% uncomment this if you have a previous degree
%\newcommand{\previousdegree}[3]{
%	\newcommand{\PREVDEGREE}{#1}
%	\newcommand{\PREVSCHOOL}{#2}
%	\newcommand{\PREVDEGDATE}{#3}}

\newcommand{\thesisdepartment}[2]{
	\newcommand{\THESISDEPARTMENTLOWCASE}{#1}
	\newcommand{\THESISDEPARTMENTUPCASE}{#2}}

\newcommand{\thesisdegree}[2]{
	\newcommand{\DEGREELOWCASE}{#1}
	\newcommand{\DEGREEUPCASE}{#2}}

% Uncomment this if you are doing this thesis for a
% dual degree.
%\newcommand{\seconddegree}[2]{
%	\newcommand{\SECONDDEGLOWCASE}{#1}
%	\newcommand{\SECONDDEGUPCASE}{#2}}

\newcommand{\degreetitle}[2]{
	\newcommand{\DEGREETITLELOWCASE}{#1}
	\newcommand{\DEGREETITLEUPCASE}{#2}}

\newcommand{\gradmonth}[1]{
	\newcommand{\THESISDATE}{#1}}

\newcommand{\gradyear}[1]{
	\newcommand{\THESISYEAR}{#1}}

\newcommand{\turnindate}[1]{
	\newcommand{\TURNINDATE}{#1}}

\newcommand{\thesiscopyright}[1]{
	\newcommand{\THESISCOPYRIGHT}{#1}}

\newcommand{\thesiscopyrightnote}[1]{
	\newcommand{\THESISCOPYRIGHTNOTE}{#1}}

\newcommand{\thesistitles}{
	\begin{singlespace}
  	\begin{center}

	{\Large {\bf \THESISTITLE }} \\[\stretch{.5}]
	     by \\[\stretch{.5}]
	\THESISAUTHOR \\

	\vspace{\stretch{5}}

		% uncomment the next five lines if you have a previous
		% degree.
%	\PREVDEGREE \\
%	\PREVSCHOOL \\
%	(\PREVDEGDATE) \\
%	\vspace{1pc}
%	\vspace{\stretch{5}}

	Submitted to the Department of \THESISDEPARTMENTLOWCASE \\[\stretch{.5}]
	in Partial Fulfillment of the Requirements for the Degree of \\[\stretch{.5}] 
	\DEGREELOWCASE\ in \DEGREETITLELOWCASE \\[\stretch{.5}]

	at the Massachusetts Institute of Technology \\[\stretch{.5}]
	\THESISDATE\ \THESISYEAR \\

	\vspace{\fill}

	\copyright\ \THESISYEAR\ \THESISCOPYRIGHT\\
	\vspace{\stretch{2}}
	\THESISCOPYRIGHTNOTE
	\par
	\vspace{\fill}
	\end{center}
	\end{singlespace}
}

\newcommand{\thesissig}[2]{ 
	\vspace{-2pc}
	\begin{singlespace}
	\begin{flushright}
	#1\hfill \rule{4in}{.5pt} \\
	#2
	\end{flushright}
	\end{singlespace}
}

\newcommand{\thesisabstract}[3]{
	\newpage
	\begin{singlespace}
	\begin{center}

	{\large {\bf \THESISTITLE }} \\
	\vspace{\stretch{2}}
	by \\
	\vspace{\stretch{2}}
	\THESISAUTHOR \\

	\vspace{\stretch{4}}

	Submitted to the \\
	Department of \THESISDEPARTMENTLOWCASE \\[\stretch{.5}]
	\TURNINDATE\ \\[\stretch{.5}]
	in Partial Fulfillment of the  \\
	Requirements for the Degree of \\
	\DEGREELOWCASE\ in \DEGREETITLELOWCASE \\

	\vspace{\stretch{6}}

	\noindent
	{\bf ABSTRACT} \\

	\end{center}

	#1 

	\vspace{\stretch{10}}
	\begin{tabular}{lp{5in}}
	#2: #3
	\end{tabular}
	\end{singlespace}
	\newpage

}
		% The following informs gnuemacs of various variables
		% and modes to set when this file is being edited.  It
		% will not affect any other files you may edit.
		%
		% Local variables:
		% version-control: t
		% make-backup-files: t
		% mode: LaTeX
		% End:
