The second part, "Implementation", page 265, is much more technical; you can read if you are interested in the package coding details. Part three, "Supplements," page 643, contains a bibliography, a detailed history of the package, a list of acknowledgments, and an index.
Introduction
Important restrictions
Note: Work level commands are defined only if the document class defines it. Section-level commands are defined only if the document class defines \section but does not define \chapter.
Version
Note: you cannot use chapter-level and section-level minitables in the same document.
License
Using the minitoc package
- Loading the package and creating the mini-tables
- Preparing the mini-tables
- Placing the mini-tables
- Starred chapters, parts and sections
It is also strongly recommended to place these commands before any sectioning command that produces an entry in the table of contents (for \do..toc commands), and before. The section-level table of contents will be in the section, after the \section command, at the point of \secttoccommand.
Typesetting of the mini-tables
- Chapter-level mini-tables
- Titles for chapter-level mini-tables
- Part-level mini-tables
- Titles for part-level mini-tables
- Section-level mini-tables
- Titles for section-level mini-tables
- Position of the titles
- Line spacing in the mini-tables
- Simplified commands for fonts
- Simplified command for mini-table titles
- Simplified command for mini-table depths
- Simplified command for mini-table o ff sets
- Polymorphic entries in the mini-tables
- Languages for the titles
- Altering the layout of the mini-tables
The mini index is written in the \mtcfont font, which defaults to \small\rmfamily. The partial table of contents is written in the font \ptcfont, which is defined as.
Special Features
- Horizontal Rules
- Page Numbers, Leaders
- Features for parttocs and other mini-tables
- The “Chapter 0” Problem (solved)
- Special Entries in the TOC
This behavior is due to the default definitions of the commands in Table 1.10 on the previous page. You can set the style of this first page with \thispagestyle and style the following pages with\pagestyle, but don't forget to return the normal style after the minitable.
The notoccite option
The listfiles and nolistfiles options
The hints option
The presence of the following packages or classes, which need some precautions: amsbook (class), memories (class), appendix, places (beware of its options and its release date. If you use one of the obsolete commands (\firstpartis, \firstchapteris or W0003 W0004, also use a course, but a global problem, use also a course, but a global problem). t as a reminder.
Usage with MS-DOS
If you try to insert empty mini-tables, thehintoption gives a global warning (except I0006 .. if you also used thenocheckfile option, see section 1.3.3 on page 32). If you call the same prepare command more than once, an informative hint is issued for each false call.
Why several L A TEX runs are required?
The mtcoff package
Introduction
Avoiding a page break near the rules before and after a mini-tablemini-table
Implementing others layouts for a mini-table
A “\\” command in a contents line makes an error
Reordering chapters makes havoc
Extensions for the names of auxiliary files
Then you will first get the automatic configuration messages, then a message saying that you will be using short extensions.
Playing with the chapter number
Supported document classes
Compatibility with L A TEX versions
Other mini-tables
Why so many auxiliary files?
Mini-tables at levels other than chapter
Incompatibility with L A TEX2.09
Documents resetting the chapter number at each part
The mini-tables have too much spaced lines
The secttocs are wrong
Removing the lines of dots
Using the hyperref package with minitoc
Problem while upgrading minitoc
A local TOC for the set of appendices
Use with the appendix package
Use with the tocloft package
In the normal course of events, when minitocis is used in a chapter document, it will print the section notes in the minitocs in bold. Iftocloftis used in conjunction with minitoc, then minitoc section entries are printed in normal font, except for page numbers which are in bold, while ToC section entries are all in normal font. To have the section notes in both the ToC and the minitocs in bold, then put the extension in the preface.
If you want to have only the minitoc section entries in bold, while the ToC entries are in regular font, put an exclamation point between the \tableofcontents command and the first one. Astoclof is a very powerful and useful pack, so it is worth adding these drugs if you need the benefits of this pack.
Use with the memoir class
If you still want to use the \mtcsetfont commands while using thememoir class (or from the tocloft package), you need to disable thememoir/tocloftfont commands.
There are too many commands for fonts, titles, and depthsdepths
Compatibility with the AMS document classes
Hiding some entries from the main table of contents
Naturally, the environments mtchideinmainlofogmtchideinmainlot are also available to hide some entries in the main list of figures or tables. Note that the location of the end of these environments must be adjusted to include a page break (like the one performed by en\chaptercommand), otherwise the restore command can also be inserted. We start hiding figure entries in the list of figures and table entries in the list of tables.
We are ending the hiding of figure entries in the list of figures and of table entries in the list of tables. We are ending the hiding of figure entries in the list of figures and of table entries in the list of tables. This method, which is recommended while being more delicate to apply, is much more reliable in delimiting the hiding domain: it solves the problem of the asynchrony between writing floats and writing the normal text.
Defining your own .mld file
Use with the abstract package
Use with the sectsty package
Strange alignment in the minitocs
Useful precautions with starred sectionning commands
Use with packages for captions
Bad interaction minitoc/hyperref/memoir
Use with the varsects package
Initial font settings
But if you change one of these commands via \renewcommand or \mtcsetfont{parttoc}{subsection}{..}. subsection is an example), the connection is broken. For levels above a subsection (part, chapter, and section), the fonts are generally more specific, but you can of course say something like \def\ptcCfont{\ptcfont} to make a similar connection. You can then redefine \highlevelsfontor \lowlevelsfont to work on multiple fonts in one step, but you must use the \renewcommand.
Note that only the parttocs fonts are used in the examples above; but of course the situation is the same for minitocs and secttocs.
Use with the KOMA - Script classes
Use with the jura class or the alphanum package
The .mld files and the babel package
Use with the fncychap package
Use with the quotchap package
Use with the romannum package
Use with the sfheaders package
Use with the alnumsec package
Use with the captcont package
Vertical spaces (gaps) for parttocs, partlofs, and partlots titlespartlots titles
Vertical spacing before the bottom rule of a minitable
Another interaction between the tocloft and minitoc packagespackages
Use with the hangcaption package
For section entries in minitocs, we discard the page numbers and change the font using the commands from thetocloftpackage:.
Use with the flowfram package
The mtc-2c.tex document file
The mtc-2nd.tex document file
It would be interesting to add a star part, with star chapters, at the beginning of the document, this part and these chapters have their entries in the TOC.
The mtc-3co.tex document file
The mtc-add.tex document file
The next chapter requires a minitoc, a minilof, and a minilot, but contains no tables; therefore the small package will give some warnings.
The mtc-ads.tex document file
The commands to prepare the Table of Contents, List of Figures, and List of Tables. The body of the document: some part with its sub-level minitables, some sections with their sub-level minitables.
The mtc-amm.tex document file
The mtc-apx.tex document file
The mtc-art.tex document file
If you want to use sections that are numbered in each part (the section number starts again at 1 at the beginning of each part), uncomment the 3 lines of code below. This shows that the numbering of the secttoc files is independent of the numbering of the sections (absolutely). A section, in two columns, with a sectoc (title right) and a sectlof; this section contains subsections to create a non-empty sectoc but no figures (to detect an empty sectlof).
The mtc-bk.tex document file
A starred chapter with an added TOC entry; all subordinate (lower) section commands must also be asterisked. Here, we encounter a classic problem: making a local table of contents for a set of plugins, hiding these entries in the main table of contents.
The mtc-bo.tex document file
This block contains a minitoc and then a series of information given by the 6 parameters of the environment.
The mtc-ch0.tex document file
The mtc-cri.tex document file
The mtc-fko.tex document file
The mtc-fo1.tex document file
The mtc-fo2.tex document file
The mtc-gap.tex document file
The mtc-hi1.tex document file
The mtc-hi2.tex document file
The mtc-hia.tex document file
The mtc-hir.tex document file
The mtc-hop.tex document file
The mtc-liv.tex document file
The mtc-mem.tex document file
The mtc-mm1.tex document file
The mtc-mu.tex document file
The mtc-nom.tex document file
The mtc-ocf.tex document file
The mtc-ofs.tex document file
Note: if you add a subsection in this example, the corresponding entry in the minitoc may stick out if it appears in the last column, and the shift and the indentation must then be.
The mtc-sbf.tex document file
The mtc-scr.tex document file
The mtc-syn.tex document file
The mtc-tbi.tex document file
The tocbibind package adds an entry in the TOC to the bibliography, so we need to add the recommended fix:.
The mtc-tlc.tex document file
The mtc-tlo.tex document file
The mtc-tsf.tex document file
The mtc-vti.tex document file
Then the document with a table of contents, a part with its parttoc and a chapter with its minitoc. You can verify that the entry for the "Alpha" section varies in the main text, part toc, minitoc, and effective title of the section. We can use the more general macro\varsection10, with its three arguments given when the .
Introduction
Informational messages are only written in thedocument.logfile; the prefix is F for the hentcoff package warning messages and M for the mtcpatchmem package informational message. Warning messages are shown on screen (but often too fast to be seen, as LATEX normally does not stop for warnings) and written in the document.log file. Error messages are displayed on screen and written to the document.log file, but LATEX stops, so you can ask for help by typing "h".
FILE The name of a file (often a minitoc help file, the document.toc file, the document.lof file, or the document.lot file). COUNTThe number of mini-tables of the given type in your document (when using short extensions and that number is greater than 99). The messages are produced using macros from the mtcmess package, described in Chapter 11 on page 466.
Messages from the minitoc package
Informative messages
A\dominitoc command prepares the minitoc help files for minitocs from FILE. minitoc) PREPARATION OF PARTTOCS FROM FILE on input line. A\doparttoc command prepares the parttoc help files for parttocs from FILE. minitoc) PREPARATION OF SECTTOCS FROM FILE on input line. A\dominilof command prepares the minihelper files for minilofs from FILE. minitoc) PREPARATION OF PARTLOFS FROM FILE on input line.
The \dopartlof command prepares partlof auxiliary files for partlofs fromFILE. minitoc) PREPARE SECTLOFS FROM FILE on LINE input line. The command \dominilot prepares a minilot auxiliary file for minilots from FILE. minitoc) PREPARATION OF PARTLOTS FROM FILE in the LINE input line. The \dopartlot command prepares partlot auxiliary files for partlots from FILE. minitoc) PREPARING SECTLOTS FROM FILE on the LINE input line.
Warning messages
Check that you have called \dominilo in the correct sequence of commands. minitoc) MINILOTS NOT PREPARED on input line LINE. Please check that you have run\dominilotin the correct sequence of commands. minitoc) MINITOCS NOT PREPARED for input line LINE. Please check that you have named \dominitocin the correct order of commands. minitoc) PARTLOFS NOT PREPARED for input line LINE.
Please check that you have called \dopartlofin the correct sequence of commands. minitoc) PARTLOT NOT PREPARED on input line LINE. Please check that you have called \dopartlotin the correct sequence of commands. minitoc) PARTS NOT PREPARED on input line LINE. Please check that you have called \doparttocin the correct sequence of commands. minitoc) SECTLOFS NOT PREPARED on input line LINE.
Error messages
It must be a mini-table type (parttoc, . . . , sektlot). minitoc) \mtcsetfeature has an incorrect first argument. minitoc). It must be a mini-table type (parttoc, . . . , sektlot). minitoc) \mtcsetfeature has an incorrect second argument. minitoc). It must be before, after, open, close, or this page style. minitoc) \mtcsetfont has an incorrect first argument. minitoc).
The first argument of \mtcsetfont is incorrect; it must be the type of a mini-table (parttoc. . ,sectlot). minitoc) \mtcsetfont has an incorrect second argument. minitoc). It must be a mini-table type (parttoc, . . . , sektlot). minitoc) \mtcsetformat has an incorrect second argument. minitoc). The first argument of a \mtcsettitle macro is incorrect; it must be a mini-table type (parttoc, . . . , sektlot). minitoc) \mtcsettitlefont has an incorrect first argument. minitoc).