In his excellent exsheets package, cgnieder explains how to define custom dividing concepts, such as question difficulty. After difficulty has been as a new dividing concept, each question can be attributed a certain difficulty value, such as, for example, basic, intermediate, advanced, insanely hard, etc. Questions of a given difficulty can then be shown/hidden very easily (as in my code below).
What I would like is for a question's difficulty to be typeset in the question's heading.
That way, I could, for example, tell my students that they should be comfortable with all basic questions, and that they should make an attempt at insanely hard questions only if they like a real challenge.
As far as I know, none of the headings instances defined in subsection 19.2 of the exsheets documentation allow for dividing concepts to be printed somewhere in a question's heading. Is there an easy way of doing that?
% adapted from subsection 12.3 in the exsheets manual
\documentclass{article}
\usepackage{exsheets}
\DeclareQuestionClass{difficulty}{difficulties}
\SetupExSheets{use-difficulties={easy,hard}}
\begin{document}
\begin{question}[difficulty=easy] % I'd like 'easy' to be printed in the heading
An easy question.
\end{question}
\begin{question}[difficulty=medium] % I'd like 'medium' to be printed in the heading
This one’s a bit harder.
\end{question}
\begin{question}[difficulty=hard] % I'd like 'hard' to be printed in the heading
Now let’s see if you can solve this one.
\end{question}
\end{document}


exsheets? It would be a nice feature. – jub0bs Nov 18 '13 at 15:36exsheetspackage of yours is great! – jub0bs Nov 18 '13 at 16:39exsheets. The new version should be available on CTAN and in TeX Live in a few days. – cgnieder Nov 20 '13 at 10:22