summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/minitoc/mini-art.tex
blob: 575e6411084b7cf101f3b3fb85a5055fd3942667 (plain)
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
%%%%%%%%%%%%%%%%%%%%% A example file (may differ from previous versions)
% mini-art.tex
% This file contains a set of tests for the minitoc.sty version #44
% style option file. You can alter most of parameters to test.
% article (\section must be defined)
\documentclass[12pt,a4paper]{article}
%\usepackage{hyperref}  % If used, load it BEFORE minitoc
\usepackage[tight,insection]{minitoc}
\setcounter{secnumdepth}{5}   % depth of numbering of sectionning commands
\setcounter{tocdepth}{3}           % depth of table of contents
\setlength{\stcindent}{24pt}       % indentation of secttocs, default
\renewcommand{\stcfont}{\small\rmfamily\upshape\mdseries} % font for secttocs, default
%\renewcommand{\stcSSfont}{\small\sf} % font for secttocs, subsections
% you can make experiments with \stcSSSfont, \stcPfont and \stcSPfont
% but it is ``fontomania''...
\raggedbottom                   % or \flushbottom, at your choice
%\parskip=12pt                  % a bug about \parskip has been fixed
%%% TEST: uncomment the 3 next lines to test
%%% resetting section number in each part
%\makeatletter
%\@addtoreset{section}{part}
%\makeatother
%%% END TEST
\dosecttoc
\dosectlof[c]                   % center title of sectlof's
\dosectlot
\doparttoc                      % test of parttoc/partlof stuff
\dopartlof                      % added in version #15
\dopartlot                      % added in version #15
\begin{document}
\faketableofcontents                % or \faketableofcontents
\fakelistoffigures              % to check compatibility
\fakelistoftables               % to check compatibility
\part{First Part}
\parttoc
\partlof[r]
\partlot
\twocolumn                      % the secttoc in twocolumn layout is ugly,
                                % but works. Ideas to make it better?
\section{AAAAA}                 % a section with a lot of sections
\secttoc[r]                     % secttoc title on the right
\mtcskip \sectlof %ADDED
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsection{S1}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsection{S2}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsection{S3}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsection*{S4}
%\addcontentsline{toc}{starsubsection}{*S4*}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsection{S5}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsection{S6}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsection{S7}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsection{S8}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsection{S9}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsection{S10}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsection{S11}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsection{S12}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsection{S13}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsection{S14}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsection{S15}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsection{S16}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsection{S17}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsection{S18}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsection{S19}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsection{S20}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsection{S21}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsection{S22}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsection{S23}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsection{S24}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsection{S26}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsection{S27}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsection{S28}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsection{S29}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsection{S30}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\onecolumn                              % back to one column
\section{BBBBB}
\secttoc
\mtcskip                                % put some skip here
\sectlof                                % a sectlof
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsection{T1}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\begin{figure}[t]        % tests compatibility with floating bodies
\setlength{\unitlength}{1mm}
\begin{picture}(100,50)
\end{picture}
\caption{F1}             % (I have not tested tables, but it is similar)
\end{figure}
\FloatBarrier
\subsubsection[tt1]{TT1}    % tests optionnal arg. of a sectionning command
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\paragraph{TTT1}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subparagraph{TTTT1}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\begin{figure}[t]
\setlength{\unitlength}{1mm}
\begin{picture}(100,50)
\end{picture}
\caption[f2]{F2}         % tests optionnal arg. of a caption
\end{figure}
\FloatBarrier
\subsection{T2}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\section*{CCCCC}         % tests a pseudo-section. should have no secttoc
%\addstarredsection{CCCCC}
\mtcaddsection[CCCCC]
\secttoc \mtcskip \sectlof %ADDED
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsection{U1}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsubsection{UU1}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\paragraph{UUU1}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subparagraph{UUUU1}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsection{U2}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\part{Second Part}
\parttoc
\partlof[c]
\partlot
%                        % the following section should have no secttoc,
\section{DDDDD}          % but if you uncomment \secttoc,
\secttoc
\mtcskip \sectlof %ADDED
                         % the secttoc appears
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsection{V1}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsubsection{VV1}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\paragraph{VVV1}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subparagraph{VVVV1}
bla bla bla bla bla bla bla bla bla bla bla
\begin{figure}[t]        % tests compatibility with floating bodies
\setlength{\unitlength}{1mm}
\begin{picture}(100,50)
\end{picture}
\caption{F3}             % (I have not tested tables, but it is similar)
\end{figure}
\FloatBarrier
bla bla bla bla bla bla bla bla bla bla bla
\subsection{V2}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\section{EEEEE}                 % this section should have a secttoc
{%                              % left brace, see below
\setcounter{secttocdepth}{3}    % depth of sect table of contents;
                                % try with different values.
\secttoc
\mtcskip \sectlof %ADDED
}                               % right brace
% this pair of braces is used to keep local the change
% on secttocdepth.
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsection{W1}                    % with the given depth
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsubsection{WW1}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\paragraph{WWW1}
bla bla bla bla bla bla bla bla bla bla bla
\begin{figure}[t]        % tests compatibility with floating bodies
\setlength{\unitlength}{1mm}
\begin{picture}(100,50)
\end{picture}
\caption{F4}             % (I have not tested tables, but it is similar)
\end{figure}
\FloatBarrier
bla bla bla bla bla bla bla bla bla bla bla
\subparagraph{WWWW1}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\subsection{W2}
bla bla bla bla bla bla bla bla bla bla bla
bla bla bla bla bla bla bla bla bla bla bla
\chapter*{}
\part{Appendices}
\parttoc
\mtcskip
\partlof
\mtcskip
\partlot
\FloatBarrier
\appendix
\section{Comments}
\secttoc
\mtcskip \sectlof %ADDED
\subsection{C1}
\subsection{C2}
\subsection{C3}
\begin{figure}[hb]        % tests compatibility with floating bodies
\setlength{\unitlength}{1mm}
\begin{picture}(100,50)
\end{picture}
\caption{F5}             % (I have not tested tables, but it is similar)
\end{figure}
\FloatBarrier
\subsection{C4}
\FloatBarrier
\section{Evolution}
\secttoc
\sectlof % empty
\sectlot % empty
\subsection{D1}
\subsection{D2}
\subsection{D3}
\subsection{D4}
\end{document}