# Specify minitoc for each chapter

To specify the toc depth of each chapter I can do

\chapter{Title}
\addtocontents{toc}{\protect\setcounter{tocdepth}{1}}
...
\chapter{Title}
\addtocontents{toc}{\protect\setcounter{tocdepth}{2}}
...


How can I do this for the minitoc? Setting the minitocdepth counter does not seem to work.

-
Please add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. –  Marco Daniel May 15 '13 at 16:04

## 1 Answer

With the etoc package, you generate minitoc's with the command \localtableofcontents. You can modify the tocdepth counter before this command

\setcounter{tocdepth}{1}
\tableofcontents

\chapter{Vincere}
\setcounter{tocdepth}{2}
\localtableofcontents

\chapter{Vincere ancora}
\setcounter{tocdepth}{3}
\localtableofcontents


Do not use, if you employ etoc, addtocontents to write some tocdepth changing instruction to the .toc file. This would impact all tables of contents inside the document.

Sorry if I am off-topic as I couldn't tell if minitoc was a specific reference to the minitoc package

-