How to get the table of contents chapter wise (beginning of each chapter with sections and subsections with page numbers) and the main table of contents containing only chapter title with page range not sections and subsections tiles.
[Tex/LaTex] How to include Table of contents chapter wise
table of contents
Best Answer
Here's one possible solution using the
titletoc
package for the partial ToCs and a variation ofthis answer
to Chapterwise page range in the TOC to generate the page ranges in the main ToC.Use the
\MiniToC
after the\chapter
command for chapters in which you want to typeset a partial ToC.The code has to be compiled three times to get the right numbers for the page ranges in the main ToC.
An image of the main ToC:
An image of the partial ToC for the first chapter: