TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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. Is there a way to do this in the exam class? Thank you for your help.

share|improve this question
Have you read section 4.5 (Titled questions) of the documentation? – cmhughes Dec 16 '11 at 1:34

This is described in the documentation: You can use \titledquestion to assign a title to your question. In order for this title to be used in the question section, you also need to redefine the \qformat. The format changes only apply to the questions that come after the \qformat command, so you could first have the normal questions, then issue a \qformat to get the titles. To revert back to the simple style, you can use \noqformat.

Here's a simple example:

Exam with titled question



What if I say I'm not like the others?
\choice You're the pretender
\choice I will never surrender

\qformat{\thequestion. \textbf{\thequestiontitle} \hfill (\thepoints)}

\titledquestion{Complicated Long Question}[10] Identify all known unknowns and embrace complexity.

\question[1] Are you happy this is over?

share|improve this answer
I am ok having either titled questions or untitled questions. I would like to have both in the one document. What I was meaning to ask was: Can I just set titled questions for a specific section? – bbujeya Dec 16 '11 at 1:56
@user10082: The \qformat only applies to the questions that follow, so you can change the format at the beginning of the section. To remove the format, you can say \noqformat at the end of the section. I've edited my answer to give an example. – Jake Dec 16 '11 at 2:18
+1 for the Foo Fighters lyrics :) – cmhughes Dec 16 '11 at 2:24
Thank you very much! That was exactly what I was after! – bbujeya Dec 16 '11 at 3:08
@cmhughes Possible answer might have been No one knows - Queens of the Stone Age. – percusse Dec 16 '11 at 3:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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