3

I'm using the exam documentclass, and I'm wondering if there is a way to label the questions with a, b, c, ... instead of with 1, 2, 3, ...

What I have often found is that we could redefine \questionlabel, but that still involves a counter (natural number). Example taken from How to change the question number from just '1' to 'Question No. 1.' in the exam class?

\renewcommand{\questionlabel}{Question No.~\thequestion.}

Maybe there is a way to convert the number from \thequestion to a letter from the alphabet?

  • 2
    \renewcommand{\questionlabel}{\alph{question}.} – Steven B. Segletes Oct 19 '16 at 12:22
4

Since the OP provided no MWE, I borrowed one from here: Numbered copies with exam class.

The OP was on the right track, in that \questionlabel is the macro to be redefined. In this case, \alph{<counter>} is the way a counter is portrayed in lower-case alphabetic format.

\documentclass[addpoints]{exam}
\renewcommand{\questionlabel}{\alph{question}.}
\begin{document}
  \begin{questions}
    \question[10]
    Why is there air?

    \question[15]
    How much wood would a woodchuck chuck if a woodchuck could chuck
    wood?

    \question[10]
    Compute $\displaystyle\int_0^1 x^2 \, dx$.
  \end{questions}

  \gradetable[v][questions]
\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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