Following, this answer I've been able to start anew the \chapter
numbering for each new \part
.
Unfortunately, that didn't affect the unnumbered \part*
s.
Manually setting the counter (\setcounter{chapter}{0}
), seems to do the job as long as hyperref
is not involved.
However, resetting the counter causes TOC to link the chapters in the unnumbered part to the chapters with the same local number from a previous part, which doesn't happen with automatically restarted chapters in numbered parts. E.g. "Discussion" points to "At First I Was Afraid".
\documentclass{report}
\usepackage{hyperref}
\makeatletter
\@addtoreset{chapter}{part}
\makeatother
\begin{document}
\tableofcontents
\chapter*{Foreword}
\addcontentsline{toc}{chapter}{Foreword}
\chapter*{Achnowlegements}
\addcontentsline{toc}{chapter}{Acknowlegements}
\part*{Introduction}
\addcontentsline{toc}{part}{Introduction}
\chapter{Background}
\chapter{Related Work}
\part{Where It All Begun...}
\chapter{At First I Was Afraid}
\chapter{I Was Petrified}
\part*{Discussion and Future Work}
\setcounter{chapter}{0}
\addcontentsline{toc}{part}{Discussion and Future Work}
\chapter{Discussion}
\chapter{Future Work}
\end{document}
\@add to reset{chapter}{part*}
seems to have no effect at all.
What is the proper way to reset chapter numbering for both numbered and unnumbered parts?