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.
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityI 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}
You can also achieve it locally within the environment by using:
\setcounter{enumi}{-1}
% arara: pdflatex: {synctex: yes, action: nonstopmode}
\documentclass{article}
\usepackage{enumerate}
\usepackage[shortlabels]{enumitem}
\begin{document}
\begin{enumerate}[\bf 1:,labelindent=10pt,leftmargin=*]
\setcounter{enumi}{-1}
\item zero
\item one
\begin{enumerate}[\bf i:,labelindent=10pt,leftmargin=*]
\setcounter{enumii}{-1}
\item Nothing %testing with \roman, equivalent bold using \bf i
\item one
\item two
\end{enumerate}
\item two
\end{enumerate}
\end{document}
Status:
SUCCESS
start = 0
as an optional argument to each local environment.
– Werner
Mar 23 '18 at 5:45
This simple trick does the job:
\begin{enumerate}
\item[0.] Zero
\item One
\item Two
\end{enumerate}
enumitem
package just say\setlist[enumerate,1]{start=0}
– egreg Mar 4 '13 at 14:36\arabic*
is the only format supporting zero – daleif Mar 4 '13 at 14:52