%%++
%% 
%% LaTeX template for Dalhousie Comp Sci 6606 midterm and term papers
%% Author   Jamie Blustein
%% Created  21 Oct 2004
%% Version  17 Nov 2014 (3a)
%% 
%%--

\documentclass[12pt,letterpaper,titlepage]{article}

  \newcommand{\studentID}  {B0xxxxxx}
  \newcommand{\studentNAME}{Stu Dent}
  \newcommand{\essayTITLE} {Title of the Essay: subtitle} 
  \newcommand{\semester}   {Fall}
  \newcommand{\schoolyear} {2014/2015}

  \RequirePackage[T1]{fontenc}
  \RequirePackage{pxfonts,newtxtt}
  \RequirePackage{array,booktabs}
  \RequirePackage[letterpaper,hmargin={1in,1in},head=14.5pt]
                 {geometry}
  \RequirePackage{fancyhdr,lastpage}
    % fancy headings %
    \newcommand{\course}{CSCI\,6606\hspace{1.5ex}\semester~\schoolyear}
    \pagestyle{fancy}
      \renewcommand{\headrulewidth}{0.4pt}
      \renewcommand{\footrulewidth}{0.4pt}
      \lhead{\course}
      \chead{}
      \rhead{\studentID}
      \lfoot{}
      \cfoot{}
      \rfoot{Page~\thepage{}}

  \RequirePackage[iso]{datetime}

  \usepackage[perpage]{footmisc}
  \usepackage{titling}
    \thanksmarkseries{fnsymbol}

  \RequirePackage{url}
    \renewcommand\url{\begingroup %
      \def\UrlLeft{\ensuremath{\langle\mbox{URL:}}}%
                    \def\UrlRight{\ensuremath{\rangle}}%
                    \urlstyle{tt}\Url}
  \RequirePackage[square,numbers,sort&compress]{natbib}
    \bibliographystyle{plainnat}
    \renewcommand{\bibname}{References}
  \RequirePackage{setspace}
    \doublespacing 

  \title{\essayTITLE}
  \author{\studentNAME{}\thanks{\course} \and \#\studentID{}}

\begin{document}
   \pagenumbering{roman}

   \maketitle\thispagestyle{empty}

   \begin{abstract}\thispagestyle{fancy}
     *** Abstract goes here ***
   \end{abstract}

   \newpage\addtocounter{page}{1}
   \tableofcontents

   \newpage
   \pagenumbering{arabic}
   \rfoot{Page~\thepage{} of \pageref{LastPage}}


   \section{Introduction}

      Main text goes here

      Blah, blah, blah.  Blah, blah, blah.

      More blah, blah, blah.


   \subsection{Motivation}

   \subsection{Background}



   \section{Summary}


   \bibliography{6606midterm}
\end{document}
