Hi,
How do I make a list (enumerate) that start with the number 0?
I'm really new to LyX/LaTeX. Googled for it, but couldn't find it..
Thanks in advance!
/heddson
LyX ⇒ List (enumerate) starting with 0?
List (enumerate) starting with 0?
With the enumitem package:
or without it:
Well, that works with regular LaTeX anyway. Don't know much about LyX.
Code: Select all
\documentclass{article}
\usepackage{enumitem}
\begin{document}
\begin{enumerate}[start=0]
\item Zero
\item One
\item Two
\end{enumerate}
\end{document}
Code: Select all
\documentclass{article}
\begin{document}
\begin{enumerate}
\setcounter{enumi}{-1}
\item Zero
\item One
\item Two
\end{enumerate}
\end{document}
List (enumerate) starting with 0?
Thanks. but didn't work in LyX.
But I found what did (almost the same :) :
Hit Ctrl+L (in LyX) and add
or in in the code:
But I found what did (almost the same :) :
Hit Ctrl+L (in LyX) and add
Code: Select all
[0.]\setcounter{enumi}{0}
Code: Select all
\begin_inset ERT
status open
\begin_layout Plain Layout
[0.]
\backslash
setcounter{enumi}{0}
\end_layout
\end_inset