I am trying to make an exam using mainly the enumerate command; however, I keep getting an error. I've a tried adding a \begin{enumerate} before the question and two \end{enumerates}, which produces an output, but the listing starts from the beginning with each question: a, a, a, a and etc... Below is the tex and the cls that I am using. Any help would be much appreciated.

% SIIT Exam Class
\ProvidesClass{siitexam}[2014/05/20 v1.0 SIIT Exam]
% Developed by Steven Gordon
% http://sandilands.info/sgordon/
% $Revision: 854 $
% $Date: 2010-12-02 18:26:52 +0700 (Thu, 02 Dec 2010) $
% $Author: sgordon $
% $URL: https://sandilands.info/svn/Common/Styles/siitassess/siitexam.cls $

% Use the article class

% Required packages
\RequirePackage{fancyhdr} % Needed for headers and footers
\RequirePackage{qvariants} % Needed for question variants

% Page layout (25mm margins around text)

% Set the counters to appropriate format for questions and subquestions
\renewcommand{\thesection}{Section \arabic{section}}

% Question numbering
\newcommand{\question}[1]{\section{\textmd{[#1 points]}}}
\renewcommand{\thesection}{Multiple Choice Questions}
\section{\textmd{[#1 marks]}}}

% Exam instructions (to be edited in .tex file)

% Document information

% Some commonly used phrases/names
\newcommand{\siit}{University of Missouri}
\newcommand{\tu}{St. Louis}

% Title page

% Header/footer for title page
\fancyhead[LO,LE]{Name \ldots\ldots\ldots\ldots\ldots\ldots\ldots\ldots\ldots\ldots $\;$ Date:  \ldots\ldots\ldots\ldots\ldots }

% The title page
{\textbf{\@exam: Semester \@semester, \@academicyear}}\\
\item[Course Title:] \@coursecode\ \@coursetitle
\item[Instructor:] \@instructor
\item[Date/Time:] \@testdate

% Header/foot for rest of document

% Summary document information


% If SVN is being used, uncomment the following \usepackage and \SVN lines
%\SVN $Revision: 855 $
%\SVN $Author: sgordon $
%\SVN $Date: 2012-10-17 20:06:42 +0700 (Wed, 17 Oct 2012) $
%\SVN $URL: https://sandilands.info/svn/Common/Styles/siitassess/exam.tex $

% Document Information

%% The variant determines if the answer ('ans') or question ('a') sheet is
%% produced as output. The variant selected ('ans' or 'a') will determine
%% the sheet output to the PDF when running latex. (Un)comment as necessary.
\renewcommand{\variant}{ans} % Answer sheet
%\renewcommand{\variant}{a} % Question sheet

% Set the title, author and course information
\coursecode{PS 1100}
\coursetitle{Introduction to American Government}
\courseshort{Introduction to American Government}
\instructor{John D'Attoma}

% Set the exam title and date
\exam{Exam 1\ifthenelse{\equal{\variant}{ans}}{ Answers}{}}
\testdate{Wednesday, September 17, 2014}

% Set the document version and date

% If SVN is being used, uncomment the following 3 lines (and edit the URL)

% Set the path to search for images/figures 

% Title Page

% Edit the exam instructions if necessary (especially number of pages)

\item Students are not allowed to be out of the exam room during examination. Going to the restroom may result in score deduction.

\item Turn off all communication devices (mobile phone etc.) and leave them at the front of the examination room.

\item Write your name and Date on the front page and on any separate sheets.

%\item The space on the back of each page can be used if necessary.

\item The examination paper is not allowed to be taken out of the examination room. A violation may result in score deduction.




True False. Use your scantron sheets to fill in A for true and B for false. 1 point for a correct answer. 0 marks for an incorrect answer or no answer.

Multiple choice; Each question is worth 2 points each. 


A custom, practice, or organization, often embedded in rule of law, is called:  
\item A policy
\item \qansmc{An institution}
\item A legal procedure
\item A rule 

\item The rule of an elite few for their own interests.

\item   Monarchy
\item   Polis
\item   Democracy
\item   \qansmc{Oligarchy}

A republic combines principles from monarchy, aristocracy, and democracy.

    \item   True
\item   False

Answer:     True

    \item Adam Smith and John Locke were British intellectuals that influenced American thought.

    \item   True
\item   False
\textbf{Answer:     True}

\item The principles of equality and tolerance were central to early American social thinking because these principles were central to the doctrines of most of the major religious traditions in North America at the time.
 \item True
\item   False

Answer:     False


  • I tried but several files are missing (siitexam.cls,qvariants.sty); also, you should make your example shorter, there are two many unecessary lines (see Minimal Working Example).
    – anderstood
    Sep 9, 2014 at 17:51
  • Thanks for the heads-up on the minimal working example. Here is the link to the other files. I'm still having trouble with the numbering. Thanks. sandilands.info/sgordon/latex-class-for-quiz-exam-thesis-siit
    – JohnD
    Sep 10, 2014 at 19:56

1 Answer 1


You are missing a


between the last "Answer: False" and "\end{document}". That is, the file should finish with:

Answer: False

Also, you are missing a backslash (\) in the documentclass:


I copied everything from the start of your example until before the documentclass line into john.cls, and then from the documentclass line to the end, with my above suggested fixes, into john.tex and it compiles successfully. (Of course I also have the qvariants.sty file). The two pages produced are below:

enter image description here

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .