GeneralConnecting documents

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
omkardpd
Posts: 86
Joined: Sun Feb 24, 2008 7:23 am

Connecting documents

Post by omkardpd »

Hi,

I am using a "book" document class and I include a number of chapters using "\include" command. I am getting the theorems and corollaries numbers as 1, 2, 3, .... in continuation across the chapters? Can I have them numbered as we get section numbering. eg Corollary 2.3 for Corollary 3 in chapter 2. If this is not possible, then can we have numbers not in continuation across the chapters. eg. if Chapter is ending with Corollary 7, then I want first Corollary in Chapter 2 numbered as 1. I am getting it numbered as 8.

Thank you,

Omkar

Recommended reading 2024:

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

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

cibbuano
Posts: 4
Joined: Thu Mar 12, 2009 12:36 am

Connecting documents

Post by cibbuano »

You can use counter commands to reset the numbering at the beginning of every chapter.

Here's some information on counters: TeX blog

Also, check out the wikibooks page on equation numbering...
Wikibooks
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: Connecting documents

Post by Stefan Kottwitz »

Hi Omkar,

use the \numberwithin command of amsmath or the chngcntr package.

Stefan
LaTeX.org admin
Post Reply