Hi! I need to make a list of problems in latex and because I might need later to move some problems up or down, it should be automatically numbered. I know about enumerate, but I also want to add to the number of problem some stars signifying the level of difficulty. For example my list could be "1.*, 2.**, 3.*, 4.***, ...". Is it possible to do this?
Thanks.
Text Formatting ⇒ special enumeration
special enumeration
Last edited by aleph on Tue Sep 07, 2010 8:48 am, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

special enumeration
Hi,
you could try something along these lines:
you could try something along these lines:
Code: Select all
Code, edit and compile here:
\documentclass{article}\usepackage{enumitem}\newcommand\Easy{\stepcounter{enumi}\item[\theenumi.*]}\newcommand\Hard{\stepcounter{enumi}\item[\theenumi.**]}\newcommand\RHard{\stepcounter{enumi}\item[\theenumi.***]}\begin{document}\begin{enumerate}[align=left,leftmargin=*,widest=10***]\Easy $a=b$.\Hard $a=b$.\RHard $a=b$.\Easy $a=b$.\end{enumerate}\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
special enumeration
Now that the problem is solved, please be so kind and mark the topic accordingly as clearly described in Section 3 of the Board Rules (actually to be read before posting).
Best regards
Thorsten
Best regards
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10