In large documents, it is helpful to add a “mini-table-of-contents” at the beginning of every chapter in order to get a better overview of the chapter. The minitoc-package provides a nice, easy-to-use and customizable layout for TOCs on a chapter level.
How to create a minitoc:
\usepackage{minitoc}
Any minitoc can only be created if you have a “global” table-of-contents, its content is used for generation. So in your document, you first have to notify Latex you want to use minitoc and then create the overall table of contents:
\dominitoc \tableofcontents
Now you can add minitocs at the beginning of your chapters:
\chapter{...} \minitoc \section{...}
Minilofs and minilots:
Similarly, \minilof
and minilot
will create list-of-figures and list-of-tables for your chapters.
Remarks:
Obviously, this only makes sense in books and reports, as in articles there are no chapters available. Here the minitoc-package provides additional commands for articles:
\secttoc \sectlof \sectlot
and to partition books:
\parttoc \partlof \partlot
The package documentation can be found at CTAN
lynn
Hi,
Have you ever experienced the minitoc appeared in wrong chapters? Any solution for this? Is there any conflicting packages such as the use of tocloft package etc?
tom
Are you using
\chapter*{}
or\section*{}
somewhere in your document? Try adding the following line at the end of the starred chapter to adjust the minitoc counter:\adjustmtc
Please refer to the documentation for further details.
Cheers, Tom.
10 ways to customize toc/lof/lot « LaTeX Matters
[…] is an earlier post I wrote about the package as well as the complete […]
Wayne Gray
Interesting thanks. But I have one large section and I want a ToC for that section ONLY. How do I define a “minitoc” for that one section that omits the section number and numbers the first subsection as “1” not “0.1” or “5.1”?? Actually “5.1” would be fine. BTW I am using the article class.
tom
Hi Wayne,
Thanks for your question. Is this a starred section (
\section*{}
) you need the minitoc for? In general, minitoc uses the standard counters. Therefore, to remove the section number from subsection counter, it’s sufficient to redefine how thesubsection
counter is printed.Please provide a minimal example and I’ll be happy to make a suggestion.
Apologies for the brief article. I’m aware that it’s information content is limited. You might find the minitoc package documentation useful.
HTH, Tom