Text Formattingamsbook | Theorem Numbers

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
marcdein
Posts: 40
Joined: Sat Dec 19, 2009 2:11 pm

amsbook | Theorem Numbers

Post by marcdein »

I am using document class AMSBook to write my thesis. One of the appendices is very short, with only the \chapter but no \section. I list three results (lemma, theorem, proposition) in this appendix. They appear as follows

Lemma D.0.2
Theorem D.0.3
Proposition D.0.4

I understand that the ".0" bit is due to the lack of a \section environment in this chapter, but I am not sure why the enumeration starts with 2 rather than 1. Is there a way I can force them to appear as follows

Lemma D.1
Theorem D.2
Proposition D.3


Edit:
Actually, I would even be happy with the following:

Lemma D.1.1
Theorem D.1.2
Proposition D.1.3
Last edited by cgnieder on Tue Oct 23, 2012 1:10 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

gadgetto
Posts: 11
Joined: Wed Oct 24, 2012 8:28 am

amsbook | Theorem Numbers

Post by gadgetto »

Hi marcdein,

I think you have declared your theorems as follows:

Code: Select all

\newtheorem{thm}{Theorem}[section]
\newtheorem{lemma}[thm]{Lemma}
\newtheorem{propo}[thm]{Proposition}
In this case only the \section resets the theorem-counter.
In your example there was one theorem (Lemma, Theorem or Proposition) in the chapter before. Therefore the enumeration starts with 2.

To get Lemma D.1, Theorem D.2, Proposition D.3 and so on you only have to replace [section] by [chapter]:

Code: Select all

\newtheorem{thm}{Theorem}[chapter]
\newtheorem{lemma}[thm]{Lemma}
\newtheorem{propo}[thm]{Proposition}
To get Lemma D.1.1, Theorem D.1.2, Proposition D.1.3 and so on you modify the counters after the \chapter but before the theorem:

Code: Select all

\setcounter{section}{1}
\setcounter{theorem}{0}
You have to set the section-counter to 1 for D.1.1 and then reset the theorem-counter to 0 so that the next theorem will increase it to 1. Be careful the first section in this chapter will start with the Number 2, or you have to set the counter to 0 again!!!


I recommend you the first alternative.


Best regards
Gadgetto
Last edited by cgnieder on Wed Oct 24, 2012 9:45 am, edited 1 time in total.
marcdein
Posts: 40
Joined: Sat Dec 19, 2009 2:11 pm

Re: amsbook | Theorem Numbers

Post by marcdein »

Many thanks for your very useful advice! I ended up choosing the first alternative, by the way.
Post Reply