# List sections of chapter at beginning of that chapter

How can one have a mini table of contents for the current chapter appear just after the chapter name listing all sections of that chapter?

-

Have a look at the minitoc package. Here's a minimal example:

\documentclass{book}

\usepackage{minitoc}

\begin{document}

\dominitoc% Initialization
\tableofcontents

\chapter{bla}
\minitoc% Creating an actual minitoc

\section{blubb}

\section{foo}

\end{document}


-
I used \usepackage[utf8]{vietnam}, at minitoc is contents, not in Vietnamese. Please help me. –  minthao_2011 Nov 10 '13 at 16:02

for minitoc to be visible you need both \dominitoc \tableofcontents

you can change how deep minitoc goes:

\setcounter{minitocdepth}{1}    % Show until sections in minitoc

\setcounter{minitocdepth}{3}    % Show until subsubsections in minitoc


edit 1: more about formating minitoc (insert in preamble)

\dominitoc[n]      % [n] removes the title "contents"


(this inserts minitoc and won't work without toc

\dominitoc[c]      % [c] centers the title "contents"


(someone please edit how other parameters should be added: [n][v] or [n, c], even if this is not a good example as as c and n don't go together)

\nomtcrule         % removes rules = horizontal lines

\nomtcpagenumbers  % remove page numbers from minitocs

\undotted          % removes just the dots


you did not ask for this but you can also have minilof (for figures) and minilot (for tables)

-
\tableofcontents is not necessary for creating minitocs - you could use \faketableofcontents instead. –  lockstep Dec 2 '10 at 20:40

You can also do this with the titletoc package, and avoid some of the interactions that minitoc sometimes has. See this answer for an example. (Although the example uses memoir, titletoc can be used with any of the regular document classes too.)

-