%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%   LaTeX style file for SMS Examination Papers    %%%%%
%%%%%   created by J Hinde, 28/10/98                   %%%%%
%%%%%                                                  %%%%%
%%%%%  This needs fancyheadings and array packages     %%%%%
%%%%%                                                  %%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{fancy,array}

\setlength{\textheight}{22cm}
\setlength{\textwidth}{15cm}
\setlength{\topmargin}{0cm}
%%\setlength{\parskip}{1cm}
%%\setlength{\unitlength}{1cm}
\setlength{\oddsidemargin}{0.48cm}%%{0.95cm}

\setlength{\parindent}{0pt}

\pagestyle{fancy}
\lfoot{}
\cfoot{Page~\rm\thepage~of~\pageref{lastpage}} % page number
\rfoot[{\rm\module}]{\rm \module/continued \ldots}
\newcommand{\pe}{\rfoot{\rm \module/END OF PAPER}}

\newcommand{\duration}{3}
%\newcommand{\rubric}{{\textit{Answer Section A (40\%)
%and any THREE of the four\\
%questions in Section B (20\% for each).}\\[0.25cm]}}
\newcommand{\rubric}{{\textit{The marks from Section A (40\%)
and the best THREE \\
questions in Section B (20\% for each) will be recorded.}\\[0.25cm]}}
\newcommand{\referred}{{\textit{Answer all questions.}\\[0.25cm]}}
\newcommand{\marks}{{\textit{Marks shown in questions are merely a
guideline.}\\[0.25cm]}}

\newcommand{\stats}{{\textit{Graph Paper and Statistical
Tables (Murdoch \& Barnes)\\
will be provided.}\\[0.25cm]}}

\newcommand{\calculator}{{\textit{Approved calculators of the
following type may be used\\
Casio fx82 series, Sharp EL521 or EL531 Series and\\
Texas TI-30X or TI-36X.}\\[3cm]}}
\newcommand{\nocalculator}{{\textit{No calculators are
allowed in this examination.}\\[3cm]}}


\newcommand{\extrarubric}{}
\newcommand{\examiner}{Examiner}
\newcommand{\examiners}{Examiners}

\newcommand{\cover}[4]
{\pagestyle{empty}
\begin{center}
\textbf{\large \module}\\[0.5cm]
{UNIVERSITY OF EXETER}\\[0.5cm]
\textbf{SCHOOL OF MATHEMATICAL SCIENCES}\\[1cm]
\textbf{\Large #1}\\[8cm]
\begin{tabular*}{\linewidth}{!{\extracolsep{4in minus 4in}}lcr}
{#2}&&{#3} \\
&&{Duration: {\duration} hours}\\[0.5cm]
\examiner: {#4}&&\\
\end{tabular*}\\[2cm]

\rubric

\marks

\extrarubric

\calculator

\end{center}
\newpage
\pagestyle{fancy}}

\newcommand{\sectionA}{
\begin{center}
\textbf{\large SECTION A}
\end{center}
%\renewcommand{\theenumi}{\alph{enumi}}
%\renewcommand{\labelenumi}{(\theenumi)}
%\renewcommand{\theenumii}{\roman{enumii}}
%\renewcommand{\labelenumii}{(\theenumii)}
}
\newcommand{\sectionB}{
\begin{center}
\textbf{\large SECTION B}
\end{center}
%\renewcommand{\theenumi}{\arabic{enumi}}
%\renewcommand{\labelenumi}{\theenumi.}
%\renewcommand{\theenumii}{\alph{enumii}}
%\renewcommand{\labelenumii}{(\theenumii)}
}

\renewcommand{\labelenumiii}{(\theenumiii)}


%%%% end of EXAM.STY   %%%%%%%%%%%%%%%%%%%%%
