File: minitoc.tex

package info (click to toggle)
tetex-src 3.0.dfsg.2-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 122,292 kB
  • ctags: 2,709
  • sloc: makefile: 2,323; perl: 1,820; sh: 1,378; lisp: 448; python: 335; xml: 175; sed: 138; ansic: 138; yacc: 52
file content (1666 lines) | stat: -rw-r--r-- 67,210 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
% 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}