% minitoc.tex 40
\documentclass[12pt,a4paper,titlepage]{book}
\IfFileExists{txfonts.sty}{\usepackage{txfonts}}{\relax}
\newif\ifDP\DPfalse
\IfFileExists{dpfloat.sty}{\usepackage{dpfloat}\DPtrue}{\DPfalse}
\usepackage[tight,english,hints]{minitoc}
\usepackage{ifpdf}
\ifpdf
  \usepackage[pdftex]{hyperref}
  \usepackage[pdftex,pstarrows]{pict2e}
  \usepackage[pdftex]{graphicx}
\else
  \usepackage{hyperref}
  \usepackage[dvips,pstarrows]{pict2e}
  \usepackage[dvips]{graphicx}
\fi
% Check if booktabs package is available
\newif\ifBT \BTfalse
\IfFileExists{booktabs.sty}{\BTtrue\usepackage{booktabs}}{\BTfalse}
% Check if url package is available
\IfFileExists{url.sty}{\usepackage{url}}{\let\url\texttt}
\usepackage{tabularx}
% v40: removed the following, because multicol is a required package.
% Check if multicol package is available
%\newif\ifMC
%\MCfalse
%\IfFileExists{multicol.sty}{\MCtrue\usepackage{multicol}}{\MCfalse}
\usepackage{multicol}% v40
%
\makeatletter % to include some useful commands
\newcommand{\BibTeX}{{\rm B\kern-.05em\textsc{i\kern-.025em b}\kern-.08em
    T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
\let\BiBTeX\BibTeX
% IF YOU NOT HAVE THE manfnt FONT, the dangerous bends will not be printed...
\IfFileExists{manfnt.sty}{% does not work with .tfm
\typeout{manfnt.tfm FOUND}
\newfont{\manfnt}{manfnt}
\newcommand\virage{\marginpar[\raggedleft
 {{\manfnt\symbol{'177}}~~}]{\raggedright {~~\manfnt\symbol{'177}}}}
\def\@Vir{\hbox to12mm{\hbox{}\leaders%
 \hbox{{\manfnt\char127}\kern2pt}\hfil\hbox{}}}
\newcommand\Virage{\marginpar[\hfill{\@Vir~~}]{{~~\@Vir}\hfill}}%
}%ELSE
{\let\Virage\relax \let\virage\relax}
%%%%%%%%%%%%%%%%% END OF REPLACE
\def\smooth{\spaceskip=0.3em  plus .8em minus .1em
\xspaceskip=0.6pt plus 1em minus .2em
\pretolerance=10 \tolerance=10000 \looseness=-10000
\parfillskip=0pt plus10fill\relax}%
\newenvironment{SMOOTH}{\bgroup\smooth}{\par\egroup}
% 
\def\Cat#1{\hbox{$\langle$\emph{#1}$\rangle$}}
\def\<#1>{\Cat{#1}}
%%%
%%%% Some useful commands from Stefan Ulrich
\newcommand\changeskips{%
  \@tempdima\abovecaptionskip
  \abovecaptionskip\belowcaptionskip
  \belowcaptionskip\@tempdima
}
\newcommand\thickline{%
  \noalign{\hrule\@height1pt\vskip.8ex\relax}%
}  
\newcommand\V[1]{\texttt{\string#1}}
\newcommand\Chap{$^*$}
\newcommand\Sec{$^{**}$}
\newcommand\Lang{$^\dag$}
\newcommand\Strut{\rule[2.5ex]{0pt}{0pt}}
\newcommand\Strutt{\rule[3.5ex]{0pt}{0pt}}
\newcommand\FontDefault[2]{%
  \begin{tabular}[t]{@{}l@{}}%
      #1\\
      \hspace*{2em}#2
  \end{tabular}%
}
\newcommand\FontChapSec[3]{%
  \begin{tabular}[t]{@{}l@{}}%
      #1\\
      \hspace*{2em}#2\Chap\\
      \hspace*{2em}#3\Sec
  \end{tabular}%
}
%\makeatother
%\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\ps@chapterverso{\ps@empty}%
\def\cleardoublepage{\clearpage
 \if@twoside
  \ifodd\c@page\else
   \null\thispagestyle{chapterverso}\newpage
   \if@twocolumn\null\newpage\fi
   \fi
  \fi
 }%
\def\ps@chapterverso{\ps@empty}%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeatother
\parskip=12pt
\usepackage[english]{varioref}
\def\bs{{\ttfamily\char'134}}
\setcounter{tocdepth}{6}
\setcounter{minitocdepth}{6}
\setcounter{secnumdepth}{6}
\renewcommand{\textfraction}{.0}
\renewcommand{\topfraction}{.9999}
\renewcommand{\bottomfraction}{.9999}
\renewcommand{\floatpagefraction}{.9999}
\setcounter{totalnumber}{10}
\setcounter{topnumber}{10}
\setcounter{bottomnumber}{10}
\clubpenalty=10000
\widowpenalty=10000
\author{\textsc{Jean-Pierre F. Drucbert}\\%
ONERA~/~Centre de Toulouse~/~SRI\\%
\url{drucbert@onecert.fr}}
\date{2004/12/20}
\title{The \texttt{minitoc} package\\(version~\#40)}
\begin{document}
\raggedbottom
\maketitle
\dominitoc
\dominilof
\dominilot
\tableofcontents
\listoffigures
\listoftables
\chapter{The \texttt{minitoc} package}\label{o+minitoc}
\pagestyle{headings}
\minitoc
%\minilof
\mtcskip
\minilot
\section{Introduction}
This package, initially written by \textsc{Nigel Ward} and \textsc{Dan Jurafsky}, has been
almost completely redesigned at ONERA/Centre de Toulouse
by \textsc{Jean-Pierre Drucbert}.
It creates a mini-table of contents
(a ``minitoc''\,\footnote{The \texttt{minitoc} package introduces
                its own jargon, explained in this document.
                It should not be too difficult, however, to learn and use.}%
) at the beginning of each chapter of a document. 
It is also possible to have a mini-list of
figures (a ``minilof'') and a mini-list of tables (a ``minilot'').
The document class should of course define chapters 
(classes like \texttt{book} or \texttt{report}) or sections
(classes like \texttt{article}). 
Thus, this package should not be used with
document classes without standard sectionning commands (like \texttt{letter}).
When the document class defines a ``part'' sectionning level 
(i.e. classes like \texttt{book}, \texttt{report} and \texttt{article}),
you can create a ``partial'' table of contents
(a ``parttoc'') at the beginning of each part of a document.
It is also possible to have a partial list of figures (a ``partlof'')
and a partial list of tables (a ``partlot''). 
When the document class has no \texttt{\bs chapter} command 
but has a \texttt{\bs section} command, you may use section
level tables of contents (``secttoc'') at the beginning of each section.
\textbf{Note}\virage: you cannot
use chapter level and section level table of contents in the same document.
This restriction is intented to avoid documents with full of local
tables of contents, lists of figures and tables at every sectionning level.

The current version of this package is \#40.

\noindent
\textbf{Note}\virage: the commands relative
to the part level are defined only if the document class defines \verb|\part|.
The commands relative
to the section level are defined only if the document class
does not define \verb|\chapter| but defines \verb|\section|.

\section*{Licence}
 This package must be distributed and/or may be modified under the
 conditions of the \LaTeX{} Project Public License, either version 1.1
 of this license or (as convenient) any later version.
 The latest version of this license is in
 \begin{quote}
    \url{http://www.latex-project.org/lppl.txt}
 \end{quote}
 and version 1.1 or later is part of all distributions of \LaTeX{} 
 version 1999/06/01 or later.

But please don't bother me about hacked versions; they will not be supported.

\section{How to use the \texttt{minitoc} package}

\subsection{Loading the package and creating the minitables}

To use the \texttt{minitoc} package, you must introduce a command
\begin{verbatim}
\usepackage[...options...]{minitoc}
\end{verbatim}
in the preamble of the document\,\footnote{This command must
be placed \emph{after} any modification done on the sectionning
commands; if you modify sectionning commands after loading the
\texttt{minitoc} package, \texttt{minitoc} will not
work properly.}.
The mini-table of contents will be in the chapter,
after the \verb|\chapter| command, at the point of the \verb|\minitoc|
command. The \texttt{\bs minitoc} command may occur
         \emph{anywhere} inside a chapter. Of course, it is better
         to put it at the beginning of the chapter, eventually
         after some introductory material. But you can also decide
         to put it at the end of the chapter. You should use the
         same conventions in all chapters.
If you want to add the mini-table of contents for a chapter,
you must use the sequence given in Table~\vref{mtc+minitoc}.
\begin{table*}[tp]
\changeskips
\caption{Commands for a \texttt{minitoc}}\label{mtc+minitoc}
\begin{center}\small\ttfamily
\fbox{\begin{tabular}{ll}
\multicolumn{2}{l}{\bs documentclass[...]\{book\}}\\
\multicolumn{2}{l}{\bs usepackage[...options...]\{minitoc\}}\\
\ldots& \\
\bs setcounter\{minitocdepth\}\{2\} & \emph{default} \\
\bs setlength\{\bs mtcindent\}\{24pt\} & \emph{default} \\
\bs setlength\{\bs mtcskip\}\{\bs bigskipamount\} & \emph{default} \\
\bs renewcommand\{\bs mtcfont\}\{\bs small\bs rm\} & \emph{default} \\
\bs renewcommand\{\bs mtcSfont\}\{\bs small\bs bf\} & \emph{default} \\
\ldots& \\
\bs begin\{document\}& \\
\ldots& \\
\bs dominitoc& \\
\bs dominilof& \\
\bs dominilot& \\
\bs tableofcontents & \emph{or} \bs faketableofcontents \\
\bs listoffigures & \emph{or} \bs fakelistoffigures \\
\bs listoftables & \emph{or} \bs fakelistoftables \\
\ldots& \\
\bs chapter\{...\}& \\
\bs minitoc & \emph{if you want one} \\
\bs mtcskip\\
\bs minilof & \emph{if you want one} \\
\bs mtcskip\\
\bs minilot & \emph{if you want one} \\
\ldots& \\
\end{tabular}}
\end{center}
\end{table*}
For each mini-table of contents, an auxiliary file will be
created with a name of the form \<document>\verb|.mtc|\<N>,
where \<N> is the absolute chapter number.
``Absolute'' means that this number is unique,
and always increasing from the first chapter.
The suffix is \verb|.mlf|\<N> for mini-lists of figures and
is \verb|.mlt|\<N> for mini-lists of tables.
(If under MS-DOS or any operating system with short
extensions to filenames, see section~\vref{MS-DOS} and
section~\vref{.8+3}).

\subsection{Preparing the minitables}
The commands \verb|\dominitoc|, \verb|\dominilof| and \verb|\dominilot| (for mini tables at the chapter level),
take the \<document>\verb|.toc|, \<document>\verb|.lof| and \<document>\verb|.lot| files, respectively,
and cut slices from them to create the
\<document>\verb|.mtc|\<N>, \<document>\verb|.mlf|\<N> and \<document>\verb|.mlt|\<N> files.

The commands \verb|\dosecttoc|, \verb|\dosectlof| and \verb|\dosectlot| (for mini tables at the section level)
and \verb|\doparttoc|, \verb|\dopartlof| and \verb|\dopartlot| (for mini tables at the part level) are analog.

All these commands must be put \emph{before} the \verb|\tableofcontents|, \verb|\listoffigures| and
\verb|\listoftables| commands, or their \verb|\fake...| siblings.

\subsection{Placing the minitables}
The \verb|\mtcskip| command may be used to add a vertical
skip between two minitoc-like tables. Its height is
\verb|\mtcskipamount| (equal to \verb|\bigskipamount| by default).
\verb|\mtcskip| eliminates any immediate previous vertical
skip, to not accumulate vertical space when a mini-table is
empty and skipped by the \texttt{checkfiles} option.

The section-level table of contents will be in the section,
after the \verb|\section| command, at the point of the \verb|\secttoc|
command. The \texttt{\bs secttoc} command may occur
         \emph{anywhere} inside a section. Of course, it is better
         to put it at the beginning of the section, or
         after some short introductory material. You should use the
         same conventions in all sections.
If you want to add the section-level table of contents for a section,
you must use the sequence given in Table~\vref{mtcsecttoc}.
\begin{table*}[tp]
\changeskips
\caption{Commands for a \texttt{secttoc}}\label{mtcsecttoc}
\begin{center}\small\ttfamily
\fbox{\begin{tabular}{lll}
\multicolumn{2}{l}{\bs documentclass[...]\{article\}}\\
\multicolumn{2}{l}{\bs usepackage\{minitoc\}}\\
\ldots& \\
\bs setcounter\{secttocdepth\}\{2\} & \emph{default} \\
\bs setlength\{\bs stcindent\}\{24pt\} & \emph{default} \\
\multicolumn{2}{l}{\bs renewcommand\{\bs stcfont\}\{\bs small\bs rmfamily\bs upshape\bs mdseries\}} & \emph{default} \\
\multicolumn{2}{l}{\bs renewcommand\{\bs stcSSfont\}\{\bs small\bs rmfamily\bs upshape\bs bfseries\}} & \emph{default} \\
\ldots& \\
\bs begin\{document\}& \\
\ldots& \\
\bs dosecttoc& \\
\bs dosectlof& \\
\bs dosectlot& \\
\bs tableofcontents & \emph{or} \bs faketableofcontents \\
\bs listoffigures & \emph{or} \bs fakelistoffigures \\
\bs listoftables & \emph{or} \bs fakelistoftables \\
\ldots& \\
\bs section\{...\}& \\
\bs secttoc & \emph{if you want one} \\
\bs sectlof & \emph{if you want one} \\
\bs sectlot & \emph{if you want one} \\
\ldots& \\
\end{tabular}}
\end{center}
\end{table*}
For each section-level table of contents, an auxiliary file will be
created with a name of the form \<document>\verb|.stc|\<N>,
where \<N> is the absolute section number.
The suffix is \verb|.slf|\<N> for section-level lists of figures and
is \verb|.slt|\<N> for section-level lists of tables.
(If under MS-DOS or any operating system with short
extensions to filenames, see section~\vref{MS-DOS} and
section~\vref{.8+3}).

As floats (figures and tables) could go somewhere outside the
printing\Virage{} area of the text of the section, the sectlofs and
sectlots can be rather strange. In order to have a better
behaviour of these, it may be useful to add the
\texttt{insection} option in the \verb|\usepackage| command:
\begin{verse}
\verb|\usepackage[insection]{minitoc}|
\end{verse}
if you want more coherent sectlofs and seclots. The
\texttt{insection} option loads the \texttt{placeins} package
with its \texttt{section} and \texttt{bottom} options. The
\texttt{placeins} package, by \textsc{Donald Arsenau}, is available
on CTAN archives; \texttt{placeins.sty} contains its own
documentation.

If you want to add the partial table of contents for a part,
you must use the sequence given in Table~\vref{mtc+parttoc}.
\begin{table*}[tp]
\changeskips
\caption{Commands for a \texttt{parttoc}}\label{mtc+parttoc}
\begin{center}\small\ttfamily
\fbox{\begin{tabularx}{\textwidth}{lXl}
\multicolumn{2}{l}{\bs documentclass[...]\{book\}}\\
\multicolumn{2}{l}{\bs usepackage\{minitoc\}}\\
\ldots&\null\hfil\null& \\
\bs setcounter\{parttocdepth\}\{2\} & \emph{default} \\
\bs setlength\{\bs ptcindent\}\{0pt\} & \emph{default} \\
\bs renewcommand\{\bs ptcfont\}\{\bs normalsize\bs rm\} & \emph{default} \\
\bs renewcommand\{\bs ptcCfont\}\{\bs normalsize\bs bf\} & \emph{default} \\
\bs renewcommand\{\bs ptcSfont\}\{\bs normalsize\bs rm\} & \emph{default} \\
\ldots& \\
\bs begin\{document\}& \\
\ldots& \\
\bs doparttoc& \\
\bs dopartlof& \\
\bs dopartlot& \\
\bs tableofcontents & \emph{or} \bs faketableofcontents \\
\bs listoffigures & \emph{or} \bs fakelistoffigures \\
\bs listoftables & \emph{or} \bs fakelistoftables \\
\ldots& \\
\bs part\{...\}& \\
\bs parttoc & \emph{if you want one} \\
\bs partlof & \emph{if you want one} \\
\bs partlot & \emph{if you want one} \\
\ldots& \\
\end{tabularx}}
\end{center}
\end{table*}
For each partial table of contents, an auxiliary file will be
created with a name of the form \<document>\verb|.ptc|\<N>,
where \<N> is the absolute part number.
The suffix is \verb|.plf|\<N> for partial lists of figures and
is \verb|.plt|\<N> for partial lists of tables.
(If under MS-DOS or any operating system with short
extensions to filenames, see section~\vref{MS-DOS} and
section~\vref{.8+3}).

\noindent
\textbf{Note}\virage: the user is responsible of asking or not asking
a mini-toc (lof or lot) for some chapter. Asking a minilof for a
chapter without any figure would result in an empty and ugly mini
list of figures (i.e. the title and two horizontal rules).
He is also responsible of requiring or not requiring
a partial toc (lof or lot) for some part. Asking a partlof for a
part without any figure would result in an empty and ugly part
list of figures (i.e. the title alone on a page). Analogous remarks
apply to section-level tables of contents (secttoc, sectlof and
sectlot) and to the part-level tables of contents (parttoc, partlof and
partlot).

%V35
But since version \#35, empty mini tables are just ignored and
this problem should disappear in normal circumstances.
Nevertheless, we recommend to put no \verb|\minitoc| command in
a chapter without sections and no \verb|\minilof| or
\verb|\minilot| command in a chapter without figures or tables.
The \texttt{checkfiles} package option
(default) skips empty mini tables (with a warning);
the \texttt{nocheckfiles} package option restores
the old behaviour (empty mini tables are displayed).

By default, the mini tables and partial tables of contents
contain only references to sections and
subsections. The \texttt{minitocdepth}, \texttt{secttocdepth} and \texttt{parttocdepth}
counters, similar to \texttt{tocdepth},
allow the user to modify this behaviour. Mini or partial
lists of figures or tables are not affected by the value of
these counters.

\subsection{Starred chapters and sections}
\noindent
\textbf{NOTE}\Virage: if using \verb|\chapter*| and a
\begin{quote}
\verb|\addcontentsline{toc}{chapter}{...}|
\end{quote}
command to add something in the
table of contents, the numbering of minitoc files would be altered.
To avoid that problem, say
\begin{quote}
\verb|\addstarredpart{...}|\\
\verb|\addstarredchapter{...}|\\
\verb|\addstarredsection{...}|
\end{quote}
%You \emph{should not} use \verb|\minitoc| in a \verb|\chapter*|.
%Similar remarks apply to the part and section level.
These commands apply only for the level of a part-, mini- or
sect-toc; for lower levels, use, as usual:
\begin{quote}
\verb|\addcontentsline{toc}{section}{...}|
\end{quote}
for example, to add a section-level entry in the toc and the
minitoc:
\begin{verbatim}
   \chapter*{Title of chapter}
   \addstarredchapter{Title of chapter}
   \minitoc
   \section*{First section}
   \addcontentsline{toc}{section}{First section}
   \section*{Second section}
   \addcontentsline{toc}{section}{Second section}
\end{verbatim}

There is sometimes a problem with minitocs (and siblings) when
you use \verb|\chapter*| (or \verb|\section*|): the minitocs
appear in the wrong chapter. You can add a \verb|\adjustmtc|
(or \verb|\adjuststc| or \verb|\adjustptc|) command at the end
of the starred chapter (or section or part) to increment the
corresponding counter. Do not use commands like \verb|\stepcounter{mtc}|
(which should work), because the \texttt{mtcoff} package knows
what to do about \verb|\adjustmtc| (and others), but can do
nothing about \verb|\stepcounter|, as it is a standard basic command
of \LaTeX, not a \texttt{minitoc} specific command.

A more clever way to solve this problem is to use commands similar to:
\begin{quote}
\verb|\mtcaddchapter[|\<title>\verb|]|
\end{quote}
which adds an entry in the table of contents (and adjusts the
counter, because it calls \verb|\adjustmtc|). The
table~\vref{t+mtcadd} summarizes these commands, that you put
\emph{after} \verb|\chapter*|, etc.
If the optional argument is omitted or empty or blank, no entry will
be visible in the table of contents nor in the minitocs.
If the optional argument is something invisible
(like~\verb|~|, \verb|\space| or \verb|\quad|), the result will be strange
but logically correct.
\begin{table*}[tp]
\changeskips
\caption{Commands to add an entry in the table of contents for
a starred chapter, section or part.}\label{t+mtcadd}
\centering
\ifBT
\begin{tabular}{ll}
\toprule
\textbf{Level}&%
\multicolumn{1}{c}{\textbf{With title}}\\
\midrule
chapter&\verb|\mtcaddchapter[|\<title>\verb|]|\\
section&\verb|\mtcaddsection[|\<title>\verb|]|\\
part&\verb|\mtcaddpart[|\<title>\verb|]|\\
\bottomrule
\end{tabular}
\else
\begin{tabular}{ll}
\thickline
\textbf{Level}&%
\multicolumn{1}{c}{\textbf{With title}}\\
\hline
chapter&\verb|\mtcaddchapter[|\<title>\verb|]|\\
section&\verb|\mtcaddsection[|\<title>\verb|]|\\
part&\verb|\mtcaddpart[|\<title>\verb|]|\\
\thickline
\end{tabular}
\fi
\end{table*}


\subsection{Fonts and Titles}
\begin{SMOOTH}
The mini and partial tables and lists are typeset
in a \texttt{verse}-like environment, and
can be split over pages.
The mini-table of contents
is typeset in the \texttt{\bs mtcfont}
font, which is \verb|\small\rmfamily| by default. Section entries are typeset
in the \texttt{\bs mtcSfont} font, which is \verb|\small\bfseries| by default.
For subsections, subsubsections, paragraphs and subparagraphs, the
commands \verb|\mtcSSfont|, \verb|\mtcSSSfont|, \verb|\mtcPfont| and
\verb|\mtcSPfont| are available (by default, \verb|\small\rmfamily|)
to enable the use of various fonts. Mini lists of figures and tables are
typeset in the fonts \verb|\mlffont| and \verb|\mltfont|, which are
\verb|\small\rmfamily| by default.
Tables~\vref{t+mtc+f1} and~\vref{t+mtc+f2} summarize these
many commands\,\footnote{Thanks to \textsc{Stefan Ulrich}, who contributed these tables initialy.}.
\end{SMOOTH}
\begin{table*}[tp]
\changeskips   
\footnotesize
%\caption{Fonts for the \texttt{\bs part\ldots}, \texttt{\bs mini\ldots}
%and \texttt{\bs sect\ldots} commands.}\label{t+mtc+f1}
\caption{Fonts for the \texttt{\bs mini\ldots} commands and siblings.}\label{t+mtc+f1}
\centering
\ifBT
\begin{tabular}{llll}   
\toprule
Command
    & \FontDefault{Font}{default setting}
        & \FontDefault{Title string}{default setting}
            & \FontDefault{Title font}{default setting} \\[1ex]
\midrule
\multicolumn{4}{l}{\Strut For the \V{\part...} commands:}\\[1ex]
\V\parttoc
    & \FontChapSec{\V\ptcfont}{\V\normalsize\V\rmfamily}{\V\small\V\rmfamily}
         & \FontDefault{\V\ptctitle}{Table of Contents\Lang}
              & \FontChapSec{\V\ptifont}{\V\Huge\V\bfseries}{\V\Large\V\bfseries}\\[1ex]
\V\partlof
    & \FontChapSec{\V\plffont}{\V\normalsize\V\rmfamily}{\V\small\V\rmfamily}
         & \FontDefault{\V\plftitle}{List of Figures\Lang}
              & \FontChapSec{\V\ptifont}{\V\Huge\V\bfseries}{\V\Large\V\bfseries}\\[1ex]
\V\partlot
    & \FontChapSec{\V\pltfont}{\V\normalsize\V\rmfamily}{\V\small\V\rmfamily}
         & \FontDefault{\V\plttitle}{List of Tables\Lang}
              & \FontChapSec{\V\ptifont}{\V\Huge\V\bfseries}{\V\Large\V\bfseries}\\[1ex]
\midrule
\multicolumn{4}{l}{\Strut For the \V{\mini...} commands:\Chap}\\[1ex]
\V\minitoc
    & \FontDefault{\V\mtcfont}{\V\small\V\rmfamily}
            & \FontDefault{\V\mtctitle}{Contents\Lang}
                    & \FontDefault{\V\mtifont}{\V\large\V\bfseries}\\[1ex]
\V\minilof
    & \FontDefault{\V\mlffont}{\V\small\V\rmfamily}
            & \FontDefault{\V\mlftitle}{Figures\Lang}
                    & \FontDefault{\V\mtifont}{\V\large\V\bfseries}\\[1ex]
\V\minilot
    & \FontDefault{\V\mltfont}{\V\small\V\rmfamily}
            & \FontDefault{\V\plttitle}{Tables\Lang}
                    & \FontDefault{\V\mtifont}{\V\large\V\bfseries}\\[1ex]
\midrule
\multicolumn{4}{l}{\Strut For the \V{\sect...} commands:\Sec}\\[1ex]
\V\secttoc
    & \FontDefault{\V\stcfont}{\V\small\V\rmfamily}
            & \FontDefault{\V\stctitle}{Contents\Lang}
                    & \FontDefault{\V\stifont}{\V\Large\V\bfseries}\\[1ex]
\V\sectlof
    & \FontDefault{\V\slffont}{\V\small\V\rmfamily}
            & \FontDefault{\V\mlftitle}{Figures\Lang}
                    & \FontDefault{\V\stifont}{\V\Large\V\bfseries}\\[1ex]
\V\sectlot
    & \FontDefault{\V\sltfont}{\V\small\V\rmfamily}
            & \FontDefault{\V\plttitle}{Tables\Lang}
                    & \FontDefault{\V\stifont}{\V\Large\V\bfseries}\\[1ex]
\bottomrule
\multicolumn{4}{l}{\Chap for document classes with
     \V{\chapter} level (e.g. \V{book}, \V{report})}\\
\multicolumn{4}{l}{\Sec for document classes with
     no \V{\chapter} level (e.g. \V{article})}\\
\multicolumn{4}{l}{\Lang default for english;
     changed by the language definition files or
     \V\renewcommand}\\
\multicolumn{4}{l}{All these fonts use \V\rmfamily and \V\upshape, and \V\mdseries by default}
\end{tabular}
\else
\begin{tabular}{llll}   
\thickline
Command
    & \FontDefault{Font}{default setting}
        & \FontDefault{Title string}{default setting}
            & \FontDefault{Title font}{default setting} \\[1ex]
\hline
\multicolumn{4}{l}{\Strut For the \V{\part...} commands:}\\[1ex]
\V\parttoc
    & \FontChapSec{\V\ptcfont}{\V\normalsize\V\rmfamily}{\V\small\V\rmfamily}
         & \FontDefault{\V\ptctitle}{Table of Contents\Lang}
              & \FontChapSec{\V\ptifont}{\V\Huge\V\bfseries}{\V\Large\V\bfseries}\\[1ex]
\V\partlof
    & \FontChapSec{\V\plffont}{\V\normalsize\V\rmfamily}{\V\small\V\rmfamily}
         & \FontDefault{\V\plftitle}{List of Figures\Lang}
              & \FontChapSec{\V\ptifont}{\V\Huge\V\bfseries}{\V\Large\V\bfseries}\\[1ex]
\V\partlot
    & \FontChapSec{\V\pltfont}{\V\normalsize\V\rmfamily}{\V\small\V\rmfamily}
         & \FontDefault{\V\plttitle}{List of Tables\Lang}
              & \FontChapSec{\V\ptifont}{\V\Huge\V\bfseries}{\V\Large\V\bfseries}\\[1ex]
\hline
\multicolumn{4}{l}{\Strut For the \V{\mini...} commands:\Chap}\\[1ex]
\V\minitoc
    & \FontDefault{\V\mtcfont}{\V\small\V\rmfamily}
            & \FontDefault{\V\mtctitle}{Contents\Lang}
                    & \FontDefault{\V\mtifont}{\V\large\V\bfseries}\\[1ex]
\V\minilof
    & \FontDefault{\V\mlffont}{\V\small\V\rmfamily}
            & \FontDefault{\V\mlftitle}{Figures\Lang}
                    & \FontDefault{\V\mtifont}{\V\large\V\bfseries}\\[1ex]
\V\minilot
    & \FontDefault{\V\mltfont}{\V\small\V\rmfamily}
            & \FontDefault{\V\plttitle}{Tables\Lang}
                    & \FontDefault{\V\mtifont}{\V\large\V\bfseries}\\[1ex]
\hline                    
\multicolumn{4}{l}{\Strut For the \V{\sect...} commands:\Sec}\\[1ex]
\V\secttoc
    & \FontDefault{\V\stcfont}{\V\small\V\rmfamily}
            & \FontDefault{\V\stctitle}{Contents\Lang}
                    & \FontDefault{\V\stifont}{\V\Large\V\bfseries}\\[1ex]
\V\sectlof
    & \FontDefault{\V\slffont}{\V\small\V\rmfamily}
            & \FontDefault{\V\mlftitle}{Figures\Lang}
                    & \FontDefault{\V\stifont}{\V\Large\V\bfseries}\\[1ex]
\V\sectlot
    & \FontDefault{\V\sltfont}{\V\small\V\rmfamily}
            & \FontDefault{\V\plttitle}{Tables\Lang}
                    & \FontDefault{\V\stifont}{\V\Large\V\bfseries}\\[1ex]
\thickline
\multicolumn{4}{l}{\Chap for document classes with
     \V{\chapter} level (e.g. \V{book}, \V{report})}\\
\multicolumn{4}{l}{\Sec for document classes with
     no \V{\chapter} level (e.g. \V{article})}\\
\multicolumn{4}{l}{\Lang default for english;
     changed by the language definition files or
     \V\renewcommand}\\
\multicolumn{4}{l}{All these fonts use \V\rmfamily, \V\upshape, and \V\mdseries{} by default}
\end{tabular}
\fi
\end{table*}
\begin{table*}[tp]
\changeskips
\small
\caption{Fonts for the table entries.}\label{t+mtc+f2}
\centering
\ifBT
\begin{tabular}{lll}
\toprule
Level & Font & default setting \\
\midrule
\multicolumn{3}{l}{\Strutt For the \V{\parttoc} entries:}\\
\Strut
Chapter\Chap
     & \V\ptcCfont\Chap
         & \V\normalsize\V\bfseries\Chap \\
Section         
     & \V\ptcSfont
         & \begin{tabular}[t]{@{}l}\V\normalsize\V\rmfamily\Chap \\
                                   \V\small\V\bfseries\Sec \end{tabular}\\
Subsection
        & \V\ptcSSfont
            & \emph{(like \V\ptcfont)} \\
Subsubsection
        & \V\ptcSSfont
            & \emph{(like \V\ptcfont)} \\
Paragraph
        & \V\ptcPfont
            & \emph{(like \V\ptcfont)} \\
Subparagraph
        & \V\ptcSPfont
            & \emph{(like \V\ptcfont)} \\[1ex]
\midrule
\multicolumn{3}{l}{\Strutt For the \V{\minitoc} entries:\Chap}\\
\Strut
Section         
    & \V\mtcSfont
        & \V\small\V\bfseries\\
Subsection
    & \V\mtcSSfont
        & \emph{(like \V\mtcfont)} \\
Subsubsection
    & \V\mtcSSfont
        & \emph{(like \V\mtcfont)} \\
Paragraph
    & \V\mtcPfont
        & \emph{(like \V\mtcfont)} \\
Subparagraph
    & \V\mtcSPfont
        & \emph{(like \V\mtcfont)} \\[1ex]
\midrule
\multicolumn{3}{l}{\Strutt For the \V{\secttoc} entries:\Sec}\\
\Strut
Subsection
    & \V\stcSSfont
        & \V\normalsize\V\bfseries\\
Subsubsection
    & \V\stcSSfont
        & \emph{(like \V\stcfont)} \\
Paragraph
    & \V\stcPfont
        & \emph{(like \V\stcfont)} \\
Subparagraph
    & \V\stcSPfont
        & \emph{(like \V\stcfont)} \\[1ex]
\bottomrule
\multicolumn{3}{l}{\Chap for document classes with \V{\chapter}
     level (e.g. \V{book}, \V{report})}\\
\multicolumn{3}{l}{\Sec for document classes with no \V{\chapter}
     level (e.g. \V{article})}\\
\end{tabular}
\else
\begin{tabular}{lll}
\thickline
Level & Font & default setting \\
\hline
\multicolumn{3}{l}{\Strutt For the \V{\parttoc} entries:}\\
\Strut
Chapter\Chap
     & \V\ptcCfont\Chap
         & \V\normalsize\V\bfseries\Chap \\
Section         
     & \V\ptcSfont
         & \begin{tabular}[t]{@{}l}\V\normalsize\V\rmfamily\Chap \\
                                   \V\small\V\bfseries\Sec \end{tabular}\\
Subsection
        & \V\ptcSSfont
            & \emph{(like \V\ptcfont)} \\
Subsubsection
        & \V\ptcSSfont
            & \emph{(like \V\ptcfont)} \\
Paragraph
        & \V\ptcPfont
            & \emph{(like \V\ptcfont)} \\
Subparagraph
        & \V\ptcSPfont
            & \emph{(like \V\ptcfont)} \\[1ex]
\hline
\multicolumn{3}{l}{\Strutt For the \V{\minitoc} entries:\Chap}\\
\Strut
Section         
    & \V\mtcSfont
        & \V\small\V\bfseries\\
Subsection
    & \V\mtcSSfont
        & \emph{(like \V\mtcfont)} \\
Subsubsection
    & \V\mtcSSfont
        & \emph{(like \V\mtcfont)} \\
Paragraph
    & \V\mtcPfont
        & \emph{(like \V\mtcfont)} \\
Subparagraph
    & \V\mtcSPfont
        & \emph{(like \V\mtcfont)} \\[1ex]
\hline        
\multicolumn{3}{l}{\Strutt For the \V{\secttoc} entries:\Sec}\\
\Strut
Subsection
    & \V\stcSSfont
        & \V\normalsize\V\bfseries\\
Subsubsection
    & \V\stcSSfont
        & \emph{(like \V\stcfont)} \\
Paragraph
    & \V\stcPfont
        & \emph{(like \V\stcfont)} \\
Subparagraph
    & \V\stcSPfont
        & \emph{(like \V\stcfont)} \\[1ex]
\thickline
\multicolumn{3}{l}{\Chap for document classes with \V{\chapter}
     level (e.g. \V{book}, \V{report})}\\
\multicolumn{3}{l}{\Sec for document classes with no \V{\chapter}
     level (e.g. \V{article})}\\
\end{tabular}
\fi
\end{table*}

\begin{SMOOTH}
Titles are typeset in the \texttt{\bs mtifont} (\verb|\large\bfseries| by
default) font and the text strings of the titles are defined by
\texttt{\bs mtctitle}, \texttt{\bs mlftitle} and \texttt{\bs mlttitle}, which
are the strings ``Contents'', ``Figures'' and ``Tables'' by default.
These commands should be redefined by \texttt{\bs renewcommand} for
languages other than english. The language option files like
\texttt{french.mld} and \texttt{english.mld}\,\footnote{The suffix
\texttt{.mld} means ``minitoc language definition (file)''.}
(and others\,\footnote{Most of the strings defined in
             these language option files were taken from the
             superb \texttt{babel} package by \textsc{Johannes Braams},
             some were adapted, others were made available by gentle users
             or taken from specific packages, like Arab\TeX{},
	     Montex (mongol), or \texttt{vietnam.sty}, or even found by searching
	     on the Web (\texttt{japanese.mld}).
             Other languages are welcome.\label{fo+lang}},
	     more than fifty today%
) are available.
You can easily prepare a similar file for a preferred language.
You can change the language of these titles by using the
\texttt{\bs mtcselectlanguage\{}\emph{language}\texttt{\}} macro.
\end{SMOOTH}
\begin{table*}[p]
\ifDP\begin{fullpage}\fi
\changeskips
\caption{Available languages}
%\ifMC % v40 removes this test
\begin{center}
\begin{minipage}{\textwidth}\raggedright\small
\begin{multicols}{3}
\begin{enumerate}
\item afrikaan (afrikaans)
\item arab (arabic)\,$^{a,c}$
\item armenian
\item bahasa
\item bangla
\item basque
\item bicig\,$^c$
\item brazil
\item breton
\item bulgarian
\item buryat
\item catalan
\item croatian
\item czech
\item danish
\item dutch
\item english (american, canadian)
\item esperant (esperanto)
\item estonian
\item ethiopia (ethiopian)
\item finnish
\item french (frenchb, frenchle, frenchpro, francais, acadien, canadien)
\item galician
\item german (austrian)
\item germanb
\item greek\,$^c$
\item hebrew\,$^c$
\item icelandic
\item interlingua
\item irish
\item italian
\item japanese\,$^c$
\item latin
\item lithuanian
\item lsorbian
\item magyar (hungarian)
\item mongol\,$^c$
\item ngermanb (ngerman, naustrian)
\item norsk
\item nynorsk
\item polish
\item portuges
\item romanian
\item russian\,$^{b,c}$
\item russianb\,$^{b,c}$
\item russianc\,$^{b,c}$
\item samin
\item scottish
\item serbian
\item slovak
\item slovene
\item spanish (castillan)
\item swedish
\item turkish
\item ukraineb\,$^{b,c}$
\item usorbian
\item vietnam (vietnamese)\,$^{b,c}$
\item welsh
\end{enumerate}
\end{multicols}
\footnotetext{$^a$~The \texttt{arab(ic)}
language requires the use of Arab\TeX.}
\footnotetext{$^b$~%
The \texttt{russian} language is not yet supported by \texttt{babel},
but \texttt{russianb} is supported if you
use babel-3.6 or higher; \texttt{russianc} is an extra.}
\footnotetext{$^c$~Some languages may require specific fonts.}
\end{minipage}
\end{center}
% v40 removes this (multicol is a required package, and this
% table is too cumbersome to update).
%v40 \else
%v40 \begin{center}
%v40 \begin{tabular}{lclcl}
%v40 afrikaan (afrikaans)&\qquad&arab (arabic)&\qquad&armenian\\
%v40 bahasa&&bangla&&basque\\
%v40 bicig&&brazil&&breton\\
%v40 bulgarian&&buryat&&catalan\\
%v40 croatian&&czech&&danish\\
%v40 dutch&&english (american)&&esperant (esperanto)\\
%v40 estonian&&ethiopia (ethiopian)&&finnish\\
%v40 french, frenchb, \ldots (francais)&&galician&&german (austrian)\\
%v40 germanb&&greek&&hebrew\\
%v40 icelandic&&interlingua&&irish\\
%v40 italian&&latin&&lithuanian\\
%v40 lsorbian&&magyar (hungarian)&&mongol\\
%v40 ngerman&&norsk&&nynorsk\\
%v40 polish&&portuges&&romanian\\
%v40 russian$^a$&&russianb&&russianc\\
%v40 samin&&scottish&&serbian\\
%v40 slovak&&slovene&&spanish\\
%v40 swedish&&turkish&&ukraineb\\
%v40 usorbian&&vietnam (vietnamese)&&welsh\\
%v40 \multicolumn{5}{l}{$^a$The \texttt{russian} language is not yet supported,}\\
%v40 \multicolumn{5}{l}{but \texttt{russianb} is supported if you
%v40 use babel-3.6 or higher. \texttt{russianc} is an extra.}\\
%v40 \multicolumn{5}{l}{$^b$The \texttt{arab(ic)} language requires the
%v40 use of Arab\TeX.}\\
%v40 \multicolumn{5}{l}{Some languages may require specific fonts.}
%v40 \end{tabular}
%v40 \end{center}
%v40 \fi
\ifDP\end{fullpage}\fi
\end{table*}

The partial table of contents is typeset in the \texttt{\bs ptcfont}
font, which is defined as \verb|\normalsize\rmfamily| by default.
Chapter entries are typeset in the \texttt{\bs ptcCfont} font,
which is \verb|\normalsize\bfseries| by default.
Section entries are typeset in the \texttt{\bs ptcSfont} font,
which is \verb|\normalsize\rmfamily| by default.
For subsections, subsubsections, paragraphs and subparagraphs, the
commands \verb|\ptcSSfont|, \verb|\ptcSSSfont|, \verb|\ptcPfont| and
\verb|\ptcSPfont| are available (by default, \verb|\normalsize\rmfamily|) if you
want to use various fonts. Partial lists of figures and tables are
typeset in the fonts \verb|\mlffont| and \verb|\mltfont|, which are
\verb|\normalsize\rmfamily| by default.

Titles are typeset in the \texttt{\bs ptifont} (\verb|\Huge\bfseries| by
default) font and the text strings of the titles are defined by
\texttt{\bs ptctitle}, \texttt{\bs plftitle} and \texttt{\bs plttitle}, which
are the strings ``Table of Contents'',
``List of Figures'' and ``List of Tables'' by default.
These commands should be redefined by \texttt{\bs renewcommand} for
languages other than english.
The language option files like
\texttt{french.mld} and \texttt{english.mld} (and many others, see
footnote~\vref{fo+lang}) are available.
You can easily prepare a similar file for a preferred language.
You can change the language of these titles by using the
\texttt{\bs mtcselectlanguage\{}\emph{language}\texttt{\}} macro.

\begin{SMOOTH}
The section-level table of contents
is typeset in the \texttt{\bs stcfont}
font, which is defined as \verb|\normalsize\rmfamily| by default.
Subsection entries are typeset in the \texttt{\bs stcSSfont} font,
which is \verb|\normalsize\bfseries| by default.
Subsubsection entries are typeset in the \texttt{\bs stcSSSfont} font,
which is \verb|\normalsize\rmfamily| by default.
For subsubsections, paragraphs and subparagraphs, the
commands \verb|\stcSSSfont|, \verb|\stcPfont| and
\verb|\stcSPfont| are available (by default, \verb|\normalsize\rmfamily|) if you
want to use various fonts. Partial lists of figures and tables are
typeset in the fonts \verb|\slffont| and \verb|\sltfont|, which are
defined as \verb|\normalsize\rmfamily| by default.

Titles are typeset in the \texttt{\bs stifont} (\verb|\normalsize\bfseries| by
default) font and the text strings of the titles are defined by
\texttt{\bs stctitle}, \texttt{\bs slftitle} and \texttt{\bs slttitle}, which
are the strings ``Contents'',
``Figures'' and ``Tables'' by default.
These commands should be redefined by \texttt{\bs renewcommand} for
languages other than english.
The language option files like
\texttt{french.mld} and \texttt{english.mld} (and some others, see
footnote~\vref{fo+lang}) are available.
You can easily prepare a similar style for a preferred language.
You can change the language of these titles by using the
\texttt{\bs mtcselectlanguage\{}\emph{language}\texttt{\}} macro.
\end{SMOOTH}

By default, titles are on the left. The commands \verb|\dominitoc|,
\verb|\dominilof| and \verb|\dominilot| accept an optional argument
to change the default position of the
corresponding title: \texttt{[l]} for left (default), \texttt{[c]} for center,
\texttt{[r]} for right, or \texttt{[e]} (or \texttt{[n]}) for empty (no title).
The change is global for all the document.
%
If you want to change the position of the title for only one minitoc
(or minilof or minilof), just use such an optional argument with the
command \verb|\minitoc| (or \verb|\minilof| or \verb|\minilot|).

By default, titles are on the left. The commands \verb|\doparttoc|,
\verb|\dopartlof| and \verb|\dopartlot| accept an optional argument
to change the default position of the
corresponding title: \texttt{[l]} for left (default), \texttt{[c]} for center,
\texttt{[r]} for right, or \texttt{[e]} (or \texttt{[n]})for empty (no title).
The change is global for all the document.
%
If you want to change the position of the title for only one parttoc
(or partlof or partlof), just use such an optional argument with the
command \verb|\parttoc| (or \verb|\partlof| or \verb|\partlot|).

By default, titles are on the left. The commands \verb|\dosecttoc|,
\verb|\dosectlof| and \verb|\dosectlot| accept an optional argument
to change the default position of the
corresponding title: \texttt{[l]} for left (default), \texttt{[c]} for center,
\texttt{[r]} for right, or \texttt{[e]} (or \texttt{[n]}) for empty (no title).
The change is global for all the document.
%
If you want to change the position of the title for only one secttoc
(or sectlof or sectlof), just use such an optional argument with the
command \verb|\secttoc| (or \verb|\sectlof| or \verb|\sectlot|).

To summarize: %by Stefan Ulrich
       by default, all titles are on the left. However, each one of the
       following commands:
       \par\begin{tabular}{@{}l}
       \verb|\doparttoc|, \verb|\dopartlof|, \verb|\dopartlot|,\\
       \verb|\dominitoc|, \verb|\dominilof|, \verb|\dominilot|,\\
       \verb|\dosecttoc|, \verb|\dosectlof|, \verb|\dosectlot|,\\
       \verb|\parttoc|, \verb|\partlof|, \verb|\partlot|,\\
       \verb|\minitoc|, \verb|\minilof|, \verb|\minilot|,\\
       \verb|\secttoc|, \verb|\sectlof|, \verb|\sectlot|
       \end{tabular}\par\noindent
       accepts an optional argument to change the positioning of the
       title: \texttt{[l]} for left (default), \texttt{[c]} for center,
       \texttt{[r]} for right, \texttt{[e]} or \texttt{[n]} for empty (no
       title).  The arguments for the \verb|\do...| commands change the
       positioning of all corresponding titles of the document.
       For the other commands, the options only change the
       formatting of the current heading.

\begin{SMOOTH}
With the commands \verb|\tightmtctrue| (or the \texttt{tight}
package option) and \verb|\tightmtcfalse| (or the \texttt{loose}
package option, which is the default), the minitocs (minilofs,
etc.) will have less (tight) or more (loose) space between
contents lines.
\end{SMOOTH}

The mini-tables and lists, as partial and section-level tables and lists,
are using some space on the first pages on each chapter, part or section,
thus the page numbers are altered. After the first \LaTeX\ run, the
mini-tables and lists, partial tables and lists
and section-level tables and lists
will be empty (in fact skipped since version \#35);
after the second run, they appear (if not empty),
but because they modify the page numbering, page numbers
are wrong; after the third \LaTeX\ run, the mini, partial and section-level
tables and lists should be correct (see figure~\vref{f+mtc+3comp}).

\subsection{Special Features}
\subsubsection{Horizontal Rules}
By default, most of minitocs and siblings have horizontal rules after their
titles and at their ends. The exception is the ``parttoc'' in a \texttt{book}- or
\texttt{report}-like document (i.e. when \verb|\chapter| is defined). To activate
or deactivate these rules, the following commands are available:
\begin{center}\small
\ifBT
\begin{tabular}{llllccc}
\toprule
&&&&\multicolumn{3}{c}{defaults for}\\
&rules in&&no rules in&\ttfamily book&\ttfamily report&\ttfamily article\\
\midrule
\verb|\ptcrule|&parttocs&\verb|\noptcrule|&parttocs&\textbf{N}&%
\textbf{N}&\textbf{Y}\\
\verb|\mtcrule|&minitocs&\verb|\nomtcrule|&minitocs&\textbf{Y}&%
\textbf{Y}&\textbf{N-A}\\
\verb|\stcrule|&secttocs&\verb|\nostcrule|&secttocs%
&\textbf{N-A}&\textbf{N-A}&\textbf{Y}\\
\bottomrule
\end{tabular}
\else
\begin{tabular}{llllccc}
\thickline
&&&&\multicolumn{3}{c}{defaults for}\\
&rules in&&no rules in&\ttfamily book&\ttfamily report&\ttfamily article\\
\hline
\verb|\ptcrule|&parttocs&\verb|\noptcrule|&parttocs&\textbf{N}&%
\textbf{N}&\textbf{Y}\\
\verb|\mtcrule|&minitocs&\verb|\nomtcrule|&minitocs&\textbf{Y}&%
\textbf{Y}&\textbf{N-A}\\
\verb|\stcrule|&secttocs&\verb|\nostcrule|&secttocs%
&\textbf{N-A}&\textbf{N-A}&\textbf{Y}\\
\thickline
\end{tabular}
\fi
\end{center}
\subsubsection{Page Numbers, Leaders}
By default, the page numbers are listed in each minitoc, minilof, etc.
Some authors want only the section titles (with the section numbers),
but not the page numbers. Hence the obvious declarations below are available:
\begin{quote}\ttfamily%
\ifBT
\begin{tabular}{lllcl}
\toprule
\Strut\textbf{Type}&&{\vphantom{$P^2_3$}\hfill\bfseries Page numbers (Default)\hfill}&&%
{\hfill\bfseries No page numbers\hfill}\\
\midrule
\Strut\rmfamily minitoc&&\bs mtcpagenumbers&\qquad&\bs nomtcpagenumbers\\
\Strut\rmfamily secttoc&&\bs stcpagenumbers&\qquad&\bs nostcpagenumbers\\
\Strut\rmfamily parttoc&&\bs ptcpagenumbers&\qquad&\bs noptcpagenumbers\\
\Strut\rmfamily minilof&&\bs mlfpagenumbers&\qquad&\bs nomlfpagenumbers\\
\Strut\rmfamily sectlof&&\bs slfpagenumbers&\qquad&\bs noslfpagenumbers\\
\Strut\rmfamily partlof&&\bs plfpagenumbers&\qquad&\bs noplfpagenumbers\\
\Strut\rmfamily minilot&&\bs mltpagenumbers&\qquad&\bs nomltpagenumbers\\
\Strut\rmfamily sectlot&&\bs sltpagenumbers&\qquad&\bs nosltpagenumbers\\
\Strut\rmfamily partlot&&\bs pltpagenumbers&\qquad&\bs nopltpagenumbers\\
\bottomrule
\end{tabular}%
\else
\begin{tabular}{lllcl}
\thickline
\Strut\textbf{Type}&&{\vphantom{$P^2_3$}\hfill\bfseries Page numbers (Default)\hfill}&&%
{\hfill\bfseries No page numbers\hfill}\\
\hline
\Strut\rmfamily minitoc&&\bs mtcpagenumbers&\qquad&\bs nomtcpagenumbers\\
\Strut\rmfamily secttoc&&\bs stcpagenumbers&\qquad&\bs nostcpagenumbers\\
\Strut\rmfamily parttoc&&\bs ptcpagenumbers&\qquad&\bs noptcpagenumbers\\
\Strut\rmfamily minilof&&\bs mlfpagenumbers&\qquad&\bs nomlfpagenumbers\\
\Strut\rmfamily sectlof&&\bs slfpagenumbers&\qquad&\bs noslfpagenumbers\\
\Strut\rmfamily partlof&&\bs plfpagenumbers&\qquad&\bs noplfpagenumbers\\
\Strut\rmfamily minilot&&\bs mltpagenumbers&\qquad&\bs nomltpagenumbers\\
\Strut\rmfamily sectlot&&\bs sltpagenumbers&\qquad&\bs nosltpagenumbers\\
\Strut\rmfamily partlot&&\bs pltpagenumbers&\qquad&\bs nopltpagenumbers\\
\thickline
\end{tabular}%
\fi
\end{quote}

In the minitocs and siblings, they are leaders of dots between
the section titles and the page numbers. The \texttt{undotted}
package option removes these dots. The \texttt{dotted} package option
is the default.

\subsubsection{Features for \texttt{parttoc}-s}
\enlargethispage*{\baselineskip}
By default, a \texttt{parttoc} (or a \texttt{partlof} or a
\texttt{parlot}) is preceeded and followed by a
\verb|\cleardoublepage|, and has a page style of
\texttt{empty}. Since version~\#32, you can modify this
behaviour by redefining the following commands, whose meaning
is obvious:
\begin{quote}\ttfamily%
\ifBT
\begin{tabular}{lllcl}
\toprule
\Strut\textbf{Type}&&{\vphantom{$P^2_3$}\bfseries Command \hfill}&&%
{\bfseries Default \hfill}\\
\midrule
\Strut\rmfamily parttoc&&\bs beforeparttoc&\qquad&\bs cleardoublepage\\
\Strut\rmfamily parttoc&&\bs afterparttoc&\qquad&\bs cleardoublepage\\
\Strut\rmfamily parttoc&&\bs thispageparttocstyle&\qquad&\bs thispagestyle\{empty\}\\
\Strut\rmfamily partlof&&\bs beforepartlof&\qquad&\bs cleardoublepage\\
\Strut\rmfamily partlof&&\bs afterpartlof&\qquad&\bs cleardoublepage\\
\Strut\rmfamily partlof&&\bs thispagepartlofstyle&\qquad&\bs thispagestyle\{empty\}\\
\Strut\rmfamily partlot&&\bs beforepartlot&\qquad&\bs cleardoublepage\\
\Strut\rmfamily partlot&&\bs afterpartlot&\qquad&\bs cleardoublepage\\
\Strut\rmfamily partlot&&\bs thispagepartlotstyle&\qquad&\bs thispagestyle\{empty\}\\
\bottomrule
\end{tabular}%
\else
\begin{tabular}{lllcl}
\thickline
\Strut\textbf{Type}&&{\vphantom{$P^2_3$}\bfseries Command \hfill}&&%
{\bfseries Default \hfill}\\\hline
\Strut\rmfamily parttoc&&\bs beforeparttoc&\qquad&\bs cleardoublepage\\
\Strut\rmfamily parttoc&&\bs afterparttoc&\qquad&\bs cleardoublepage\\
\Strut\rmfamily parttoc&&\bs thispageparttocstyle&\qquad&\bs thispagestyle\{empty\}\\
\Strut\rmfamily partlof&&\bs beforepartlof&\qquad&\bs cleardoublepage\\
\Strut\rmfamily partlof&&\bs afterpartlof&\qquad&\bs cleardoublepage\\
\Strut\rmfamily partlof&&\bs thispagepartlofstyle&\qquad&\bs thispagestyle\{empty\}\\
\Strut\rmfamily partlot&&\bs beforepartlot&\qquad&\bs cleardoublepage\\
\Strut\rmfamily partlot&&\bs afterpartlot&\qquad&\bs cleardoublepage\\
\Strut\rmfamily partlot&&\bs thispagepartlotstyle&\qquad&\bs thispagestyle\{empty\}\\
\thickline
\end{tabular}%
\fi\end{quote}

\subsubsection{The ``Chapter 0'' Problem (solved)}
Some documents do not begin with chapter number one, but with chapter
number zero (or even a weirder number). To make the \texttt{minitoc}
package work with such documents, you must insert the command
\begin{quote}
\ttfamily\bs firstchapteris\{\<N>\}
\end{quote}
before the \verb|\dominitoc| and analogous commands. \<N> is the number
of the first chapter. This command \emph{does not}
modify the numbering of chapters, you must use a
\verb|\addtocounter{chapter}{-1}| command to get a first chapter
numbered~0. The \verb|\firstpartis| and \verb|\firstsectionis|
commands are analogous for parts and sections with a non standard numbering.

Since\virage{} version \#17c, these commands are obsolete, as this
problem has been solved. Thus they just produce a harmless warning.

%\subsubsection[Special Entries for TOC, LOF, LOT, Bibliography and Index]%
%{Special Entries for TOC, LOF, LOT, Bibliography and Index\,\footnote{\textbf{Warning:} these features are still experimental.}}
\subsubsection{Special Entries for TOC, LOF, LOT, Bibliography and Index}%
\label{special.entries}
If{\Virage} you want to add entries in the Table of Contents for
objects like the Table of Contents itself, the List of
Figures, the List of Tables, the Bibliography or the Index,
you should use the \texttt{tocbibind} package by \textsc{Peter~R.~Wilson}
(this package is available from the CTAN archives).

But these entries are considered as chapters (or sections in
an article class document) when the \texttt{.toc} file is
scanned to prepare the minitocs (the \verb|\dominitoc| phase).

So you must add an \verb|\mtcaddchapter| command, \emph{without
argument}, after the commands \verb|\tableofcontents|,
\verb|\listoffigures| and \verb|\listoftables|.

\begin{SMOOTH}
For the bibliography, you should add a \verb|\adjustmtc| command
after the \verb|\bibliography| command.
\end{SMOOTH}

For the index, it is a bit more complicated, you add the
following commands just after the \verb|\printindex| command:
\begin{quote}
\verb|\addcontentsline{lof}{xchapter}{}|\\
\verb|\addcontentsline{lot}{xchapter}{}|\\
\verb|\mtcaddchapter|
\end{quote}

Of course, in documents were the TOC, LOF, LOT, bibliography
and/or index are processed as starred sections, you must
modify these additions to use section level commands.

And proceed with care, tracking in the \texttt{.log} file the
insertion of \texttt{.mtcN} files (and siblings). They are
some examples in the \texttt{add.tex} file distributed with
\texttt{minitoc}.

\subsubsection{The \texttt{hints} option}
This option detects the loading of some packages known to interact with \texttt{minitoc}. This list of interacting
packages is not closed. If a known package is loaded, this option writes some hints in the \texttt{.log} file and
emits a warning. The hints written in the \texttt{.log} file may suggest you to consult the present document or
the \texttt{minitoc.bug} file. \emph{This option is still experimental; you advice is welcome.}

\subsubsection{The \texttt{notoccite} option}
This option loads the \texttt{notoccite} package (by \textsc{Donald Arseneau}). It avoids problems with \V\cite commands in
sectionning commands or captions: if you then run \BibTeX{} using the \texttt{unsrt} (unsorted) style, they get numbered starting
from 1, not the number they should have in the main text. The \texttt{notoccite} package prevents this. As
\texttt{minitoc} prints TOCs, it is subject to the same problem.

\subsection{Usage with MS-DOS}\label{MS-DOS}
Under\Virage{} MS-DOS (and other PC oriented operating systems),
the filename extensions are limited to 3 characters.
The \texttt{minitoc} package determines dynamically the type of
extensions available and will use it.
All other modifications will be done automatically.
The \texttt{.mtc\<N>}
suffix will become \texttt{.M\<N>}, where \<N> is the absolute chapter
number.
The suffixes \verb|.mlf|\<N> and \verb|.mlt|\<N> become
\verb|.F|\<N> and \verb|.T|\<N>.
The \texttt{.ptc\<N>}
suffix will become \texttt{.P\<N>}, where \<N> is the part
number.
The suffixes \verb|.plf|\<N> and \verb|.plt|\<N> become
\verb|.G|\<N> and \verb|.U|\<N>.
The \texttt{.stc\<N>}
suffix will become \texttt{.S\<N>}, where \<N> is the absolute section
number.
The suffixes \verb|.slf|\<N> and \verb|.slt|\<N> become
\verb|.H|\<N> and \verb|.V|\<N>.
Of course, this implies a limit of 99~chapters in a
document, but do you really need so many chapters (or sections in an
article)? The limit of 99~parts does not seem too serious for
most documents.
See also section~\vref{.8+3}).

\clearpage
\begin{SMOOTH}
\section{The \texttt{mtcoff} package}\label{o+mtcoff}
When a document has been prepared with the \texttt{minitoc} package,
it contains many \texttt{minitoc} specific commands, most of them being
\verb|\dominitoc|,
\verb|\faketableofcontents|, and \verb|\minitoc| commands (and their
equivalents for lists of figures and tables).
If you want to typeset
this document without any mini-table, you has just to replace the
\texttt{minitoc} package by the \texttt{mtcoff} package (without option), and all these
commands will be ignored. At least two \LaTeX\ runs will be necessary
to get a correct page numbering and correct cross references.
It also sanitizes the \texttt{.aux}, \texttt{.toc},
\texttt{.lof}, and \texttt{.lot} files from \texttt{minitoc} specific
spurious commands.
\end{SMOOTH}

\chapter{Frequently Asked Questions}\label{FAQ}
\minitoc
\mtcskip
\minilof
%%%%%%%%%%%%%%%%%% extracted from minitoc.bug
Here is a list of problems and frequently asked questions about
\texttt{minitoc.sty}. If the version has a number less than~40, please
upgrade to version~\#40.

%(1)
\section{How to avoid a page break near the rules before and after the minitoc?}
This problem seemed solved since version~\#8, but version~\#12
adds better fixes.

%(2)
\section{How about implementing others layouts for the minitoc?}
Suggestions are welcome.

%(3)
\section{\texttt{\bs\bs} in a contents line makes an error}
Use \verb|\protect\linebreak|.

%(4)
\section{Reordering chapters makes havoc}
\emph{If you reorder chapters, havoc follows\ldots\ minitocs
going in wrong chapters.}

The best way seems to make one run with the \texttt{mtcoff}
package replacing the \texttt{minitoc} package, then restore
the \texttt{minitoc} package and re-execute \LaTeX\ three times
(yes, it is time consuming\ldots). See
figure~\vref{f+mtc+3comp}.
Running with the \texttt{mtcoff} package ensures that auxiliary files
are cleared from ``spurious'' commands introduced by \texttt{minitoc}.
A more radical solution is to delete the files \texttt{.aux},
\texttt{.lof} and \texttt{.lot} relative to the document, then
re-execute \LaTeX\ three times.
\begin{figure}[tp]
\begin{center}\footnotesize
\def\NUM{$\left<N\right>$}
\setlength{\unitlength}{1mm}
%\froff%
\resizebox{1.0\textwidth}{!}{%
\begin{picture}(170,60)(-5,0)
\thicklines
%bo\^{\i}tes
%L1
\put(0,0){\line(1,0){30}}
\put(0,0){\line(0,1){50}}
\put(0,50){\line(1,0){30}}
\put(30,0){\line(0,1){50}}
%L2
\put(60,0){\line(1,0){30}}
\put(60,0){\line(0,1){50}}
\put(60,50){\line(1,0){30}}
\put(90,0){\line(0,1){50}}
%L3
\put(120,0){\line(1,0){30}}
\put(120,0){\line(0,1){50}}
\put(120,50){\line(1,0){30}}
\put(150,0){\line(0,1){50}}
% textes
% TOC
\put(15,45){\makebox(0,0){\texttt{\bs dominitoc\phantom{xxxxxx}}}}
\put(75,45){\makebox(0,0){\texttt{\bs dominitoc\phantom{xxxxxx}}}}
\put(135,45){\makebox(0,0){\texttt{\bs dominitoc\phantom{xxxxxx}}}}
% DOMINITOC
\put(15,35){\makebox(0,0){\texttt{\bs tableofcontents}}}
\put(75,35){\makebox(0,0){\texttt{\bs tableofcontents}}}
\put(135,35){\makebox(0,0){\texttt{\bs tableofcontents}}}
% MINITOC
\put(15,25){\makebox(0,0){\texttt{\bs minitoc\phantom{xxxxxxxx}}}}
\put(75,25){\makebox(0,0){\texttt{\bs minitoc\phantom{xxxxxxxx}}}}
\put(135,25){\makebox(0,0){\texttt{\bs minitoc\phantom{xxxxxxxx}}}}
%FLECHES
%TOC 1-2
\put(30,35){\vector(1,0){30}} %.toc A 1-2
\put(45,35){\line(0,1){10}}  %.toc B 1-2
\put(45,45){\vector(1,0){15}} %.toc C 1-2
%TOC 2-3
\put(90,35){\vector(1,0){30}} %.toc A 2-3
\put(105,35){\line(0,1){10}}  %.toc B 2-3
\put(105,45){\vector(1,0){15}} %.toc C 2-3
%MTC 2
\put(90,45){\line(1,-1){5}}
\put(95,40){\line(0,-1){4}}
\put(95,30){\line(0,1){4}}
\put(95,30){\vector(-1,-1){5}}
%MTC 3
\put(150,45){\line(1,-1){5}}
\put(155,40){\line(0,-1){10}}
\put(155,30){\vector(-1,-1){5}}
% Phases
\put(15,5){\makebox(0,0){\LaTeX\ (1)}}
\put(75,5){\makebox(0,0){\LaTeX\ (2)}}
\put(135,5){\makebox(0,0){\LaTeX\ (3)}}
%FICHIERS
\put(45,47){\makebox(0,10)[b]{\texttt{.toc}}}
\put(105,47){\makebox(0,10)[b]{\texttt{.toc}}}
%\put(105,20){\makebox(0,10)[b]{\texttt{.mtc\NUM}}}
\put(97,30){\makebox(10,0)[l]{\texttt{.mtc\NUM}}}
\put(157,30){\makebox(10,0)[l]{\texttt{.mtc\NUM}}}
%fleches remarques
\put(75,50){\vector(0,1){5}}
\put(135,50){\vector(0,1){5}}
\put(90,25){\vector(1,0){5}}
\put(150,25){\vector(1,0){5}}
%remarques
\put(75,60){\makebox(0,0){\bf(A)}}
\put(135,60){\makebox(0,0){\bf(C)}}
\put(92,20){\makebox(10,5)[lb]{\bf(B)}}
\put(152,20){\makebox(10,5)[lb]{\bf(D)}}
\end{picture}}
%\fron
\end{center}
\begin{flushleft}
\noindent\begin{minipage}{\textwidth}\footnotesize
\begin{itemize}\labelsep=1ex\itemindent=0pt
\item[(A)] \verb|\tableofcontents| produces a table of
contents, which is likely inaccurate.
\item[(B)] \verb|\minitoc| produces minitocs, which are likely inaccurate.
\item[(C)] \verb|\tableofcontents| produces a table of contents, which is accurate.
\item[(D)] \verb|\minitoc| produces minitocs, which are accurate.
\end{itemize}
\end{minipage}
\end{flushleft}
\caption{Three compilations for \texttt{minitoc}}\label{f+mtc+3comp}
\end{figure}

%(5)
\section{Extensions for the names of auxiliary files}%
\label{.8+3}
\emph{This package creates auxiliary files with extensions like \texttt{.mtc\<N>}.
Some operating systems allow only 3~letters extensions. What to do?}
No modification is needed: all became automatic since
version \#28! If you insist to use 3~characters extensions,
even on operating systems allowing more, just use the package
option \texttt{shortext}. Then you will get first the
auto-configuration messages, then a message saying that you
will use short extensions.

%(6)
\section{Playing with the chapter number}
Do not cheat with the ``\texttt{chapter}'' counter, i.e.~do not
write ugly things like
\begin{verse}
\verb|\setcounter{chapter}{6}|
\end{verse}
The mechanism
would break. It is better to add \texttt{\bs chapter} commands,
to create empty (but numbered in a legal way) chapters.
Since version~\#10, \texttt{minitoc.sty} works with appendices.
Version \#19 allows to begin with a chapter other that number~1.
And look at~``Special Entries for TOC, LOF, LOT, Bibliography and Index'', section~\vref{special.entries}.

%(7)
\section{Supported document classes}
      The \texttt{minitoc} package is restricted to document classes which define
      chapters in the standard way, like `\texttt{book}' and `\texttt{report}',
      or sections in the standard way, like `\texttt{article}'.
      There are ``parttocs'' if the document class defines the \verb|\part| command.

%(8)
\section{Compatibility with \LaTeX{} versions}
Some users have failed to make \texttt{minitoc} to work. They got a message like:
      \begin{verse}
      \verb|Undefined command ... \@inputcheck ...|
      \end{verse}
      or:
      \begin{verse}
      \verb|Undefined command ... \reset@font ...|
      \end{verse}
      The \verb|\reset@font| command has been added to \texttt{latex.tex}
      on 29~September 1991 and the \verb|\@inputcheck| command 
      on 18~March 1992 and this version of \texttt{latex.tex} has been
      released on~25 March 1992. If you get this message, you
      have an old version of \texttt{latex.tex}. Get a recent one from
      the archives and regenerate a \texttt{latex.fmt} format via \texttt{initex} (or your configuration tool).

%(9)
\section{Other mini tables}
Some demanding users want to have minilof, minilot and
minibbl. First, minibbl is another problem, strongly
related to the \BibTeX's dealing with \texttt{.aux} files. Look
at the \texttt{chapterbib}, \texttt{bibunits},
\texttt{multibib}, and \texttt{bibtopic} packages.
Version~\#13 has implemented basic minilofs and minilots.
Minibbls are not the aim of this package.

%(10)
\section{Why so many auxiliary files?}
This package creates a lot of auxiliary files and some users
have argued that it is too many. A deep redesign would be
necessary to avoid that. Using only one big auxiliary file
(or one for all minitocs, one for all minilofs, \ldots)
would make the reading of such file very slow, as it would
be read for each \texttt{\bs miniXXX} macro! 
Moreover, this would make the \texttt{checkfiles}
option impractical to implement.
Note that the many files \texttt{*.mtc*}, etc., may be
deleted after the \LaTeX{} run. They are rebuilt by the
\verb|\dominitoc| command (and siblings).
Moreover, since version \#35, empty minitocs (and co.) can
be automatically detected and skipped. It would not be
easy to do with one big auxiliary file. But, since version \#38,
\texttt{minitoc} is able to detect and skip empty minitoc files
(and co.) to avoid ugly titles with just two thin rules.

%(11)
\section{How to do minitocs (minilofs and minilots) at levels other than chapter?}
Here also, some redesign was needed. From version~\#15, there are parttocs, partlofs and
partlots for the part level in \texttt{book}-like and \texttt{article}-like documents,
secttocs, sectlofs and sectlots for the section level in \texttt{article}-like
documents. Note that you can not have minitocs features at chapter
and section level in the same document, because doing so would make
an unreadable monster. The user must choose the main class of
the document accordingly to the size of it (e.g. do not write an article
of more than 130~sections: this is a report, or even a book!).

\begin{center}\ttfamily
\ifBT
\begin{tabular}{lccc}
\toprule
&\Strut \bfseries part&\bfseries chapter&\bfseries section\vphantom{\Large Pj}\\
\midrule
\Strut book&$*$&$*$&\vphantom{\Large Pj}\\\midrule
\Strut report&$*$&$*$&\vphantom{\Large Pj}\\\midrule
\Strut article&$*$&&$*$\vphantom{\Large Pj}\\\bottomrule
\end{tabular}
\else
\begin{tabular}{lccc}
\thickline
&\Strut \bfseries part&\bfseries chapter&\bfseries section\vphantom{\Large Pj}\\
\hline
\Strut book&$*$&$*$&\vphantom{\Large Pj}\\\hline
\Strut report&$*$&$*$&\vphantom{\Large Pj}\\\hline
\Strut article&$*$&&$*$\vphantom{\Large Pj}\\\thickline
\end{tabular}
\fi
\end{center}

%(12)
\section{Compatibility with \LaTeX2.09}
The more recent version of \LaTeXe{} adds \verb|\protect| before
\verb|\contentsline| in the \texttt{.toc}, \texttt{.lof} and \texttt{.lof}
files. Minitoc version~\#17 attempts to be compatible with \LaTeXe{} and \LaTeX-2.09. This will be the \emph{last}
version usable with \LaTeX-2.09. Versions~\#18 and later are \LaTeXe{} specific, and no more compatible with
\LaTeX2.09, which is obsolete.

%(13)
\section{Documents resetting the chapter number at each part}
Since version \#23, \texttt{minitoc} works with document classes resetting
chapter (or section) number at each part.

%(14)
\section{The minitocs have too much spaced lines}
From version~\#29, you can have tight minitocs with the \texttt{tight} option.

%(15)
\section{The secttocs are wrong}
Secttocs did not work: corrected (\#38).

%(16)
\section{How to remove lines of dots?}
The lines of dots between section titles and page numbers are removed by the \texttt{undotted} option (\#29).

%(17)
\section{How to use the \texttt{hyperref} package with \texttt{minitoc}?}
Since version \#31, \texttt{minitoc} works with the \texttt{hyperref} package,
thanks to \textsc{Heiko Oberdiek} (\url{oberdiek@ruf.uni-freiburg.de}).
If you add the loading of the \texttt{hyperref} package to a document yet using \texttt{minitoc},
you will get error message about spurious closing braces. Just let finish the \LaTeX\ run,
then re-\LaTeX\ the document. There will be no problem if you remove the loading of
\texttt{hyperref} and add it again: the problem occurs only when upgrading from
\texttt{minitoc}~\#30 to \texttt{minitoc}~\#31 (or higher) with a document already processed and adding
\texttt{hyperref} at the same time! It seems better to process the document with \texttt{minitoc}~\#31 (or higher)
without \texttt{hyperref}, then with \texttt{hyperref}, because some internal commands written
into the auxiliary files have been modified. If used, the
\texttt{hyperref} package must be loaded \emph{before}
\texttt{minitoc}.
Note that \texttt{minitoc.tex} shows a basic example of the use of the \texttt{hyperref} package with
\texttt{minitoc}.

%(18)
\section{Problem while upgrading \texttt{minitoc}}
If upgrading from version~\#30 or lower to
version~\#31 or higher, you should delete the \texttt{.aux},
\texttt{.toc}, \texttt{.lof}, \texttt{.lot} of the document,
else the first \LaTeX{} run with version~\#31 or higher will
produce a lot of errors (the next run should be ok).

%(19)
\section{A local table of contents for the set of appendices}%
Some users need a table of contents for the appendices,
but without putting the entries of it into the main table of
contents. The solution is to put the appendices in a \verb|\part|
subdivision of the document and ask for a table of contents at
the \verb|\part| level:
\begin{verse}
\verb|\doparttoc           % after \begin{document}|\\
\verb|. . .|\\
\verb|\appendix|\\
\verb|\part{Appendices}    % create a part level subdivision|\\
\verb|\parttoc             % create a local table of contents|\\
\verb|% To suppress the appendix part in the main toc|\\
\verb|\addtocontents{toc}{\protect\setcounter{tocdepth}{-1}}|\\
\verb|\chapter{First appendix}|\\
\verb|. . .|\\
\verb|% Add this at the end of appendices if there is something|\\
\verb|% after the appendices (like an index or a bibliography)|\\
\verb|% to put a bound to the contents of \parttoc|\\
\verb|\addtocontents{toc}{\protect\partbegin}|
\end{verse}

%(20)
\section{Use with the \texttt{appendix} package}
If you use the \texttt{appendix} package (by \textsc{Peter R.~Wilson}),
you will observe a serious problem with minitocs in the \texttt{appendices} environment (and after it): they do not
match with their appendix. In fact, the environnement opening \verb|\begin{appendices}| hides a
\verb|\addcontentsline| command for a
chapter or a section, putting trouble in the numbering of minitocs or secttocs. Two solutions are available. The
first one is to add a \verb|\adjustmtc| or \verb|\adjuststc| command (depending if the appendices are at the chapter or
section level) after \emph{each} \verb|\begin{appendices}| command.
The other solution is to add the following commands in the preamble
after the loading of the \texttt{appendix} package:
\begin{verse}
\verb|\let\oldappendices\appendices|\\
\verb|\def\appendices{\oldappendices\adjustmtc}|
\end{verse}
if appendices are at the chapter level, OR:
\begin{verse}
\verb|\let\oldappendices\appendices|\\
\verb|\def\appendices{\oldappendices\adjuststc}|
\end{verse}
if appendices are at the section level.

%(21)
\section{Use with the \texttt{tocloft} package}
(This answer is given in the documentation of the \texttt{tocloft} package.)
The \texttt{tocloft} (by \textsc{Peter R.~Wilson}) and \texttt{minitoc} packages
have an unfortunate interaction,\footnote{Discovered by \textsc{Lyndon Dudding} 
(\url{lyndon.dudding@totalise.co.uk}).} which fortunately can be fixed.
In the normal course of events, when \texttt{minitoc} is used in a chaptered
document it will typeset section
entries in the minitocs in bold font. If \texttt{tocloft} is used in
conjunction with \texttt{minitoc}, then the minitoc section entries are 
typeset in the normal font, except for the page numbers which are in
bold font, while the ToC section entries are all in normal font.

One cure, if you want the minitoc section entries to be all in normal
font is to put:
\begin{verbatim}
\renewcommand{\mtcSfont}{\small\normalfont}
\end{verbatim}
in the preamble.

Otherwise, the cure is the following incantation:
\begin{verbatim}
\renewcommand{\cftsecfont}{\bfseries}
\renewcommand{\cftsecleader}{\bfseries\cftdotfill{\cftdotsep}}
\renewcommand{\cftsecpagefont}{\bfseries}
\end{verbatim}
To have the section entries in both the ToC and the minitocs in bold then
put the incantation in the preamble. To have only the minitoc section
entries in bold while the ToC entries are in the normal font, 
put the incantation between the \verb|\tableofcontents|
command and the first \verb|\chapter| command.

%(22)
\section{Use with the \texttt{memoir} class}
The \texttt{memoir} class offers the functionnalities of the \texttt{tocbibind} and \texttt{tocloft} packages, hence it
has the same problems; see upper the solutions available.

%\nocite*
%\def\noopsort#1{\relax}
%\bibliographystyle{plain}
%\bibliography{minitoc}
%\adjustmtc

\end{document}
