20

Possible Duplicate:
Enumerate with Properties

How can I create a list with a mixed listing, i.e. made of a fixed prefix (e.g. a letter) and an auto incremented number. E.g.

A1 my text....
A2 another text;
A3 again text.

Maybe exists such a package that I don't know...

31

Use enumitem.

\documentclass{article}

\usepackage{enumitem}

\begin{document}

\begin{enumerate}[label=A\arabic*]
\item First item
\item Second item
\end{enumerate}

\end{document}
| improve this answer | |
  • Thanks! I'm going to install the package! Just let me a few minutes to check it out! – JeanValjean Jan 17 '13 at 13:56
  • It works as promised :). And I see that I can also specify italics and bold styles. Very nice package! Thanks again! – JeanValjean Jan 17 '13 at 14:04
  • 5
    What does the * in \arabic* do? – Martin Thoma Jan 10 '17 at 11:31
  • 3
    @MartinThoma According to the documentation, "A set of starred versions of \alph, \Alph, \arabic, \roman and \Roman, without argument stand for the current counter in enumerate". I.e. it is required to ensure that the current number is print. – Nijin22 Mar 28 '18 at 7:36
  • 1
    I had to add the leftmargin=* to the options so that it is aligned on the left correctly. Full command: \begin{enumerate}[label=Stufe \arabic*:, leftmargin=*] – Carsten Hagemann Aug 20 '19 at 8:36

Not the answer you're looking for? Browse other questions tagged or ask your own question.