Exam LaTeX template
This exam template is built on the exam class, the standard LaTeX tool for writing tests. It gives you a ready-made first page with fields for name, date and class, instructions for the students, an automatic grading table and a complete maths exam with five questions that you can replace with your own. The same file produces the students' copy and the answer key, so you only write each question once.

What's included
- Header with school, course, group and duration, plus name, date, class and ID fields
- Points per question and per part with \question[points] and \part[points], summed automatically
- Grading table generated with \gradetable, plus the total in the instructions with \numpoints
- Answer key switch: uncomment \printanswers to show every solution
- Answer boxes and lines that keep their space on the exam and show the solution in the key (solutionorbox, solutionorlines), and \fillin blanks
- Five sample questions with multi-part questions, a table, derivatives, probability and a proof
How to customize it
Edit the course data at the top of the preamble (\school, \course, \examname, \group and \duration), then replace the questions between \begin{questions} and \end{questions}. Put the points in square brackets after \question or \part and the totals update themselves. Choose the size of each answer box with its optional height, add a \bonusquestion for extra credit, and remove the percent sign before \printanswers when you want the answer key.