Debian Codegraph @

texmf-dist/doc/latex/minitoc/examples/mtc-3co.tex

raw
1 %%
2 %% This is file `mtc-3co.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% minitoc.dtx (with options: `mtc-3co')
8 %% This is a generated file.
9 %%
10 %%
11 %% This file may be distributed and/or modified under the conditions of
12 %% the LaTeX Project Public License, either version 1.3 of this license
13 %% or (at your option) any later version. The latest version of this
14 %% license is in:
15 %%
16 %% http://www.latex-project.org/lppl.txt
17 %%
18 %% and version 1.3 or later is part of all distributions of LaTeX version
19 %% 2003/12/01 or later.
20 %%
21 %% This work has the LPPL maintenance status "maintained".
22 %%
23 %% The Current Maintainer of this work is GitHub minitoc organisation.
24 %%
25 %% This work consists of all the files listed in the file `minitoc.l'
26 %% distributed with it.
27 %% Copyright 1993 1994 1995 1996 1997 1998 1999 2000
28 %% 2001 2002 2003 2004 2005 2006 2007 2008
29 %% Jean-Pierre F. Drucbert
30 %% Copyright 2018 GitHub minitoc organisation (David Carlisle)
31 \documentclass[oneside]{book}
32 \ProvidesFile{mtc-3co.tex}%
33 [2007/02/19]
34 \usepackage[a3paper]{geometry}
35 \usepackage{lipsum}
36 \usepackage{multicol}
37 \usepackage[toc]{multitoc}
38 \renewcommand{\multicolumntoc}{3}
39 %%%%%%%%%%%%%%%%%%%%
40 \usepackage[tight]{minitoc}
41 \setlength{\mtcindent}{0pt}
42 \mtcsetformat{minitoc}{tocrightmargin}{2.55em plus 1fil}
43 \newcommand{\multicolumnmtc}{3}
44 \makeatletter
45 \let\SV@mtc@verse\mtc@verse
46 \let\SV@endmtc@verse\endmtc@verse
47 \def\mtc@verse#1{\SV@mtc@verse#1\removelastskip%
48 \begin{multicols}{\multicolumnmtc}\raggedcolumns\leavevmode\unskip
49 \vskip -1.5ex \vskip -1\baselineskip}
50 \def\endmtc@verse{\end{multicols}\SV@endmtc@verse}
51 \makeatother
52 %%%%%%%%%%%%%%%%%%%%
53 \begin{document}
54 \dominitoc
55 \tableofcontents
56 \chapter{First chapter}
57 \minitoc
58 \begin{multicols}{2}
59 \section{First section} \lipsum[\arabic{section}]
60 \section{Second section} \lipsum[\arabic{section}]
61 \section{Third section} \lipsum[\arabic{section}]
62 \section{Fourth section} \lipsum[\arabic{section}]
63 \section{Fifth section} \lipsum[\arabic{section}]
64 \section{Sixth section} \lipsum[\arabic{section}]
65 \section{Seventh section} \lipsum[\arabic{section}]
66 \section{Eighth section} \lipsum[\arabic{section}]
67 \section{Ninth section} \lipsum[\arabic{section}]
68 \section{Tenth section} \lipsum[\arabic{section}]
69 \section{Eleventh section} \lipsum[\arabic{section}]
70 \section{Twelfth section} \lipsum[\arabic{section}]
71 \section{Thirteenth section} \lipsum[\arabic{section}]
72 \section{Fourteenth section} \lipsum[\arabic{section}]
73 \section{Fifteenth section} \lipsum[\arabic{section}]
74 \section{Sixteenth section} \lipsum[\arabic{section}]
75 \section{Seventeenth section} \lipsum[\arabic{section}]
76 \section{Eighteenth section} \lipsum[\arabic{section}]
77 \section{Nineteenth section} \lipsum[\arabic{section}]
78 \section{Twentieth section} \lipsum[\arabic{section}]
79 \section{Twenty-first section} \lipsum[\arabic{section}]
80 \section{Twenty-second section} \lipsum[\arabic{section}]
81 \section{Twenty-third section} \lipsum[\arabic{section}]
82 \section{Twenty-fourth section} \lipsum[\arabic{section}]
83 \subsection{A very long subsection title, for the fun in
84 a multicolumn table of contents} \lipsum[\arabic{section}]
85 \section{Twenty-fifth section} \lipsum[\arabic{section}]
86 \section{Twenty-sixth section} \lipsum[\arabic{section}]
87 \section{Twenty-seventh section} \lipsum[\arabic{section}]
88 \section{Twenty-eighth section} \lipsum[\arabic{section}]
89 \section{Twenty-ninth section} \lipsum[\arabic{section}]
90 \section{Thirtieth section} \lipsum[\arabic{section}]
91 \section{Thirty-first section} \lipsum[\arabic{section}]
92 \section{Thirty-second section} \lipsum[\arabic{section}]
93 \section{Thirty-third section} \lipsum[\arabic{section}]
94 \section{Thirty-fourth section} \lipsum[\arabic{section}]
95 \section{Thirty-fifth section} \lipsum[\arabic{section}]
96 \section{Thirty-sixth section} \lipsum[\arabic{section}]
97 \section{Thirty-seventh section} \lipsum[\arabic{section}]
98 \section{Thirty-eighth section} \lipsum[\arabic{section}]
99 \section{Thirty-ninth section} \lipsum[\arabic{section}]
100 \section{Fortieth section} \lipsum[\arabic{section}]
101 \section{Forty-first section} \lipsum[\arabic{section}]
102 \section{Forty-second section} \lipsum[\arabic{section}]
103 \section{Forty-third section} \lipsum[\arabic{section}]
104 \section{Forty-fourth section} \lipsum[\arabic{section}]
105 \section{Forty-fifth section} \lipsum[\arabic{section}]
106 \section{Forty-sixth section} \lipsum[\arabic{section}]
107 \section{Forty-seventh section} \lipsum[\arabic{section}]
108 \section{Forty-eighth section} \lipsum[\arabic{section}]
109 \section{Forty-ninth section} \lipsum[\arabic{section}]
110 \section{Fiftieth section} \lipsum[\arabic{section}]
111 \section{Fifty-first section} \lipsum[\arabic{section}]
112 \section{Fifty-second section} \lipsum[\arabic{section}]
113 \section{Fifty-third section} \lipsum[\arabic{section}]
114 \section{Fifty-fourth section} \lipsum[\arabic{section}]
115 \section{Fifty-fifth section} \lipsum[\arabic{section}]
116 \section{Fifty-sixth section} \lipsum[\arabic{section}]
117 \section{Fifty-seventh section} \lipsum[\arabic{section}]
118 \section{Fifty-eighth section} \lipsum[\arabic{section}]
119 \section{Fifty-ninth section} \lipsum[\arabic{section}]
120 \end{multicols}
121 \clearpage
122 \end{document}
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 \endinput
230 %%
231 %% End of file `mtc-3co.tex'.