# Mark a question with an asterisk in enumeration mode [duplicate]

I am using the \usepackage[shortlabels]{enumitem} package for automatic enumeration of question in my LaTeX document. However, I would like sometimes to mark (a) question(s) with an asterisk as to declare its level of difficulty. How can I do that?

I certainly don't like doing it manually , e.g after the \item command to place an asterisk like so \item $*$. Also I would like the asterisk to be a superscript to the number e.g something like 5* suppose.

Sample:

1. This is a sample question.
2. This is another sample question.
3*. This is a sample question with some difficulty.


This is what I would like the output to be. However the dot. I would like to be aligned with the other dots, if that , is of course possible.

Can this be done?

• I think this has already been asked before, see for example tex.stackexchange.com/questions/52715/… and change $*$\theenumi. to \theenumi\up{*}. Mar 14, 2016 at 8:29
• Thanks @DamienDtx. I used your comment to answer my question. Feel free to vote to close it. Mar 14, 2016 at 8:33

\newcommand{\myitem}{\refstepcounter{enumi}\item[\theenumi\up{*}.]}