0

I want to define a new environment which would allow me to have a like-enumerate list, i.e. have the \items numbered like in an enumerate environment and change the item name by the one given as parameter. The environement would be indented automatically to align itself with the other lists. Something like this:

aaa 1 - text here

aaa 2 - texte here

I have tried different things but could not find the right match. The package enumerate introduces errors in my whole document.

1
  • Please post the minimal code of what you have. This saves us typing a lot of code for you and makes debugging much easier. Maybe we will spot a little mistake and all errors disappear with this fixed...
    – LaRiFaRi
    May 5 '15 at 8:27
1

Try enumitem

\documentclass{article}
\usepackage{enumitem}
\usepackage{lipsum}
\begin{document}
  \lipsum[1]
  \begin{enumerate}[leftmargin=*,label=aaa \arabic* --]
    \item \lipsum[1]
    \item Some other text
  \end{enumerate}
  \lipsum[2]
\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.