I'd like to edit the table of contents for a book
-class file. The problem that I'm facing is that I have a lot of separate Chapters, with no sections, in the first part of the book. If I just use \tableofcontents
it looks like this:
I Part
1. Chapter
1.1 Section
II Part
2. Chapter
etc. which is generally fine, but since I have a lot of chapters it looks somewhat ugly. I'd would like something like this
I Part
I.1. Chapter
I.1.1 Section
I.2. Chapter
II Part
II.1. Chapter
but I honestly have no idea how to realize that. I'll also add an example code here, since I'm not sure if there could be a problem with the subfile
-package
\documentclass[a4paper, leqno, oneside]{book}
\usepackage{subfiles}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{amssymb,amsmath, amsthm,mathtools,latexsym}
\usepackage{mathrsfs}
\usepackage{geometry}
\usepackage{soul}
\begin{document}
\subfile{Preface.tex}
\tableofcontents
\subfile{Part1.tex}
\subfile{Part2.tex}
\subfile{Part3.tex}
\end{document}
Thanks for the help!
\renewcommand{\thechapter}{\thepart.\arabic{chapter}}
and this is a clear duplicate of some question (I have to find it, however). Do you really needlatexsym
? I don't think so...latexsym