33

I want to use LaTeX for exam and assignment papers for a class that I am teaching. I obviously could just do the whole thing myself. But, what alternatives are there for easily typesetting such documents? Ideally, the solution would handle points (providing a total) or percentage values (ensuring they sum to 100), multi-part questions, optionally provide space for answers, and allow for all of fill in the blanks, multiple choice, and straight-up questions.

39

Check out the exam document class; it does all that and more!

I've also had great success using it for homeworks and such (both as an instructor and as a student).


Here's an example exam created with the package:

example exam

The corresponding code:

\documentclass[addpoints]{exam}
\firstpageheader{subject name, class name}{First Exam}{October 25, 2019}

\firstpagefooter{}{}{Page \thepage\ of \numpages}
% Lower the footer a bit
\extrafootheight{-.8in}

% Define how bonus points are labelled
\bonuspointpoints{bonus point}{bonus points}

\begin{document}

\begin{center}
\fbox{\fbox{\parbox{5.5in}{\centering
Answer the questions in the spaces provided on the page. If you run out of room for an answer, continue on the back of the page.
  }}}
\end{center}

\vspace{.1in}
\makebox[\textwidth]{Your name:\enspace\hrulefill}
\vspace{.2in}

\begin{questions}
  \question[10]
  Why is there air?
  \vspace{.8in}

  \question[15]
  How much wood would a woodchuck chuck if a woodchuck could chuck wood?
  \vspace{.5in}

  \begin{parts}
    \bonuspart[5]
    How many seashells does she sell by the seashore?
    \vspace{.5in}
  \end{parts}

  \question[10]
  Compute $\displaystyle\int_0^1 x^2 \, dx$.
  \vspace{\stretch{1}}

  \bonusquestion[10]
  Prove this: $A \land (B \lor C) \equiv (A \land B) \lor (A \land C)$

\end{questions}

% Put the grade table at the bottom of the page
\vspace*{\fill}
\begin{center}
  \combinedgradetable[h]
\end{center}

\end{document}

Here are some resources on the exam package:

  • 4
    TJ Ellis is right. The exam class terrific. As a bonus, it has a good manual, with some very funny sample questions. – dank Aug 31 '10 at 10:22
11

I prefer to use examdesign. But if you go to CTAN and click on select by keyword you will find this list under exams, exercices and answers.

If you want to reuse problems and construct your exams from a problem data base probsoln or texomaker are good for this.

  • It seems that both probsoln and texomaker links are broken – Kartik Dec 27 '13 at 7:43
  • Solved. It looks like TeXoMaker only mantains its french page. Previous link to the english page is broken. – Ignasi Dec 27 '13 at 11:45
  • 1
    Just to clarify: examdesign last version dates to 2001 and the texomaker project seems to be only available in French. exam has received periodical updates since 1994 to 2015. – epsilone Oct 7 '16 at 10:25
4

And new on the list: the exsheets package.

  • This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post - you can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. – Tom Bombadil Oct 21 '12 at 13:46
  • 5
    @TomBombadil: Why not? Besides the fact that this answer is rather short: one actually can typeset exams with ExSheets. It does not provide all the features that the OP wanted, though... – clemens Oct 21 '12 at 14:14
0

The eqexam package is also very versatile. For example, it supports multiple-choice and online/e-mail assignments.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.