Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am using the enumitem package to tweak the enumerate environment. I would like to have all the items in different levels aligned in the left margin. I tried with different parameters of the package unsuccesfully. I also need to align the sentences in the items.

a.     iten1
b.     item2
b.1.   item3
c.     item 4

Any suggestion?

share|improve this question
    
Could you please expand your question? It's not quite clear what you mean by "align the sentences in the items". –  egreg Sep 11 '12 at 8:06
add comment

1 Answer 1

up vote 3 down vote accepted

Here's a solution that typesets the labels in the margin:

\documentclass{article}

\usepackage{enumitem}

\setlist[enumerate]{align=left,leftmargin=0pt,labelsep=0pt,labelwidth=3em}
\setlist[enumerate,1]{label=\alph*.}
\setlist[enumerate,2]{label*=\arabic*.}

\usepackage{lipsum}

\begin{document}

\lipsum[1]

\begin{enumerate}
\item First
\item Second
  \begin{enumerate}
  \item Second-first
  \end{enumerate}
\item Third
\end{enumerate}

\end{document}

enter image description here

Addding itemindent=3em to the example above will make the labels left-aligned at the left margin:

\documentclass{article}

\usepackage{enumitem}

\setlist[enumerate]{align=left,leftmargin=0pt,labelsep=0pt,labelwidth=3em,itemindent=3em}
\setlist[enumerate,1]{label=\alph*.}
\setlist[enumerate,2]{label*=\arabic*.}

\usepackage{lipsum}

\begin{document}

\lipsum[1]

\begin{enumerate}
\item First
\item Second
  \begin{enumerate}
  \item Second-first
  \end{enumerate}
\item Third
\end{enumerate}

\end{document}

enter image description here

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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