LyXList (enumerate) starting with 0?

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
heddson
Posts: 3
Joined: Fri Apr 30, 2010 10:19 am

List (enumerate) starting with 0?

Post by heddson »

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX books
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

List (enumerate) starting with 0?

Post by frabjous »

With the enumitem package:

Code: Select all

\documentclass{article}
\usepackage{enumitem}
\begin{document}
\begin{enumerate}[start=0]
\item Zero
\item One
\item Two
\end{enumerate}
\end{document}
or without it:

Code: Select all

\documentclass{article}
\begin{document}
\begin{enumerate}
\setcounter{enumi}{-1}
\item Zero
\item One
\item Two
\end{enumerate}
\end{document}
Well, that works with regular LaTeX anyway. Don't know much about LyX.
heddson
Posts: 3
Joined: Fri Apr 30, 2010 10:19 am

List (enumerate) starting with 0?

Post by heddson »

Thanks. but didn't work in LyX.

But I found what did (almost the same :) :

Hit Ctrl+L (in LyX) and add

Code: Select all

[0.]\setcounter{enumi}{0}
or in in the code:

Code: Select all

\begin_inset ERT
status open
\begin_layout Plain Layout
[0.]
\backslash
setcounter{enumi}{0}
\end_layout
\end_inset
Post Reply