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.

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

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.