LyX ⇒ List (enumerate) starting with 0?
List (enumerate) starting with 0?
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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
List (enumerate) starting with 0?
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?
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