Here's a possible solution using the titlesec
and titletoc
packages. titletoc
allows you to easily create partial ToCs; in this case, we can easily create a detailed ToC. The explicit option for titlesec
was used to easily redefine \section*
so as to include the section title in this new detailed table of contents:
\documentclass{book}
\usepackage[explicit]{titlesec}
\usepackage{titletoc}
\titleformat{name=\section,numberless}
{\normalfont\Large\bfseries}{}{0em}{#1\addcontentsline{ptc}{section}{#1}}
\begin{document}
\renewcommand\contentsname{General Contents}
\tableofcontents
\startcontents
\printcontents{}{-1}{\chapter*{Detailed Contents}}
\part{Test Part One}
\chapter{Test Chapter One}
\section*{Test Section One One}
\section*{Test Section One Two}
\section*{Test Section One Three}
\chapter{Test Chapter Two}
\section*{Test Section Two One}
\section*{Test Section Two Two}
\section*{Test Section Two Three}
\part{Test Part Two}
\chapter{Test Chapter One}
\section*{Test Section One One}
\section*{Test Section One Two}
\section*{Test Section One Three}
\chapter{Test Chapter Two}
\section*{Test Section Two One}
\section*{Test Section Two Two}
\section*{Test Section Two Three}
\end{document}
The two ToCs obtained: the one (general, short ToC) produced by \tableofcontents
:
and the detailed one produced by titletoc
's \printcontents
: