Sei sulla pagina 1di 125

Using the exam document class

Philip Hirschhorn Department of Mathematics Wellesley College Wellesley, MA 02481 psh@math.mit.edu

May 7, 2015

This is the user’s guide for version 2.5 of the exam document class.

Contents

 1 Introduction 4 1.1 License . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2 Simple instructions for a basic exam 6 2.1 The \documentclass command . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.2 Asking for the student’s name . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.3 Asking questions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.4 Questions with parts, and subparts, and subsubparts . . . . . . . . . . . . . 8 2.5 Leaving space for the answers . . . . . . . . . . . . . . . . . . . . . . . . . . 9 2.6 Headers and footers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 3 \documentclass The command 11 3.1 The option addpoints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3.2 The option answers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 4 Questions and points 13 4.1 Questions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 4.2 Questions with parts and subparts (and subsubparts) . . . . . . . . . . . . . 14 4.3 Point values for the questions . . . . . . . . . . . . . . . . . . . . . . . . . . 17 4.3.1 Where the points will be printed . . . . . . . . . . . . . . . . . . . . 18 4.3.2 Printing the points at the end of the question . . . . . . . . . . . . . 19

1

 4.3.3 Half points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 4.3.4 Surrounding the points: Parentheses, brackets, or a box . . . . . . 21 4.3.5 Using a substitute for the word “points” . . . . . . . . . . . . . . . . 23 4.3.6 Using \marginpointname and enlarging the margins . . . . . . . . . 25 4.3.7 Completely customizing the points . . . . . . . . . . . . . . . . . . . 25 4.3.8 Questions that begin with a parts environment . . . . . . . . . . . 27 4.3.9 Adding up the points for a question . . . . . . . . . . . . . . . . . 28

4.3.10 Margin sizes when using \pointsinmargin and \pointsinrightmargin 30

 4.4 Custom question number lines: The \qformat command . . . . . . . . . . . 31 4.4.1 Adding up the points for a question . . . . . . . . . . . . . . . . . 32 4.5 Titled questions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 4.5.1 \titledquestion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 4.5.2 \thequestiontitle . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 4.6 Bonus points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 4.7 Counting the questions and adding up the points . . . . . . . . . . . . . . . 36 4.8 Referring to speciﬁc questions by number (cross references) . . . . . . . . 37 4.9 Customizing the numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 4.10 Customizing the list parameters . . . . . . . . . . . . . . . . . . . . . . . . . 40 5 Multiple choice and ﬁll in the blank questions 41 5.1 The choices environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41 5.2 The oneparchoices environment . . . . . . . . . . . . . . . . . . . . . . . . 42 5.3 The checkboxes environment . . . . . . . . . . . . . . . . . . . . . . . . . . 43 5.4 The oneparcheckboxes environment . . . . . . . . . . . . . . . . . . . . . . 43 5.5 Solutions to multiple choice questions . . . . . . . . . . . . . . . . . . . . 44 5.6 Fill in the blank questions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44 5.6.1 True/False questions . . . . . . . . . . . . . . . . . . . . . . . . . . . 46 5.6.2 Customizing the \fillin command . . . . . . . . . . . . . . . . . 46 5.7 Customizing the multiple choice environments . . . . . . . . . . . . . . . . . 47 6 Escaping the indentation: \uplevel and \fullwidth 49 6.1 Including instructions for a group of questions . . . . . . . . . . . . . . . . . 49 6.2 Naming the parts of a long exam . . . . . . . . . . . . . . . . . . . . . . . . 52 6.2.1 Using \uplevel and \fullwidth . . . . . . . . . . . . . . . . . . . . 53 6.2.2 Using the standard sectioning commands . . . . . . . . . . . . . . 54 7 Leaving space for the answers 54 7.1 Leaving blank space . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 7.2 Printing an empty box . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 7.3 Printing lined space . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 7.4 Printing dotted lined space . . . . . . . . . . . . . . . . . . . . . . . . . . 59 7.5 Printing space ﬁlled with a grid . . . . . . . . . . . . . . . . . . . . . . . . . 61 7.5.1 Covering every page with a grid . . . . . . . . . . . . . . . . . . . . . 63 7.5.2 Printing graph paper . . . . . . . . . . . . . . . . . . . . . . . . . . . 63

Page 2