Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
5  
Have a look into this question: Defining custom sectioning commands, this looks like similar to what you want. –  m0nhawk Feb 9 '13 at 15:04
2  
Are you sure you want to cross reference your chapters like "in chapter 2 of theme 1 in part 3"? –  egreg Feb 9 '13 at 15:20
1  
As @egreg points out, even when you use part division, the chapter counter is not reset with each part, to make the document easily searchable. This is a generally recommended way. Of course this is the case when chapters are usually more than ~10 pages long. If they are not, consider stepping one level down, i.e., changing section->subsection and chapter->section, and then just rename "Chapter" to "Theme". –  tohecz Feb 9 '13 at 19:28
1  
What is your definition of a "Theme"? –  Yiannis Lazarides Feb 9 '13 at 19:56
2  
The memoir class has a \book division over \part. –  egreg Feb 9 '13 at 20:15
add comment

1 Answer

up vote 3 down vote accepted

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.