Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question

3 Answers 3

up vote 41 down vote accepted

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}

enter image description here

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

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.)

share|improve this answer

more info here http://www.ctan.org/tex-archive/macros/latex/contrib/minitoc/

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)

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.