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

11

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

  • Worked like a charm. Thanks for the very detailed response, Torbjørn. – user3671 Feb 25 '13 at 8: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 7 '18 at 22:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.