2

How can I customize the question label used by \Question in the exercise package?

I'm using the exercise package. I want to customize it such that the enumeration generated by \Question uses letters ((a), (b), ...) rather than numbers (1. 2. ...).

In particular, this code

\documentclass{article}
\usepackage[noanswer]{exercise}

\begin{document}

\begin{Exercise}
\Question qwer
\Question asdf
\end{Exercise}

\end{document}

produces the output output of exercise

I would like to have

(a) qwer
(b) asdf

I suspect that setting QuestionHeaderNB will do the trick, but I haven't found how.

1 Answer 1

4

I didn't find anything related to that type of customisation in the exercise package documentation, but the following works:

\documentclass{article}
\usepackage[noanswer]{exercise}
\renewcommand{\QuestionNB}{(\alph{Question})\ }

\begin{document}

\begin{Exercise}
\Question qwer
\Question asdf
\end{Exercise}

\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .