\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{ealassignment}[2013/04/02 Package for Edward Langley's class assignments]

\RequirePackage{randomwalk}
\RequirePackage{fancyhdr}

% Options Here.
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}

%% End Options

\ProcessOptions\relax
\LoadClass{article}

\pagenumbering{arabic}

%% Commands Here.

\renewenvironment{quote}
{\list{}{\rightmargin\leftmargin}\singlespacing\small\item\relax}
{\endlist}

\renewcommand\section{%
  \@startsection{section}{1}
                {\z@}%
                {-3.5ex \@plus -1ex \@minus -.2ex}%
                {2.3ex \@plus.2ex}%
                {\normalfont\normalsize\bfseries}% 11pt
}
\renewcommand\subsection{%
  \@startsection{subsection}{2}
                {\z@}%
                {-3.25ex\@plus -1ex \@minus -.2ex}%
                {1sp}% No space after subsections
                {\normalfont\normalsize\itshape}% normal size, boldface
}
\renewcommand\subsubsection{%
  \@startsection{subsubsection}{3}
                {\z@}%
                {-3.25ex\@plus -1ex \@minus -.2ex}%
                {1sp}% No space after subsubsections
                {\normalfont\normalsize}% normal size, medium
}


%

\newcommand{\one@fieldtitleline}[1]{%
  \noindent
  \makebox[\textwidth][c]{}%
  \makebox[0pt][r]{#1}}

\newcommand{\two@fieldtitleline}[2]{%
  \noindent
  \makebox[\textwidth][c]{#1}%
  \makebox[0pt][r]{#2}}

\newcommand{\three@fieldtitleline}[3]{%
  \noindent
  \makebox[0pt][l]{#1}
  \makebox[\textwidth][c]{#2}%
  \makebox[0pt][r]{#3}}

\def\@titlei{}
\newcommand{\instructor}[1]{\def\@instructor{#1}}
\newcommand{\course}[1]{\def\@course{#1}}
\newcommand{\titlei}[1]{\def\@titlei{#1}}
\renewcommand{\maketitle}{%
   \thispagestyle{empty}
   \vspace*{\fill}
   \begin{centering}
	{%
 		\fontsize{18}{21}\fontseries{bx}%
 		\fontshape{n}\selectfont%
 		\@title
 	}\\
      \vfill
	{%
 		\fontsize{14}{16}\fontseries{bx}%
      \selectfont%
      \@author
    }\\
      \@date \\
      \vfill
      \@course \\
      \@titlei\ \@instructor
    %\one@fieldtitleline{\@instructor}\\%
    %\two@fieldtitleline{\fontseries{bx}\selectfont\@titlei}{\@course}%	
 	\normalfont\selectfont%
 	\par\medskip%
   \end{centering}%
   \vspace*{\fill}
   \clearpage
	\setcounter{page}{1}
 }

\newcommand{\sig}{
   \begin{figure}
      \centering
      \fbox{
         \RandomWalk{number = 300, length = {4pt, 4pt, 5.66pt},
            angles= {0.0,  45.0,  90.0,  135.0,  180.0, 225.0, 270.0, 315.0},
            degrees}
      }
   \end{figure}
}


%% End Commands

