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
|
% minitoc.tex 34
\documentclass[12pt,a4paper,titlepage]{book}
\usepackage[tight,english]{minitoc}
% Check if booktabs package is available
\newif\ifBT \BTfalse
\IfFileExists{booktabs.sty}{\BTtrue\usepackage{booktabs}}{\BTfalse}
\usepackage{tabularx}
% Check if multicol package is available
\newif\ifMC
\MCfalse
\IfFileExists{multicol.sty}{\MCtrue\usepackage{multicol}}{\MCfalse}
%
\makeatletter % to include some useful commands
\newcommand{\BibTeX}{{\rm B\kern-.05em{\sc 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,
% REPLACE THE NEXT LINES BY
% \let\Virage\relax \let\virage\relax
\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}}
%%%%%%%%%%%%%%%%% END OF REPLACE
%
\def\Cat#1{\hbox{$\langle$\textit{#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
\parskip=12pt
\def\bs{{\tt\char'134}}
\setcounter{minitocdepth}{3}
\setcounter{secnumdepth}{3}
\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{Jean-Pierre F. Drucbert\\%
ONERA~/~Centre de Toulouse~/~SRI\\%
\texttt{drucbert@onecert.fr}}
\date{2000/12/08}
\title{The \texttt{minitoc} package}
\begin{document}
\raggedbottom
\maketitle
\dominitoc
%\dominilof
\dominilot
\tableofcontents
%\listoffigures
\listoftables
\chapter{The \texttt{minitoc} package}\label{o+minitoc}
\pagestyle{headings}
\minitoc
%\minilof
\bigskip
\minilot
\section{Introduction}
This package, initially written by Nigel Ward and Dan Jurafsky, has been
almost completely redesigned at ONERA/Centre de Toulouse
by Jean-Pierre Drucbert.
It creates a mini-table of contents
(a ``minitoc''\,\footnote{The \texttt{minitoc} package introduces
its own jargon, explained in this note.
It should not be too difficult, however, to learn and use.}%
) at the beginning of each chapter of the 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
(styles like \texttt{book} or \texttt{report}) or sections
(styles like \texttt{article}).
Thus, this package should not be used with
document classes without sectioning 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 the 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 {\tt\bs chapter} command
but has a {\tt\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 full of local
tables of contents, list of figures and tables at every sectionning level.
The current version of this package is \#34.
\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|.
\section*{Licence}
It may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either version 1.1
of this license or (at your option) any later version.
The latest version of this license is in
\begin{quote}
\verb|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.
\section{Usage}
To use the \texttt{minitoc} package, you must introduce a command
\begin{verbatim}
\usepackage{minitoc}
\end{verbatim}
in the preamble of your document.
The mini-table of contents will appear in the chapter,
after the \verb|\chapter| command, at the point of the \verb|\minitoc|
command. The {\tt\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~\ref{mtc+minitoc}
\begin{table*}[ht]\tt
\changeskips
\caption{Commands for a \texttt{minitoc}}\label{mtc+minitoc}
\begin{center}
\fbox{\begin{tabular}{ll}
\multicolumn{2}{l}{\bs documentclass[...]\{book\}}\\
\multicolumn{2}{l}{\bs usepackage\{minitoc\}}\\
\ldots& \\
\bs setcounter\{minitocdepth\}\{2\} & \emph{default} \\
\bs setlength\{\bs mtcindent\}\{24pt\} & \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 minilof & \emph{if you want one} \\
\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 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 you are under MS-DOS or any operating system with short
extensions to filenames, see Section~\ref{MS-DOS} and
Chapter~\ref{FAQ}, item~\ref{.8+3}).
The section-level table of contents will appear in the section,
after the \verb|\section| command, at the point of the \verb|secttoc|
command. The {\tt\bs secttoc} command may occur
\emph{anywhere} inside a section. Of course, it is better
to put it at the beginning of the section, eventually
after some 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~\ref{mtcsecttoc}
\begin{table*}[ht]\tt
\changeskips
\caption{Commands for a \texttt{secttoc}}\label{mtcsecttoc}
\begin{center}
\fbox{\begin{tabular}{ll}
\multicolumn{2}{l}{\bs documentclass[...]\{article\}}\\
\multicolumn{2}{l}{\bs usepackage\{minitoc\}}\\
\ldots& \\
\bs setcounter\{\bs secttocdepth\}\{2\} & \emph{default} \\
\bs setlength\{\bs stcindent\}\{24pt\} & \emph{default} \\
\bs renewcommand\{\bs stcfont\}\{\bs small\bs rm\} & \emph{default} \\
\bs renewcommand\{\bs stcSSfont\}\{\bs small\bs bf\} & \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 chapter\{...\}& \\
\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 you are under MS-DOS or any operating system with short
extensions to filenames, see Section~\ref{MS-DOS} and
Chapter~\ref{FAQ}, item~\ref{.8+3}).
If you want to add the partial table of contents for a part,
you must use the sequence given in Table~\ref{mtc+parttoc}.
\begin{table*}[ht]\tt
\changeskips
\caption{Commands for a \texttt{parttoc}}\label{mtc+parttoc}
\begin{center}
\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 part number.
The suffix is \verb|.plf|\<N> for partial lists of figures and
is \verb|.plt|\<N> for partial lists of tables.
(If you are under MS-DOS or any operating system with short
extensions to filenames, see Section~\ref{MS-DOS} and
Chapter~\ref{FAQ}, item~\ref{.8+3}).
\noindent
\textbf{Note}\virage: the user is responsible of requiring or not requiring
a mini-toc (lof or lot) for some chapter. Asking a minilof for a
chapter without any figure will 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 will 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).
By default, the mini-tables and partial tables of contents
contain only references to sections and
subsections. The \texttt{minitocdepth} and \texttt{parttocdepth}
counters, similar to \texttt{tocdepth},
allows the user to modify this behaviour. Mini or partial
lists of figures or tables are not affected by the value of
these counters.
\noindent
\textbf{NOTE}\Virage: if you are 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
\begin{quote}
\verb|\addcontentsline{toc}{section}{...}|
\end{quote}
by 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 thinks 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|.
A more clever way to solve this problem is to use commands
like:
\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~\ref{t+mtcadd} summarizes these commands, that you put
\emph{after} \verb|\chapter*|, etc.
If the optional argument is omitted or empty ou blank, no entry will
be visible in the table of contents nor in the minitocs.
If the optional argument is something invisible
(like~\verb|~| or \verb|\quad|), lhe result will be strange
but logically correct.
\begin{table}[htb]
\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}
The mini and partial tables and lists are typeset
in a \texttt{verse}-like environment, and
can be split over pages.
%U2
The mini-table of contents
is typeset in the {\tt\bs mtcfont}
font, which is \verb|\small\rm| by default. Section entries are typeset
in the {\tt\bs mtcSfont} font, which is \verb|\small\bf| 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\rm|)
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\rm| by default.
Tables~\ref{t+mtc+f1} and~\ref{t+mtc+f2} summarize these
many commands\,\footnote{These tables
were contributed by Stefan Ulrich. Thanks to him.}.
\begin{table}
\changeskips
\footnotesize
\caption{Fonts for the \texttt{\bs part\ldots}, \texttt{\bs mini\ldots}
and \texttt{\bs sect\ldots} commands.}\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\rm}{\V\small\V\rm}
& \FontDefault{\V\ptctitle}{Table of Contents\Lang}
& \FontChapSec{\V\ptifont}{\V\Huge\V\bf}{\V\large\V\bf}\\[1ex]
\V\partlof
& \FontChapSec{\V\plffont}{\V\normalsize\V\rm}{\V\small\V\rm}
& \FontDefault{\V\plftitle}{List of Figures\Lang}
& \FontChapSec{\V\ptifont}{\V\Huge\V\bf}{\V\large\V\bf}\\[1ex]
\V\partlot
& \FontChapSec{\V\pltfont}{\V\normalsize\V\rm}{\V\small\V\rm}
& \FontDefault{\V\plttitle}{List of Tables\Lang}
& \FontChapSec{\V\ptifont}{\V\Huge\V\bf}{\V\large\V\bf}\\[1ex]
\midrule
\multicolumn{4}{l}{\Strut For the \V{\mini...} commands:\Chap}\\[1ex]
\V\minitoc
& \FontDefault{\V\mtcfont}{\V\normalsize\V\rm}
& \FontDefault{\V\mtctitle}{Contents\Lang}
& \FontDefault{\V\mtifont}{\V\large\V\bf}\\[1ex]
\V\minilof
& \FontDefault{\V\mlffont}{\V\small\V\rm}
& \FontDefault{\V\mlftitle}{Figures\Lang}
& \FontDefault{\V\mtifont}{\V\large\V\bf}\\[1ex]
\V\minilot
& \FontDefault{\V\mltfont}{\V\small\V\rm}
& \FontDefault{\V\plttitle}{Tables\Lang}
& \FontDefault{\V\mtifont}{\V\large\V\bf}\\[1ex]
\midrule
\multicolumn{4}{l}{\Strut For the \V{\sect...} commands:\Sec}\\[1ex]
\V\secttoc
& \FontDefault{\V\stcfont}{\V\normalsize\V\rm}
& \FontDefault{\V\stctitle}{Contents\Lang}
& \FontDefault{\V\stifont}{\V\large\V\bf}\\[1ex]
\V\sectlof
& \FontDefault{\V\slffont}{\V\small\V\rm}
& \FontDefault{\V\mlftitle}{Figures\Lang}
& \FontDefault{\V\stifont}{\V\large\V\bf}\\[1ex]
\V\sectlot
& \FontDefault{\V\sltfont}{\V\small\V\rm}
& \FontDefault{\V\plttitle}{Tables\Lang}
& \FontDefault{\V\stifont}{\V\large\V\bf}\\[1ex]
\bottomrule
\multicolumn{4}{l}{\Chap for documentclasses with
\V{\chapter} level (e.g. \V{book}, \V{report})}\\
\multicolumn{4}{l}{\Sec for documentclasses with
no \V{\chapter} level (e.g. \V{article})}\\
\multicolumn{4}{l}{\Lang default for english;
changed by the language definition files}
\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\rm}{\V\small\V\rm}
& \FontDefault{\V\ptctitle}{Table of Contents\Lang}
& \FontChapSec{\V\ptifont}{\V\Huge\V\bf}{\V\large\V\bf}\\[1ex]
\V\partlof
& \FontChapSec{\V\plffont}{\V\normalsize\V\rm}{\V\small\V\rm}
& \FontDefault{\V\plftitle}{List of Figures\Lang}
& \FontChapSec{\V\ptifont}{\V\Huge\V\bf}{\V\large\V\bf}\\[1ex]
\V\partlot
& \FontChapSec{\V\pltfont}{\V\normalsize\V\rm}{\V\small\V\rm}
& \FontDefault{\V\plttitle}{List of Tables\Lang}
& \FontChapSec{\V\ptifont}{\V\Huge\V\bf}{\V\large\V\bf}\\[1ex]
\hline
\multicolumn{4}{l}{\Strut For the \V{\mini...} commands:\Chap}\\[1ex]
\V\minitoc
& \FontDefault{\V\mtcfont}{\V\normalsize\V\rm}
& \FontDefault{\V\mtctitle}{Contents\Lang}
& \FontDefault{\V\mtifont}{\V\large\V\bf}\\[1ex]
\V\minilof
& \FontDefault{\V\mlffont}{\V\small\V\rm}
& \FontDefault{\V\mlftitle}{Figures\Lang}
& \FontDefault{\V\mtifont}{\V\large\V\bf}\\[1ex]
\V\minilot
& \FontDefault{\V\mltfont}{\V\small\V\rm}
& \FontDefault{\V\plttitle}{Tables\Lang}
& \FontDefault{\V\mtifont}{\V\large\V\bf}\\[1ex]
\hline
\multicolumn{4}{l}{\Strut For the \V{\sect...} commands:\Sec}\\[1ex]
\V\secttoc
& \FontDefault{\V\stcfont}{\V\normalsize\V\rm}
& \FontDefault{\V\stctitle}{Contents\Lang}
& \FontDefault{\V\stifont}{\V\large\V\bf}\\[1ex]
\V\sectlof
& \FontDefault{\V\slffont}{\V\small\V\rm}
& \FontDefault{\V\mlftitle}{Figures\Lang}
& \FontDefault{\V\stifont}{\V\large\V\bf}\\[1ex]
\V\sectlot
& \FontDefault{\V\sltfont}{\V\small\V\rm}
& \FontDefault{\V\plttitle}{Tables\Lang}
& \FontDefault{\V\stifont}{\V\large\V\bf}\\[1ex]
\thickline
\multicolumn{4}{l}{\Chap for documentclasses with
\V{\chapter} level (e.g. \V{book}, \V{report})}\\
\multicolumn{4}{l}{\Sec for documentclasses with
no \V{\chapter} level (e.g. \V{article})}\\
\multicolumn{4}{l}{\Lang default for english;
changed by the language definition files}
\end{tabular}
\fi
\end{table}
\begin{table}
\changeskips
\footnotesize
\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\bf\Chap \\
Section
& \V\ptcSfont
& \begin{tabular}[t]{@{}l}\V\normalsize\V\rm\Chap \\
\V\small\V\bf\Sec \end{tabular}\\
Subsection
& \V\ptcSSfont
& \textit{(like \V\ptcfont)} \\
Subsubsection
& \V\ptcSSfont
& \textit{(like \V\ptcfont)} \\
Paragraph
& \V\ptcPfont
& \textit{(like \V\ptcfont)} \\
Subparagraph
& \V\ptcSPfont
& \textit{(like \V\ptcfont)} \\[1ex]
\midrule
\multicolumn{3}{l}{\Strutt For the \V{\minitoc} entries:\Chap}\\
\Strut
Section
& \V\mtcSfont
& \V\small\V\bf\\
Subsection
& \V\mtcSSfont
& \textit{(like \V\mtcfont)} \\
Subsubsection
& \V\mtcSSfont
& \textit{(like \V\mtcfont)} \\
Paragraph
& \V\mtcPfont
& \textit{(like \V\mtcfont)} \\
Subparagraph
& \V\mtcSPfont
& \textit{(like \V\mtcfont)} \\[1ex]
\midrule
\multicolumn{3}{l}{\Strutt For the \V{\secttoc} entries:\Sec}\\
\Strut
Subsection
& \V\stcSSfont
& \V\normalsize\V\bf\\
Subsubsection
& \V\stcSSfont
& \textit{(like \V\stcfont)} \\
Paragraph
& \V\stcPfont
& \textit{(like \V\stcfont)} \\
Subparagraph
& \V\stcSPfont
& \textit{(like \V\stcfont)} \\[1ex]
\bottomrule
\multicolumn{3}{l}{\Chap for documentclasses with \V{\chapter}
level (e.g. \V{book}, \V{report})}\\
\multicolumn{3}{l}{\Sec for documentclasses 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\bf\Chap \\
Section
& \V\ptcSfont
& \begin{tabular}[t]{@{}l}\V\normalsize\V\rm\Chap \\
\V\small\V\bf\Sec \end{tabular}\\
Subsection
& \V\ptcSSfont
& \textit{(like \V\ptcfont)} \\
Subsubsection
& \V\ptcSSfont
& \textit{(like \V\ptcfont)} \\
Paragraph
& \V\ptcPfont
& \textit{(like \V\ptcfont)} \\
Subparagraph
& \V\ptcSPfont
& \textit{(like \V\ptcfont)} \\[1ex]
\hline
\multicolumn{3}{l}{\Strutt For the \V{\minitoc} entries:\Chap}\\
\Strut
Section
& \V\mtcSfont
& \V\small\V\bf\\
Subsection
& \V\mtcSSfont
& \textit{(like \V\mtcfont)} \\
Subsubsection
& \V\mtcSSfont
& \textit{(like \V\mtcfont)} \\
Paragraph
& \V\mtcPfont
& \textit{(like \V\mtcfont)} \\
Subparagraph
& \V\mtcSPfont
& \textit{(like \V\mtcfont)} \\[1ex]
\hline
\multicolumn{3}{l}{\Strutt For the \V{\secttoc} entries:\Sec}\\
\Strut
Subsection
& \V\stcSSfont
& \V\normalsize\V\bf\\
Subsubsection
& \V\stcSSfont
& \textit{(like \V\stcfont)} \\
Paragraph
& \V\stcPfont
& \textit{(like \V\stcfont)} \\
Subparagraph
& \V\stcSPfont
& \textit{(like \V\stcfont)} \\[1ex]
\thickline
\multicolumn{3}{l}{\Chap for documentclasses with \V{\chapter}
level (e.g. \V{book}, \V{report})}\\
\multicolumn{3}{l}{\Sec for documentclasses with no \V{\chapter}
level (e.g. \V{article})}\\
\end{tabular}
\fi
\end{table}
Titles are typeset in the {\tt\bs mtifont} (\verb|\large\bf| by
default) font and the texts of the titles are defined by
{\tt\bs mtctitle}, {\tt\bs mlftitle} and {\tt\bs mlttitle}, which
are the strings ``Contents'', ``Figures'' and ``Tables'' by default.
These commands should be redefined by {\tt\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 \textbf{Babel} system by Johannes Braams and
some were adapted, others were offered by gentle users
or taken from specific packages, like Arab\TeX{} or
\texttt{vietnam.sty}.
Other languages are welcome.\label{fo+lang}}%
) are available.
You can easily prepare a similar file for your preferred language.
\begin{table}[p]
\changeskips
\caption{Available languages}
\ifMC
\begin{center}
\begin{minipage}{\textwidth}\raggedright
\begin{multicols}{3}
\begin{enumerate}
\item afrikaan (afrikaans)
\item arab (arabic)\,$^a$
\item armenian
\item bahasa
\item basque
\item bicig
\item brazil
\item breton
\item buryat
\item catalan
\item croatian
\item czech
\item danish
\item dutch
\item english (american)
\item esperant (esperanto)
\item estonian
\item ethiopia (ethiopian)
\item finnish
\item french (francais)
\item galician
\item german (austrian)
\item germanb
\item greek
\item irish
\item italian
\item lithuanian
\item lsorbian
\item magyar (hungarian)
\item mongol
\item ngerman
\item norsk
\item nynorsk
\item polish
\item portuges
\item romanian
\item russian\,$^b$
\item russianb
\item russianc
\item scottish
\item serbian
\item slovak
\item slovene
\item spanish
\item swedish
\item turkish
\item ukraineb
\item usorbian
\item vietnam (vietnamese)
\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,
but \texttt{russianb} is supported if you
use babel-3.6; \texttt{russianc} is an extra.}
\end{minipage}
\end{center}
\else
\begin{center}
\begin{tabular}{lclcl}
afrikaan (afrikaans)&\qquad&arab (arabic)&\qquad&armenian\\
bahasa&&basque&&bicig\\
brazil&&breton&&buryat\\
catalan&&croatian&&czech\\
danish&&dutch&&english (american)\\
esperant (esperanto)&&estonian&ðiopia (ethiopian)\\
finnish&&french (francais)&&galician\\
german (austrian)&&germanb&&greek\\
irish&&italian&&lithuanian\\
lsorbian&&magyar (hungarian)&&mongol\\
ngerman&&norsk&&nynorsk\\
polish&&portuges&&romanian\\
russian$^a$&&russianb&&russianc\\
scottish&&serbian&&slovak\\
slovene&&spanish&&swedish\\
turkish&&ukraineb&&usorbian\\
vietnam (vietnamese)&&welsh&&\\
\multicolumn{5}{l}{$^a$The \texttt{russian} language is not yet supported,}\\
\multicolumn{5}{l}{but \texttt{russianb} is supported if you
use babel-3.6. \texttt{russianc} is an extra.}\\
\multicolumn{5}{l}{$^b$The \texttt{arab(ic)} language requires the
use of Arab\TeX.}
\end{tabular}
\end{center}
\fi
\end{table}
The partial table of contents
is typeset in the {\tt\bs ptcfont}
font, which is defined as \verb|\normalsize\rm| by default.
Chapter entries are typeset in the {\tt\bs ptcCfont} font,
which is \verb|\normalsize\bf| by default.
Section entries are typeset in the {\tt\bs ptcSfont} font,
which is \verb|\normalsize\rm| 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\rm|) 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\rm| by default.
Titles are typeset in the {\tt\bs ptifont} (\verb|\Huge\bf| by
default) font and the texts of the titles are defined by
{\tt\bs ptctitle}, {\tt\bs plftitle} and {\tt\bs plttitle}, which
are the strings ``Table of Contents'',
``List of Figures'' and ``List of Tables'' by default.
These commands should be redefined by {\tt\bs renewcommand} for
languages other than english.
The language option files like
\texttt{french.mld} and \texttt{english.mld} (and many others, see
footnote~\ref{fo+lang} above) are available.
You can easily prepare a similar style for your preferred language.
The section-level table of contents
is typeset in the {\tt\bs stcfont}
font, which is defined as \verb|\normalsize\rm| by default.
Subsection entries are typeset in the {\tt\bs stcSSfont} font,
which is \verb|\normalsize\bf| by default.
Subsubsection entries are typeset in the {\tt\bs stcSSSfont} font,
which is \verb|\normalsize\rm| by default.
For subsubsections, paragraphs and subparagraphs, the
commands \verb|\stcSSSfont|, \verb|\stcPfont| and
\verb|\stcSPfont| are available (by default, \verb|\normalsize\rm|) 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\rm| by default.
Titles are typeset in the {\tt\bs stifont} (\verb|\normalsize\bf| by
default) font and the texts of the titles are defined by
{\tt\bs stctitle}, {\tt\bs slftitle} and {\tt\bs slttitle}, which
are the strings ``Contents'',
``Figures'' and ``Tables'' by default.
These commands should be redefined by {\tt\bs renewcommand} for
languages other than english.
The language option files like
\texttt{french.mld} and \texttt{english.mld} (and some others, see
footnote~\ref{fo+lang} above) are available.
You can easily prepare a similar style for your preferred language.
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 {\tt[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 {\tt[n]})for empty (no title).
The change is global for all the document.
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 {\tt[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 {\tt[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.
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.
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; after the second run, they appear,
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.
\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 ``partoc'' in a book- or
report-like document (i.e. when \verb|\chapter| is defined). To activate
or desactivate 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&\tt book&\tt report&\tt 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|§tocs&\verb|\nostcrule|§tocs%
&\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&\tt book&\tt report&\tt 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|§tocs&\verb|\nostcrule|§tocs%
&\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}\tt%
\ifBT
\begin{tabular}{lllcl}
\toprule
\Strut\textbf{Type}&&{\vphantom{$P^2_3$}\hfill\bf Page numbers (Default)\hfill}&&%
{\hfill\bf No page numbers\hfill}\\
\midrule
\Strut\rm minitoc&&\bs mtcpagenumbers&\qquad&\bs nomtcpagenumbers\\
\Strut\rm secttoc&&\bs stcpagenumbers&\qquad&\bs nostcpagenumbers\\
\Strut\rm parttoc&&\bs ptcpagenumbers&\qquad&\bs noptcpagenumbers\\
\Strut\rm minilof&&\bs mlfpagenumbers&\qquad&\bs nomlfpagenumbers\\
\Strut\rm sectlof&&\bs slfpagenumbers&\qquad&\bs noslfpagenumbers\\
\Strut\rm partlof&&\bs plfpagenumbers&\qquad&\bs noplfpagenumbers\\
\Strut\rm minilot&&\bs mltpagenumbers&\qquad&\bs nomltpagenumbers\\
\Strut\rm sectlot&&\bs sltpagenumbers&\qquad&\bs nosltpagenumbers\\
\Strut\rm partlot&&\bs pltpagenumbers&\qquad&\bs nopltpagenumbers\\
\bottomrule
\end{tabular}%
\else
\begin{tabular}{lllcl}
\thickline
\Strut\textbf{Type}&&{\vphantom{$P^2_3$}\hfill\bf Page numbers (Default)\hfill}&&%
{\hfill\bf No page numbers\hfill}\\
\hline
\Strut\rm minitoc&&\bs mtcpagenumbers&\qquad&\bs nomtcpagenumbers\\
\Strut\rm secttoc&&\bs stcpagenumbers&\qquad&\bs nostcpagenumbers\\
\Strut\rm parttoc&&\bs ptcpagenumbers&\qquad&\bs noptcpagenumbers\\
\Strut\rm minilof&&\bs mlfpagenumbers&\qquad&\bs nomlfpagenumbers\\
\Strut\rm sectlof&&\bs slfpagenumbers&\qquad&\bs noslfpagenumbers\\
\Strut\rm partlof&&\bs plfpagenumbers&\qquad&\bs noplfpagenumbers\\
\Strut\rm minilot&&\bs mltpagenumbers&\qquad&\bs nomltpagenumbers\\
\Strut\rm sectlot&&\bs sltpagenumbers&\qquad&\bs nosltpagenumbers\\
\Strut\rm 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} 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}\tt%
\ifBT
\begin{tabular}{lllcl}
\toprule
\Strut\textbf{Type}&&{\vphantom{$P^2_3$}\bf Command \hfill}&&%
{\bf Default \hfill}\\
\midrule
\Strut\rm parttoc&&\bs beforeparttoc&\qquad&\bs cleardoublepage\\
\Strut\rm parttoc&&\bs afterparttoc&\qquad&\bs cleardoublepage\\
\Strut\rm parttoc&&\bs thispageparttocstyle&\qquad&\bs thispagestyle\{empty\}\\
\Strut\rm partlof&&\bs beforepartlof&\qquad&\bs cleardoublepage\\
\Strut\rm partlof&&\bs afterpartlof&\qquad&\bs cleardoublepage\\
\Strut\rm partlof&&\bs thispagepartlofstyle&\qquad&\bs thispagestyle\{empty\}\\
\Strut\rm partlot&&\bs beforepartlot&\qquad&\bs cleardoublepage\\
\Strut\rm partlot&&\bs afterpartlot&\qquad&\bs cleardoublepage\\
\Strut\rm partlot&&\bs thispagepartlotstyle&\qquad&\bs thispagestyle\{empty\}\\
\bottomrule
\end{tabular}%
\else
\begin{tabular}{lllcl}
\thickline
\Strut\textbf{Type}&&{\vphantom{$P^2_3$}\bf Command \hfill}&&%
{\bf Default \hfill}\\\hline
\Strut\rm parttoc&&\bs beforeparttoc&\qquad&\bs cleardoublepage\\
\Strut\rm parttoc&&\bs afterparttoc&\qquad&\bs cleardoublepage\\
\Strut\rm parttoc&&\bs thispageparttocstyle&\qquad&\bs thispagestyle\{empty\}\\
\Strut\rm partlof&&\bs beforepartlof&\qquad&\bs cleardoublepage\\
\Strut\rm partlof&&\bs afterpartlof&\qquad&\bs cleardoublepage\\
\Strut\rm partlof&&\bs thispagepartlofstyle&\qquad&\bs thispagestyle\{empty\}\\
\Strut\rm partlot&&\bs beforepartlot&\qquad&\bs cleardoublepage\\
\Strut\rm partlot&&\bs afterpartlot&\qquad&\bs cleardoublepage\\
\Strut\rm partlot&&\bs thispagepartlotstyle&\qquad&\bs thispagestyle\{empty\}\\
\thickline
\end{tabular}%
\fi\end{quote}
\subsubsection{The ``Chapter 0'' Problem}
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}
\tt\bs firstchapteris\{\<N>\}
\end{quote}
before the \verb|\dominitoc| and analogous commands. \<N> is the number
of your 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 give a harmless warning.
\subsubsection[Special Entries]{Special Entries\,\footnote{\textbf{Warning:} these features are still experimental.}}
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{tocbibend} package from 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|.
For the bibliography, you should add a \verb|\adjustmtc| command
after the \verb|\bibliography| command.
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). You have
some examples in the \texttt{add.tex} file distributed with
\texttt{minitoc}.
\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.
%Thus, it is only necessary to edit very
%slightly the file \texttt{minitoc.sty}. You have just to uncomment
%the line where \verb|\SHORTEXT| is defined.
All other modifications will be done automatically.
The {\tt.mtc\<N>}
suffix will become {\tt.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 {\tt.ptc\<N>}
suffix will become {\tt.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 {\tt.stc\<N>}
suffix will become {\tt.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 Chapter~\ref{FAQ}, item~\ref{.8+3}).
\clearpage
\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 have just to replace the
\texttt{minitoc} package by the \texttt{mtcoff} package, 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 purges the \texttt{.aux}, \texttt{.toc},
\texttt{.lof}, and \texttt{.lot} files from minitoc specific
spurious commands.
%\end{document}
\chapter{Frequently Asked Questions}\label{FAQ}
%%%%%%%%%%%%%%%%%% extracted from minitoc.bug
Here is a list of problems and frequently asked questions about
\texttt{minitoc.sty}. If your version has a number less than~34, please
upgrade to version~\#34.
\begin{enumerate}
\item
How avoid a page break near the rules before and after
the minitoc?\hfill\null\\
\emph{This problem seemed solved since version~\#8, but version~\#12
adds better fixes.}
\item
How about implementing others layouts for the minitoc? Suggestions are welcome.
\item\relax
\verb|\\| in a contents line makes an error.\hfill\null\\
\emph{Use} \verb|\protect\linebreak|.
\item
If you reorder chapters, havoc follows\ldots\ minitocs
going in wrong chapters.\hfill\null\\
\emph{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).
Running with the \texttt{mtcoff} package ensures that auxiliary files
are cleared from ``spurious'' commands introduced by \texttt{minitoc}.}
%\item
%Compatible with \texttt{toch.sty}, but the \texttt{minitoc} package must come
%\emph{after} the \texttt{toch} package (is it a bug or a ``feature''?).
\item\label{.8+3} This package creates auxiliary files with extensions like {\tt.mtc\<N>}.
Some operating
systems allow only 3~letters extensions. What to do?\hfill\null\\
\emph{No modification is needed: all is 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 however use short extensions.}
\item
Do not cheat with the ``\texttt{chapter}'' counter, i.e.~do not
write horrible things like \verb|\setcounter{chapter}{6}|. The mechanism
would break. It is better to add {\tt\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.
%\item % obsolete
%(8) minitoc.sty is restricted to document styles which define
% chapters in the standard way, like `book' and `report'.
% Do not ask me to make minitocs for sections in articles.
% There are ``parttocs'' if the document style defines
% the \part command.
%\item %obsolete
%(9) Some users have failed to make minitoc to work. They got
% a message like:
% Undefined command ... \@inputcheck ...
% or:
% Undefined command ... \reset@font ...
% The \reset@font command has been added to latex.tex
% on 29 September 1991 and the \@inputcheck command
% on 18 March 1992 and this version of latex.tex has been
% released on 25 March 1992. If you have this message, you
% have an old version of latex.tex. Get a recent one from
% the archives and regenerate a latex format via initex.
\item
Some demanding users want to have minilof, minilot and
minibbl. First, minibbl is an other problem, strongly
related to the \BibTeX's dealing with {\tt.aux} files. Look
at \texttt{chapterbib.sty}, \texttt{bibunits.sty},
\texttt{multibib.sty}, ans \texttt{bibtopic}.
Version~\#13 has implemented basic minilofs and minilots.
Minibbls are not the aim of this package.
\item
This package creates a lot of auxiliary files and some users
argue 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, and it would
be read for each {\tt\bs miniXXX} macro!
\item
How to do minitocs (minilofs and minilots) at levels other
than chapter? Here also, some redesign is needed.
From version~\#15, there are parttocs, partlofs and
partlots for the part level in book-like and article-like documents,
secttocs, sectlofs and sectlots for the section level in 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 style 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}\tt
\ifBT
\begin{tabular}{lccc}
\toprule
&\Strut \bf part&\bf chapter&\bf section\vphantom{\Large Pj}\\
\midrule
\Strut\tt book&$*$&$*$&\vphantom{\Large Pj}\\\midrule
\Strut\tt report&$*$&$*$&\vphantom{\Large Pj}\\\midrule
\Strut\tt article&$*$&&$*$\vphantom{\Large Pj}\\\bottomrule
\end{tabular}
\else
\begin{tabular}{lccc}
\thickline
&\Strut \bf part&\bf chapter&\bf section\vphantom{\Large Pj}\\
\hline
\Strut\tt book&$*$&$*$&\vphantom{\Large Pj}\\\hline
\Strut\tt report&$*$&$*$&\vphantom{\Large Pj}\\\hline
\Strut\tt article&$*$&&$*$\vphantom{\Large Pj}\\\thickline
\end{tabular}
\fi
\end{center}
\item Since version \#23, works with document classes resetting
chapter (or section) number at each part.
\item Since version \#31, works with the \texttt{hyperref} package,
thanks to Heiko Oberdiek \texttt{(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 you are 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}.
\item If you are upgrading from version~\#30 or lower to
version~\#31 or higher, you should delete the \texttt{.aux},
\texttt{.toc}, \texttt{.lof}, \texttt{.lot} of your document,
else the first \LaTeX{} run with version~\#31 or higher will
produce a lot of errors (the next run should be ok).
\end{enumerate}
\end{document}
|