the {exam} document class provides a number of useful features for typesetting exams - in particular it provides a `Question` environment with `parts`, and can keep track of points

learn more… | top users | synonyms

27
votes
3answers
5k views

How can I typeset an exam or assignment paper?

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 ...
23
votes
5answers
4k views

How to write a multiple choice test book with LaTeX?

I want to write a book which will consist of many multiple choice exam sheets. Putting the codes below into my preamble, I wrote the question like as \begin{enumerate} \item $2+2=?$ \choice $1$ ...
18
votes
4answers
481 views

How to automatically align the four choices of a multiple choice question in exam?

We can have three types of column typeset. See the image below: The above image was created using the LaTeX code below: \documentclass{article} \usepackage{ifthen} \usepackage{calc} ...
15
votes
2answers
704 views

Customized bonus questions in exam class

I'm using the exam class (with the addpoints option) to create assignments, and I want to create some bonus questions. I have a customized question format that looks like this: \qformat{Question ...
14
votes
7answers
512 views

Automatic generation of pages with variable fields

I need to produce dozens of same pages, except for the part that each page has to have a different person's name on it. Imagine it as an exam, where the content is equal for every page, except that I ...
14
votes
1answer
496 views

Testing Framework API for LaTeX

As part of an online exam application, we need to automate the evaluation of LaTeX scripts written by the students. Essentially, the script should be evaluated against a set of test cases and if it ...
13
votes
3answers
1k views

Variations of an exam

I'm using the great exam package to create exams. But sometimes there are many students so I need to create different "versions" - Group A and Group B. Mainly the differences are only the numbers in ...
11
votes
3answers
414 views

Exam Class : With Question with images and border

I'm learning Exam Class to generate question paper. Sample tex code is mentioned below: \documentclass{exam} \usepackage{tikz} \newcommand*\circled[1]{\tikz[baseline=(char.base)]{ ...
11
votes
4answers
2k views

exam class - permute mc answer choices, generate answer key

I happily use the exam document class to create exams and quizzes. I often make at least part of my exams multiple choice, and I'd like to be able to generate multiple versions of the exam by ...
10
votes
5answers
3k views

Creating Multiple Choice Questions Without using 'Exam' Class

I am working on a document with class article and I want to have multiple choice questions in it. Is this hard enough to do that I should change it to exam class? If not, how do I accomplish this? ...
10
votes
1answer
542 views

Titled & Untitled Questions in same document

I need to have sections in an exam I am writing. The first 10 questions are multiple choice, which I would like to number simply 1-10. For the extended response, I would like to title the questions. ...
10
votes
2answers
581 views

Using circled numbers for answer choices in exam document class

I'm using the exam document class for an exam with a multiple choice section. To match the appearance of the scantron form, I'd like to use circled numbers in the choices and oneparchoices ...
10
votes
3answers
714 views

Manually setting the total number of points in the exam document class

I am writing an exam using the exam document class. In the exam you only need to answer 10 out of 12 questions (10 points each question). When I create the grade table with the command \gradetable, ...
10
votes
1answer
159 views

How could I typeset odd item or even item respectively in examination paper?

I want to write a tex file of an examination paper like (Derivative function) 1. $3x-1$ 2. $2x+1$ 3. $4x^2+2x+3$ 4. $7x^3-3x-6$ 5. $\sin6x-7$ 6. $\cos5x+2$ And then, I can set a logical variable ...
10
votes
1answer
450 views

Create a “choose between ” questions with exam class

I want to create an exam that has 2 parts: Part 1 will be some questions that students are force to do, and part 2 will be a choose x questions among y to do. If it weren't for the score, I could ...
8
votes
2answers
336 views

Exam Class : Points in the right Margin for \question

I've a .tex file with \question \part and \subpart (sample .tex file pasted in this question). I need all points in the right margin; currently for \question it's not coming in the margin. Also I ...
8
votes
1answer
972 views

Command already defined

I came across an odd problem compiling LaTeX exam.cls document producing with knitr. Pasted below is minimal reproducible code. knitr compiles fine, but pdflatex terminated with: Command \framed ...
8
votes
2answers
218 views

How can you make custom counter display types?

I'm a comp sci prof working on an exam for my students in LaTeX, using the exam class. I like to throw in a few in-jokes here and there. Unfortunately, the class breaks if you try to use 0-indexing on ...
7
votes
3answers
161 views

Arranging exercises row-wise on the page

I have been using tabularx to arrange practice exercises on the page, like this: \documentclass[12pt]{exam} \usepackage{amsmath} \usepackage{kpfonts} \usepackage{tabularx} \usepackage{titlesec} ...
7
votes
1answer
371 views

Lost float in exam class

For some reason, I can't seem to put a figure or a table environment inside a solution environment while using the exam class. It produces a float is lost error. Has anyone found a way to bypass this ...
7
votes
1answer
140 views

exam class : question with circles of same size

Using code mentioned below : i'm able to circle question numbers : \documentclass{exam} \usepackage{tikz} \newcommand*\circled[1]{\tikz[baseline=(char.base)]{ ...
7
votes
2answers
145 views

Skip to next column if too few lines remain in current column to complete an environment

I'm using \documentclass[addpoints,answers,12pt]{exam} \usepackage{multicol} to generate Multiple Choice Question paper in two columns. I want to start new question on next column, if less ...
7
votes
5answers
260 views

Fill the blank type of text in non exam document

I want to make a fill the blank type of text in a non-exam document. Here the desired result that I want: Let A be a subset of R, A called measurable set if m*(...) = ........, for all .... in R I ...
7
votes
2answers
149 views

Exam - \only without beamer

I am looking for a way to generate different copies of the same exam. I usually prepare several exercises, with two versions for each exercise; then I divide my students in four groups (A,B,C,D) and ...
7
votes
1answer
469 views

Print answer key to multiple choice questions

I'm using the exam document class, and I'd like to print the letter of the correct answer. Something like: \documentclass{exam} \begin{document} \begin{questions} \question This is a multiple ...
7
votes
1answer
380 views

Page breaking problem with exam.cls

For some time, version 2.01 of the exam document class has been used in my department. In the future we are going to use the latest version (currently 2.4), and this has to be customised so that ...
7
votes
3answers
771 views

Showing Solutions of the Questions “separately”

There is a class for LaTeX called exam. Using this class, one can write questions and answers for exams. The answers are displayed under (after) each question. My goal is to have all answers in the ...
7
votes
1answer
228 views

Set indentation of choice in exam documentclass

I want to create an multiple choices question with this indenting format 1. ######## A. ### B. ### C. ### 2. ######## ######## A. ### B. ### C. ### The choices have same ...
7
votes
1answer
525 views

Textbook package compatible with examdoc

I really like the examdoc class. I almost always use it to create exams, tests, ... However... I'd like to make a textbook. In it should be several exercises, with (preferably) their solutions in an ...
6
votes
2answers
342 views

How do you determine what class to use?

So I am creating documents that have a mixture of paragraphs of text intermingled with numbered questions. I have been creating these using the 'exam' class. However, I decided to set the default ...
6
votes
1answer
397 views

\answerline to the right of a question

using exam class. I want the answerline on the same line as the question, to be used in mid-sentence actually. I have this: \documentclass[a4paper]{exam} \begin{document} \begin{questions} ...
6
votes
2answers
263 views

Last footnote of an Exam be “End of Exam”

I am using exam class. I am writing an exam, and I wanted the last footnote (the final, last one to appear) to be End of Exam. I have this: \pagestyle{headandfoot} \runningheadrule ...
6
votes
1answer
79 views

Make an \fbox of the remaining line width in `exam` class

I'm writing a math test in the exam class, and I want to make framed boxes for the students to write their answer in. I've tried this solution, but the box exceeds the right page margin by 6.79999pts. ...
6
votes
2answers
361 views

Is there a way to add reusable metadata to the exam class?

Assuming I want to build a large pool of questions I can reuse for exams and tests, how can I extend the question section in the exam class to enable adding references to where the work/solution ...
6
votes
1answer
286 views

How to break long solutions in exam class?

I am currently using the exam class to write up the solutions to a take-home exam, but I am having issues when my solutions are too big to fit a page. I either have huge gaps in my paper or solutions ...
6
votes
1answer
431 views

Renumbering the \part in Exam class

I just want one section to be renumbered, not all the \parts numbering. I have found this in the manual: \renewcommand{\thepartno}{\Roman{partno}} But that is making all the numbering for \part ...
6
votes
1answer
455 views

how to put figures on a page in exam class!

I am trying to put four figures in one page. I have tried using \clearpage, \afterpage{\clearpage} with afterpage package as suggested and worked successfully in many other cases. I have also tried ...
6
votes
1answer
308 views

Modifying \answerline in the exam class

When using the exam class, is there a way to change the formatting of the item answer blanks created by \answerline? For a question, the label is 1. For a part, the label is (a) For a subpart, the ...
6
votes
1answer
87 views

How to count the number of questions separately for different parts in exam class?

I am creating an exam with two parts, the first part is short questions and the second part is essay question, and I would like to automatically count the number of questions for the two parts ...
6
votes
1answer
427 views

wrapfigure within an exam

I am trying to float a figure using wrapfigure within an exam document using minipage. If I don't use a minipage, then the exam questions do not wrap around the figure. When I use minipage as in the ...
6
votes
1answer
39 views

Exam documentclass question title grading table

How can I give my question a name and a the same time show in the grading table only its number? For example, in the main text I'd like the question to be something like "Question 1: Cauchy-Schwartz ...
5
votes
3answers
187 views

Multiple labels warning for exam class with parts

I am writing a document in the exam class. For question with multiple parts (a), (b),... you are supposed to use the parts environment. Using it works fine, until I add a solution to the question that ...
5
votes
2answers
692 views

Multiple choice with answers at the end of the chapter

I would like to set up an environment for multiple choice questions, such that the list of the correct answers, and some lines of comments, will be typeset at the end of the chapter. Something like ...
5
votes
4answers
138 views

Exam Class: how to avoid question going beyond margin

I'm able to create question paper using LaTeX code mentioned below: \documentclass{exam} \usepackage[margin=0.7in,headheight=3.5\baselineskip,headsep=1\baselineskip,includehead]{geometry} ...
5
votes
1answer
201 views

Show solution to each part of a multipart question right after that part in exam package

I use the great exam package to write my exams as a teacher. It lets me typeset solutions too, but for multipart questions, I want the solution to each part printed right after that part. By default, ...
5
votes
2answers
336 views

How to box the correct answer in Exam class?

I have tried using the following code: \documentclass[12pt]{exam} \CorrectChoiceEmphasis{\mbox{}} \begin{document} \begin{questions} \question Who is an idot? \begin{choices} \choice Not the writer ...
5
votes
1answer
123 views

Curious behaviour of nested list environments

Could someone explain what is happening in the example below? It looks like a bug in the exam document class to me. \documentclass{exam} \begin{document} \begin{questions} \question This is a ...
5
votes
1answer
1k views

How to insert logo in exam document class?

I would like to insert a logo for the exam questionnaire on the upper right where the title is placed but i dont know how.. i would like to appear it this way.
5
votes
1answer
56 views

How to create an empty table as a template which I can populate using commands

I would like to create a template which I can use to create a booklet. I'd like a 5 row x 2 column table to fill the LH page, with room for a header, and the same on the RH page with room for a ...
5
votes
1answer
153 views

Custom \bonusqformat in exam class not level with question text

I am creating a set of problems, with the bonus problems starred with an *, but when I use \bonusqformat to customize the mark, it pushes the text onto a new line. Is there any way to prevent this ...