5

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)?

user3671
  • 655

2 Answers2

12

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.

enter image description here

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.

enter image description here

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.

enter image description here

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:

enter image description here

Torbjørn T.
  • 206,688
  • Worked like a charm. Thanks for the very detailed response, Torbjørn. – user3671 Feb 25 '13 at 08:51
  • The Beamer document class does not allow enumitem to 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
0

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: screenshot of how to use in lyx

Based on this answer.

Corylus
  • 101