GeneralUsing \part as if it was a chapter

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Noviomagum
Posts: 6
Joined: Mon Oct 13, 2008 3:56 pm

Using \part as if it was a chapter

Post by Noviomagum »

I am currently trying to set up my PhD-thesis in LaTeX. Each chapter in the thesis consists of a number of published papers that were already written in LaTeX, and that each consist of a number of \sections and \subsections.

I have been thinking how to get this working, and I came up with the idea to use \part as if it were \chapter, and to put each article in a \chapter. Unfortunately I don't seem to be able to get it right, because the structure that emerges is like this:

I. Introduction (part)
1. Intro-paper number 1 (chapter)
... 1.1 Bla (section)
2. Intro-paper number 2 (chapter)
II. Techniques (part)
3. Techniques-paper number 1 (chapter)
... 3.1 Bla (section)
4. Techniques-paper number 1 (chapter)

While I would like something like this:

1. Introduction (part)
1.1 Intro-paper number 1 (chapter)
... 1.1.1 Bla (section)
1.2. Intro-paper number 2 (chapter)
II. Techniques (part)
2.1. Techniques-paper number 1 (chapter)
... 2.1.1 Bla (section)
2.2. Techniques-paper number 1 (chapter)

The major differences between what I get and what I want are:
  • the paper numbers (chapter) are not "resetted" when a new part is started (the numbering continues)
  • the papers (chapter) are not numbered using 'sub'-numbers ('1' instead of '1.2')
  • the parts (part) are numbered using Roman numerals
I have also ran into some problems with the packages I use that I cannot get to work using my own made-up document structure, so my guess is that it is not such a good idea to use \part as if it was a chapter.

Who can help me out? Should I use another approach? Is there a way to get it working anyway? Should I be using Microsoft Word? ;-)

Any help is appreciated!

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

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Using \part as if it was a chapter

Post by Stefan Kottwitz »

Hi Noviomagum,

welcome to the board!
If you're already using amsmath, those two lines will solve the three small problems:

Code: Select all

\numberwithin{chapter}{part}
\renewcommand*\thepart{\arabic{part}}
Without amsmath you could use the chngcntr package.

Stefan
LaTeX.org admin
Noviomagum
Posts: 6
Joined: Mon Oct 13, 2008 3:56 pm

Using \part as if it was a chapter

Post by Noviomagum »

This is exactly what I needed, thanks!

A new problem emerges now, however, which was already addressed (but not solved) by someone in this post.
Post Reply