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.

As we know the enumeration usually begin at (1), then followed by (2), (3),...

My question: How to start at (0)? I know \item[(0)] will work, but how do I do this automatically? That is, make it as a default option.

share|improve this question
2  
With the enumitem package just say \setlist[enumerate,1]{start=0} –  egreg Mar 4 '13 at 14:36
    
@egreg Yes, it works, thank you. However, the second layer will start at () instead of (a)... –  Popopo Mar 4 '13 at 14:39
    
There is no zero'th letter, so \arabic* is the only format supporting zero –  daleif Mar 4 '13 at 14:52

1 Answer 1

up vote 11 down vote accepted

I really don't know why one should want it. However, here's a solution with the enumitem package.

\documentclass{article}
\usepackage{enumitem}
\setlist[enumerate,1]{start=0} % only outer nesting level
\begin{document}
\begin{enumerate}
\item zero
\item one
  \begin{enumerate}
  \item a
  \item b
  \end{enumerate}
\item two
\end{enumerate}
\end{document}

enter image description here

share|improve this answer
    
Thank you a lot. –  Popopo Mar 4 '13 at 15:04
    
"I thought that by now professional programmers knew how much more preferable it is to let the natural numbers start at 0." -Dijkstra, On a Somewhat Disappointing Correspondence –  ben Apr 17 at 16:14
    
@ben Yes, the natural numbers start at zero, but you're numbering the first item. Before any item the number of items is zero, when the first item appears it has number one. –  egreg Apr 17 at 17:44

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.