[Tex/LaTex] How to modify LaTeX’s sectioning hierarchy

sectioningtable of contents

I am trying to create a new command, so I could use a new hierarchy level in a book document class.

The table of Contents should look like this:

Part I

Theme I

1. Chapter 1

2. Chapter 2

2.1 Section 1

2.1.1 Subsection

Theme II

1. Chapter 1### and so on.

I guess I have to use \newcommand, but I don't know how to modify the hierarchy number to include "Theme" between "Part" and "Chapter". If you know a document class with a more complete hierachy than books and implementing a similar hierarchy, it will solve my problem as well.

Best Answer

You can do it with the memoir class, that features a document subdivision above "part":

\documentclass{memoir}
\renewcommand{\bookname}{Part}
\renewcommand{\partname}{Theme}
\setlength{\cftpartnumwidth}{2em} % set the width of numbers

\begin{document}
\frontmatter
\tableofcontents*

\mainmatter
\book{Part 1}
\part{Theme 1}
\chapter{Chapter 1}
\chapter{Chapter 2}
\section{Section 1}
\subsection{Subsection}

\part{Theme 2}

\chapter{Chapter 3}
\chapter{Chapter 4}

\book{Part 2}
\part{Theme 1}
\chapter{Chapter 5}
\chapter{Chapter 6}
\section{Section 1}
\subsection{Subsection}

\part{Theme 2}

\chapter{Chapter 7}
\chapter{Chapter 8}
\end{document}

The class has powerful customization commands.

enter image description here

I would avoid restarting the numbering of chapters for each "part" or "theme": cross references would be very cumbersome. Something like

as we saw in Chapter 3 of Theme I in Part II

is really heavy.

Related Question