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.
Math & Science ⇒ definition and theorems numbering per chapter
-
- Posts: 3
- Joined: Wed Mar 03, 2010 2:13 pm
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
Hi,
if you are using the amsmath package you could write
to achieve that.
Another package useful for this purpose is chngcntr.
Stefan
if you are using the amsmath package you could write
Code: Select all
\numberwithin{definition}{chapter}
\numberwithin{example}{chapter}
...
Another package useful for this purpose is chngcntr.
Stefan
LaTeX.org admin