Math & Science ⇒ definition and theorems numbering per chapter
-
- Posts: 3
- Joined: Wed Mar 03, 2010 2:13 pm
definition and theorems 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.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10358
- Joined: Mon Mar 10, 2008 9:44 pm
definition and theorems numbering per chapter
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