37

How to get numbered Lemmas, Definitions, Theorems and so on in beamer?

1
  • 3
    \setbeamertemplate{theorems}[numbered] Commented Aug 10, 2012 at 14:40

1 Answer 1

45

You can set the theorems template with the numbered option:

\setbeamertemplate{theorems}[numbered]

or with the ams style option:

\setbeamertemplate{theorems}[ams style] 

If additionally you use the envcountsect class option by loading beamer in the following way:

\documentclass[envcountsect]{beamer}

then theorems, definitions, and so on to be numbered locally to each section (by default they are numbered consecutively throughout the presentation).

3
  • 4
    Apparently, I'm facing the problem that the all the definitions and theorems are counted together.
    – hola
    Commented Jun 6, 2019 at 20:46
  • I am facing the same problem, please help
    – Eduard
    Commented Feb 7, 2023 at 12:12
  • 1
    @Eduard - Page 32 of the user guide of the beamer package has the following to say on this subject: "If you do number theorems and definitions, number everything consecutively. Thus if there are one theorem, one lemma, and one definition, you would have Theorem 1, Lemma 2, and Definition 3. Some people prefer all three to be numbered 1. We would strongly like to discourage this. The problem is that this makes it virtually impossible to find anything since Theorem 2 might come after Definition 10 or the other way round."
    – Mico
    Commented Apr 10, 2023 at 21:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .