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.

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.

share|improve this question
    
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 1

up vote 3 down vote accepted

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

share|improve this answer

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.