With the above code, the first theorem/proposition etc. in chapter 3 say, is numbered Theorem 3.1. However, in a couple of my chapters I would like to have the theorems numbered by section rather than chapter. I am sure that this can be done using the \renewcommand command, but cannot seem to work out exactly what I need to do. Any help would be greatly appreciated.
Last edited by dward1996 on Mon Mar 14, 2011 10:06 am, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
When you say "by section" do you mean including the section counter and removing the chapter counter, or simply the chapter counter followed by the section number and then by the corresponding theorem number?
gmedina wrote:When you say "by section" do you mean including the section counter and removing the chapter counter, or simply the chapter counter followed by the section number and then by the corresponding theorem number?
Sorry I hadn't realised how ambiguous I had been. Basically in some chapters, I want to number things as Theorem 3.1.2 say for the second theorem in section 1 of chapter 2.
All you need to do is to redefine the \thetheorem command (if you want this same behaviour to apply to your properties, definitions, etc. you'll have to redefine \theproperty, \thedefinition, etc.):
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p