TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to have different numbering for Theorems, Examples, Definition, and Lemma. I use the following code in preamble

\setbeamertemplate{theorem}[ams style]

This code works fine but it has continuing numbering for Theorems and other Environments. I'd appreciate your help if you guide me how to get different numbering for Theorems, Examples, Definition, and Lemma in beamer.

share|improve this question
BTW, numbering anything in a presentation is most probably a very bad idea. Unless the presentation is for the speaker (to put one more item in the cv, for example) and not for the audience, of course (as is often the case). – mbork Nov 12 '12 at 22:19
up vote 6 down vote accepted

Load beamer with the notheorems option and declare all theorem types "by hand" without introducing a common numbering scheme. (Note: This is somewhat a hack, as it breaks the countsect package option [theorem numbering by section] for every type but theorem.)


\setbeamertemplate{theorem}[ams style]




    % Compatibility



\begin{theorem}[A theorem]
Some text.

\begin{definition}[A definition]
Some text.



enter image description here

share|improve this answer
Thanks @lockstep for your nice answer. Much appreciated your time and effort. – MYaseen208 Nov 13 '12 at 13:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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