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

28
votes
3answers
6k 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 ...
24
votes
2answers
487 views

Can LaTeX select a random line from another file?

Can LaTeX select a line from one file and include it in the main file? I use the exam class to make course exams. I like to include a brief quote related to the course in the footer of the last exam ...
23
votes
5answers
5k 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
651 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
781 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
554 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
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 ...
14
votes
1answer
534 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 ...
12
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 ...
11
votes
3answers
483 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
1answer
533 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 ...
10
votes
5answers
4k 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
621 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
674 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
792 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
188 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 ...
8
votes
2answers
458 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
1k 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
264 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 ...
8
votes
2answers
321 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
3answers
199 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
453 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
183 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
153 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
290 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
189 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
531 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
3answers
952 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
429 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
1answer
642 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 ...
7
votes
1answer
692 views

Keeping checkboxes aligned using the Exam class

I'm using the exam class in a multicols environment to create a series of worksheets. Many questions are yes/no. If the question is too long, it wraps to the next line and moves the answers. Is there ...
6
votes
2answers
349 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
3answers
262 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 ...
6
votes
1answer
550 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
298 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
96 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
390 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
111 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
2answers
264 views

Labeling problems with exam class usage when using multiple chapters

Using the exam document class I'm trying to create a questions/answers-sheet for a book. When working on the first chapter, everything worked nicely. When I came to the second chapter, I realized I ...
6
votes
1answer
383 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
570 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
594 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
383 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
512 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
367 views

Generating gradetables with parts using the exam class

I've just started using the exam class to typeset, well, an exam, and when using the \gradetable command to create the final grade table, it only shows me the points at the granularity of a question, ...
6
votes
1answer
82 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
2answers
1k views

Exam class: start true/false questions with “True False”

I'm using the exam class and I would like to write questions like this: 1. True False This statement is false. 2. True False This statement is true. It's a long, though, so it ...
5
votes
2answers
774 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
181 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
244 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, ...