Page LayoutSection Numbering by Parts

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
Latexlover
Posts: 1
Joined: Wed Nov 14, 2012 5:23 pm

Section Numbering by Parts

Post by Latexlover »

Hi everyone,

I am using the article class to write my thesis. The thesis is in two parts and each part has its own abstract, introduction, main text, conclusion, etc.

Automatic section numbering obviously starts with 1 and then increments each section. However, I want each part in my thesis to have its own numbering so that instead of the following (which I have at the moment):
Part I Thesis part 1
Abstract
1. Introduction
2. Main text
3. Conclusion

Part II Thesis part 2
Abstract
4. Introduction
5. Main text
6. Conclusion
I want to get this:
Part I Thesis part 1
Abstract
1. Introduction
2. Main text
3. Conclusion

Part II Thesis part 2
Abstract
1. Introduction
2. Main text
3. Conclusion
In other words, I want to replace the 4. 5. And 6. for part II with 1. 2. And 3.
I have tried using counters but failed thus far. I am pretty sure there is a very neat and easy way of doing this in LaTeX but can't figure it out.

Any help will be much appreciated.

Thank you very much

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

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Section Numbering by Parts

Post by kaiserkarl13 »

Does \setcounter{section}{0} or some iteration thereof do the trick? Note that you may have to run LaTeX twice before the numbers change, of course.

By the way, why are you writing these as parts instead of chapters? Also, the report class is more typical for theses than is the article class. Not that it's wrong to do it your way, it just isn't what I would expect.
Post Reply