Math & Sciencedefinition and theorems numbering per chapter

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
singhofmpl
Posts: 3
Joined: Wed Mar 03, 2010 2:13 pm

definition and theorems numbering per chapter

Post by singhofmpl »

I'm writing my PhD thesis.I'm facing some problem relating to incorporating definitions,theorems and examples numbering per chapter.
What I'm looking for is that
first definition in chapter 1 should be numbered as 1.1 and in chapter 2 it should be numbered as 2.1 and so on and same for theorems etc.

can you tell me what changes I must incorporate in the preamble of my latex code?
For the time being I'm using the following code in my preamble, but its numbering definition etc globally rather than chapter wise.
\newtheorem{theorem}{Theorem}
\newtheorem{definition}{Definition}
\newtheorem{example}{Example}
please help.

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

definition and theorems numbering per chapter

Post by Stefan Kottwitz »

Hi,

if you are using the amsmath package you could write

Code: Select all

\numberwithin{definition}{chapter}
\numberwithin{example}{chapter}
...
to achieve that.

Another package useful for this purpose is chngcntr.

Stefan
LaTeX.org admin
Post Reply