I am making a presentation using beamer in LyX. Is it possible to have a numbered list (enumerate) starting with zero (0) instead of one (1)?
-
possible duplicate of How can I make an enumerate list start at something other than 1? – Marco Daniel Feb 24 '13 at 10:28
-
Hi Marco... Sorry I am not very good with latex. Is there a simple way to do this in LyX? – user3671 Feb 24 '13 at 10:35
-
Sorry I have no experiences with LyX. I don't like LyX (Sorry). Of course LaTeX needs a big induction but after you can manipulate everything very simple. – Marco Daniel Feb 24 '13 at 10:51
-
1a related ticket for LyX now exists: https://www.lyx.org/trac/ticket/11098 – user134068 Mar 31 '18 at 21:24
2 Answers
For beamer I don't have any very good ideas, but there are at least two options.
Specify the first item label manually, and set counter
Write your list, and at the start of the first item add an ERT, where you write
[0.]\setcounter{enumi}{0}
This way you override the automatic item label, replacing it with 0., and then you reset the counter to zero, so the next item is numbered 1.

Write the entire list in an ERT
Add an ERT with Ctrl + L and write the list code as demonstrated by Jubobs in his answer, or in the question linked to by Marco Daniel.

Standard classes
For the standard classes, you can do this by using the enumitem package via a module: Document --> Settings --> Modules, add the Customisable lists (enumitem) module.

In the document, create your list, then right click the first element and choose Insert Short Title. Finally, in the opt box that appears, write start=0:

- 206,688
-
Worked like a charm. Thanks for the very detailed response, Torbjørn. – user3671 Feb 25 '13 at 08:51
-
The
Beamerdocument class does not allowenumitemto be used. A workaround I found is to write[]\addtocounter{enumi}{5}in the ERT at the beginning of the list. This creates an empty list item; the next item starts with the desired number. – winitzki May 07 '18 at 22:42
If you want to use the blue circled style common in beamer presentations, you have to define the following command:
\newcommand{\labelname}[1]{
\def\insertenumlabel{#1}%
\usebeamertemplate{enumerate item}%
}
Then you can use it like this:

Based on this answer.
- 101