\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{union-cs-thesis}

%%%% Options
%%%%
%%%% condensed - single spaced, no separate title page, no separate page for
%%%% ToC, etc...
%%%%
%%%% final - double spaced, separate title page, separate page for ToC,
%%%% etc...
%%%%
%%%% default is 'final'


\newif\ifcondensed
\condensedfalse
\DeclareOption{condensed}{\condensedtrue}
\DeclareOption{final}{\condensedfalse}

\ProcessOptions\relax

\RequirePackage{ifthen}
\RequirePackage{xargs}
\RequirePackage{setspace}

\ifcondensed
  \LoadClass[10pt,letterpaper]{article}
\else
  \LoadClass[10pt,letterpaper]{article}
  \doublespacing
  
  \let\oldtableofcontents\tableofcontents
  \let\oldlistoffigures\listoffigures
  \let\oldlistoftables\listoftables

  \renewcommand{\tableofcontents}{\clearpage \oldtableofcontents \clearpage}
  \renewcommand{\listoffigures}{\clearpage \oldlistoffigures \clearpage}
  \renewcommand{\listoftables}{\clearpage \oldlistoftables \clearpage}
\fi

\setlength{\oddsidemargin}{0in}         % Actual left margin - 1 inch. 
\setlength{\evensidemargin}{0in}        % Ditto.                       
\setlength{\textwidth}{6.5in}           % Line length.                 

\usepackage{palatino}
