\documentclass{umaexam}
% An example of how to use the UMIST maths dept. exam class for LaTeX.
% rfbooth, 2001.
%
% The freshest version of this should be at
%   http://www.ma.umist.ac.uk/tech/exam/
\papernumber{UA105}
\numberofpages{5}
\papertitle{HOW TO USE THE EXAM CLASS}
\semesternumber{FIRST}
\session{2000/2001}
\dateofpaper{27th January 2001}
\timeofpaper{2:00-4:00}
\timelimit{TWO HOURS}
\whotakes{\LaTeX\ usage\\
          Secretarial skills}
\instructions{Answer ONE QUESTION from EACH of Sections A and B}
\begin{document}
\maketitle
\section
\question 

This is an example of how to use the \LaTeX\ exam template for the
UMIST maths department.  You need the file \texttt{umaexam.cls} (the
class file).  

If you want to make your own cover page, you also need
\texttt{bwcrest.eps}, a UMIST crest.  \texttt{example.tex} is this
file, and \texttt{template.tex} is a file for use as a starting point
when writing your paper.  All of these are available from
\[ \hbox{\texttt{http://www.ma.umist.ac.uk/rb/tech/exam/}} \]

Question 2 of this paper deals with the basics of using this exam
class.  Questions 3 and 4 in section B deal with setting up the cover
page and with unusual cases, respectively.

Comments, corrections and feature requests to
\begin{verbatim}
  richard.booth@umist.ac.uk
\end{verbatim}

\question

Use the \verb+\section+ command to create multiple-section papers (A,
B, and so on); it needs no argument.  You don't need to use it if you
only have one section.

Use the \verb+\question+ command to start a new question.  Use of
\verb+\item+ instead will give you a warning message.  The
\verb+\question+ command starts a new page (except for where it follows
a \verb+\section+ command, and where it is the first question of the
paper).

\begin{enumerate}
  \item The first level of \texttt{enumerate} environments gives you
      alphabetical labels for subquestions.
  \item The second level gives you
  \begin{enumerate}
    \item roman-numeral labels.
  \end{enumerate}
\end{enumerate}

There are two preamble commands (ones that precede
\[ \hbox{\verb+\begin{document}+} \]
to be set:
\begin{verbatim}
  \papernumber{UA107}
  \numberofpages{7}
\end{verbatim}
The argument to the first of these should be the paper code, assigned
centrally, and the second should be the number of the last page
produced.  These appear in the footer of every page, and will give
warning messages if not set.

\section

\question

The following commands set up the cover page, and should be used in
the preamble (like \verb+\title{}+ and \verb+\author{}+ with the usual
\verb+\maketitle+ command).
\begin{verbatim}
\papertitle{HOW TO USE THE EXAM CLASS}
\semesternumber{FIRST}
\session{2000/2001}
\dateofpaper{27th January 2001}
\timeofpaper{2:00-4:00}
\timelimit{TWO HOURS}
\whotakes{\LaTeX\ usage\\
          Secretarial skills}
\instructions{Answer THREE QUESTIONS}
\end{verbatim}
Their usage should be obvious from context.  To produce the title
page, use the
\verb+\maketitle+ command.  Any of the above options which are not set
will then produce boxed warnings on the page generated.

\question

This is the ``other things you might want to do'' question.  

If you feel you must have two questions on the same page, then start
the first with \verb+\question[false]+ rather than just
\verb+\question+.  This suppresses the post-question page break.

If you are writing only part of a paper, with someone else who's not
using this class file writing the other part, the following preamble
commands could well be useful:
\begin{verbatim}
\firstpage{3}
\firstsection{2}
\firstquestion{4}
\end{verbatim}
This paper would then start on page 3 (rather than 2), section B, and
question 4.  You can also use the \verb+\donotendpaper+ command to
suppress the ``end of paper'' message.  Remember that you should set
\verb+\numberofpages+ to an appropriate value.
\end{document}