summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/minitoc/mtcoff.sty
blob: 9ce01e4cfacd218c1bdfab27182875f1daa54511 (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
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
%%
%% This is file `mtcoff.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% minitoc.dtx  (with options: `mtcoff')
%% This is a generated file.
%% 
%% 
%% This file may be distributed and/or modified under the conditions of
%% the LaTeX Project Public License, either version 1.3 of this license
%% or (at your option) any later version.  The latest version of this
%% license is in:
%% 
%%    http://www.latex-project.org/lppl.txt
%% 
%% and version 1.3 or later is part of all distributions of LaTeX version
%% 2003/12/01 or later.
%% 
%% This work has the LPPL maintenance status "author-maintained".
%% 
%% This Current Maintainer of this work is Jean-Pierre F. Drucbert (JPFD).
%% 
%% This work consists of all the files listed in the file `minitoc.l'
%% distributed with it.
%% Copyright 1993 1994 1995 1996 1997 1998 1999 2000
%%           2001 2002 2003 2004 2005 2006 2007 2008
%% Jean-Pierre F. Drucbert
%% <jean-pierre.drucbert@onera.fr>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}%
\ProvidesPackage{mtcoff}[2008/06/26 v58 The mtcoff package]
\RequirePackage{mtcmess}[2006/03/14]
\let\c@minitocdepth\count@
\let\mtcindent\dimen@
\let\mtcskipamount\bigskipamount
\let\c@parttocdepth\count@
\let\ptcindent\dimen@
\let\c@secttocdepth\count@
\let\stcindent\dimen@
\let\c@mtc\count@   \let\c@ptc\count@   \let\c@stc\count@
\def\mtcgapbeforeheads{50\p@}  \def\mtcgapafterheads{40\p@}
     \@ifundefined{part}{}{%
        \def\kernafterparttoc{%
         \mtcoffwarn@true
         \mtcPackageWarning[F0008]{mtcoff}%
           {The macro \string\kernafterparttoc
            \MessageBreak
            should not be used out of context
            \MessageBreak}%
          \kern-1.\baselineskip\kern.5ex}%
        \def\kernafterpartlof{%
         \mtcoffwarn@true
         \mtcPackageWarning[F0008]{mtcoff}%
           {The macro \string\kernafterpartlof
            \MessageBreak
            should not be used out of context
            \MessageBreak}%
          \kern-1.\baselineskip\kern.5ex}%
        \def\kernafterpartlot{%
         \mtcoffwarn@true
         \mtcPackageWarning[F0008]{mtcoff}%
           {The macro \string\kernafterpartlot
            \MessageBreak
            should not be used out of context
            \MessageBreak}%
          \kern-1.\baselineskip\kern.5ex}%
                          }%
     \@ifundefined{chapter}{%
        \@ifundefined{section}{}%
                              {%
            \def\kernaftersecttoc{%
                   \mtcoffwarn@true
                   \mtcPackageWarning[F0008]{mtcoff}%
                     {The macro \string\kernaftersecttoc
                      \MessageBreak
                      should not be used out of context
                      \MessageBreak}%
               \kern-1.\baselineskip\kern.5ex}%
            \def\kernaftersectlof{%
                   \mtcoffwarn@true
                   \mtcPackageWarning[F0008]{mtcoff}%
                     {The macro \string\kernaftersectlof
                      \MessageBreak
                      should not be used out of context
                      \MessageBreak}%
               \kern-1.\baselineskip\kern.5ex}%
            \def\kernaftersectlot{%
                   \mtcoffwarn@true
                   \mtcPackageWarning[F0008]{mtcoff}%
                     {The macro \string\kernaftersectlot
                      \MessageBreak
                      should not be used out of context
                      \MessageBreak}%
               \kern-1.\baselineskip\kern.5ex}%
                              }%
                           }%
                           {%
            \def\kernafterminitoc{%
                   \mtcoffwarn@true
                   \mtcPackageWarning[F0008]{mtcoff}%
                     {The macro \string\kernafterminitoc
                      \MessageBreak
                      should not be used out of context
                      \MessageBreak}%
                \kern-.5\baselineskip\kern.5ex}%
            \def\kernafterminilof{%
                   \mtcoffwarn@true
                   \mtcPackageWarning[F0008]{mtcoff}%
                     {The macro \string\kernafterminilof
                      \MessageBreak
                      should not be used out of context
                      \MessageBreak}%
                \kern-1.\baselineskip\kern.0ex}%
            \def\kernafterminilot{%
                   \mtcoffwarn@true
                   \mtcPackageWarning[F0008]{mtcoff}%
                     {The macro \string\kernafterminilot
                      \MessageBreak
                      should not be used out of context
                      \MessageBreak}%
                \kern-1.\baselineskip\kern.0ex}%
                           }%
     \@ifundefined{part}{}{%
        \def\ptcoffset{%
         \mtcoffwarn@true
         \mtcPackageWarning[F0009]{mtcoff}%
           {The macro \string\ptcoffset
            \MessageBreak
            should not be used out of context
            \MessageBreak}%
          0pt}%
        \def\plfoffset{%
         \mtcoffwarn@true
         \mtcPackageWarning[F0009]{mtcoff}%
           {The macro \string\plfoffset
            \MessageBreak
            should not be used out of context
            \MessageBreak}%
          0pt}%
        \def\pltoffset{%
         \mtcoffwarn@true
         \mtcPackageWarning[F0009]{mtcoff}%
           {The macro \string\pltoffset
            \MessageBreak
            should not be used out of context
            \MessageBreak}%
          0pt}%
                          }%
     \@ifundefined{chapter}{%
        \@ifundefined{section}{}%
                              {%
            \def\stcoffset{%
                   \mtcoffwarn@true
                   \mtcPackageWarning[F0009]{mtcoff}%
                     {The macro \string\stcoffset
                      \MessageBreak
                      should not be used out of context
                      \MessageBreak}%
               0pt}%
            \def\slfoffset{%
                   \mtcoffwarn@true
                   \mtcPackageWarning[F0009]{mtcoff}%
                     {The macro \string\slfoffset
                      \MessageBreak
                      should not be used out of context
                      \MessageBreak}%
               0pt}%
            \def\sltoffset{%
                   \mtcoffwarn@true
                   \mtcPackageWarning[F0009]{mtcoff}%
                     {The macro \string\sltoffset
                      \MessageBreak
                      should not be used out of context
                      \MessageBreak}%
               0pt}%
                              }%
                           }%
                           {%
            \def\mtcoffset{%
                   \mtcoffwarn@true
                   \mtcPackageWarning[F0009]{mtcoff}%
                     {The macro \string\mtcoffset
                      \MessageBreak
                      should not be used out of context
                      \MessageBreak}%
                0pt}%
            \def\slfoffset{%
                   \mtcoffwarn@true
                   \mtcPackageWarning[F0009]{mtcoff}%
                     {The macro \string\slfoffset
                      \MessageBreak
                      should not be used out of context
                      \MessageBreak}%
                0pt}%
            \def\mltoffset{%
                   \mtcoffwarn@true
                   \mtcPackageWarning[F0009]{mtcoff}%
                     {The macro \string\mltoffset
                      \MessageBreak
                      should not be used out of context
                      \MessageBreak}%
                0pt}%
                           }%
\let\faketableofcontents\relax
\let\fakelistoffigures\relax
\let\fakelistoftables\relax
\let\mtcskip\relax
\newcommand{\adjustptc}[1][1]{\relax}
\newcommand{\adjustmtc}[1][1]{\relax}
\newcommand{\adjuststc}[1][1]{\relax}
\let\decrementptc\relax \let\incrementptc\relax
\let\decrementmtc\relax \let\incrementmtc\relax
\let\decrementstc\relax \let\incrementstc\relax
\let\partend\relax    \let\partbegin\relax
\let\chapterend\relax \let\chapterbegin\relax
\let\sectend\relax    \let\sectbegin\relax
\def\gobbleopt@[#1]{\relax}
\def\doparttoc{\@ifnextchar[{\gobbleopt@}{\gobbleopt@[l]}}
\def\dopartlof{\@ifnextchar[{\gobbleopt@}{\gobbleopt@[l]}}
\def\dopartlot{\@ifnextchar[{\gobbleopt@}{\gobbleopt@[l]}}
\def\parttoc{\@ifnextchar[{\gobbleopt@}{\gobbleopt@[l]}}
\def\partlof{\@ifnextchar[{\gobbleopt@}{\gobbleopt@[l]}}
\def\partlot{\@ifnextchar[{\gobbleopt@}{\gobbleopt@[l]}}
\def\dominitoc{\@ifnextchar[{\gobbleopt@}{\gobbleopt@[l]}}
\def\dominilof{\@ifnextchar[{\gobbleopt@}{\gobbleopt@[l]}}
\def\dominilot{\@ifnextchar[{\gobbleopt@}{\gobbleopt@[l]}}
\def\minitoc{\@ifnextchar[{\gobbleopt@}{\gobbleopt@[l]}}
\def\minilof{\@ifnextchar[{\gobbleopt@}{\gobbleopt@[l]}}
\def\minilot{\@ifnextchar[{\gobbleopt@}{\gobbleopt@[l]}}
\def\dosecttoc{\@ifnextchar[{\gobbleopt@}{\gobbleopt@[l]}}
\def\dosectlof{\@ifnextchar[{\gobbleopt@}{\gobbleopt@[l]}}
\def\dosectlot{\@ifnextchar[{\gobbleopt@}{\gobbleopt@[l]}}
\def\secttoc{\@ifnextchar[{\gobbleopt@}{\gobbleopt@[l]}}
\def\sectlof{\@ifnextchar[{\gobbleopt@}{\gobbleopt@[l]}}
\def\sectlot{\@ifnextchar[{\gobbleopt@}{\gobbleopt@[l]}}
\def\mtcprepare{\@ifnextchar[{\gobbleopt@}{\gobbleopt@[l]}}
\newif\ifinparttoc\inparttocfalse%
\newif\ifinpartlof\inpartloffalse%
\newif\ifinpartlot\inpartlotfalse%
\newif\ifinsecttoc\insecttocfalse%
\newif\ifinsectlof\insectloffalse%
\newif\ifinsectlot\insectlotfalse%
\newif\ifinminitoc\inminitocfalse%
\newif\ifinminilof\inminiloffalse%
\newif\ifinminilot\inminilotfalse%
\let\tf@mtc\count@
\let\mtc@string\relax
\let\appendixmtc\relax
\let\l@xchapter\@gobbletwo
\let\xchapter\relax
\let\pchapter\relax
\let\psect\relax
\let\l@xpart\@gobbletwo
\let\xpart\relax
\let\l@xsect\@gobbletwo
\let\xsect\relax
\let\ptcfont\empty
\let\ptcCfont\empty
\let\ptcSfont\empty
\let\ptcSSfont\empty
\let\ptcSSSfont\empty
\let\ptcPfont\empty
\let\ptcSPfont\empty
\let\plffont\empty
\let\plfSfont\empty
\let\pltfont\empty
\let\pltSfont\empty
\let\ptifont\empty
\let\mtcfont\empty
\let\mtcSfont\empty
\let\mtcSSfont\empty
\let\mtcSSSfont\empty
\let\mtcPfont\empty
\let\mtcSPfont\empty
\let\mlffont\empty
\let\mlfSfont\empty
\let\mltfont\empty
\let\mltSfont\empty
\let\mtifont\empty
\let\stcfont\empty
\let\stcSSfont\empty
\let\stcSSSfont\empty
\let\stcPfont\empty
\let\stcSPfont\empty
\let\slffont\empty
\let\slfSfont\empty
\let\sltfont\empty
\let\sltSfont\empty
\let\stifont\empty
\let\coffeefont\empty
\let\mtcsetdepth\@gobbletwo
\let\mtcsetoffset\@gobbletwo
\def\mtcsetfont#1#2#3{\empty}
\let\mtcsettitlefont\@gobbletwo
\let\mtcsettitle\@gobbletwo
\def\mtcsetformat#1#2#3{\empty}
\def\mtcsetfeature#1#2#3{\empty}
\let\mtcsetpagenumbers\@gobbletwo
\let\mtcsetrules\@gobbletwo
\@ifundefined{part}{}{\let\l@starpart\l@part}
\@ifundefined{chapter}{}{\let\l@starchapter\l@chapter}
\@ifundefined{section}{}{\let\l@starsection\l@section}
\@ifundefined{subsection}{}{\let\l@starsubsection\l@subsection}
\@ifundefined{subsubsection}{}{\let\l@starsubsubsection\l@subsubsection}
\@ifundefined{paragraph}{}{\let\l@starparagraph\l@paragraph}
\@ifundefined{subparagraph}{}{\let\l@starsubparagraph\l@subparagraph}
\let\firstpartis\@gobble \let\firstchapteris\@gobble \let\firstsectionis\@gobble
\let\mtcselectlanguage\@gobble   \let\mtcloadmlo\@gobble
\let\ptcrule\relax
\let\noptcrule\relax
\let\mtcrule\relax
\let\nomtcrule\relax
\let\stcrule\relax
\let\nostcrule\relax
\let\plfrule\relax
\let\noplfrule\relax
\let\mlfrule\relax
\let\nomlfrule\relax
\let\slfrule\relax
\let\noslfrule\relax
\let\pltrule\relax
\let\nopltrule\relax
\let\mltrule\relax
\let\nomltrule\relax
\let\sltrule\relax
\let\nosltrule\relax
\let\mtcpagenumbers\relax
\let\nomtcpagenumbers\relax
\let\stcpagenumbers\relax
\let\nostcpagenumbers\relax
\let\ptcpagenumbers\relax
\let\noptcpagenumbers\relax
\let\mlfpagenumbers\relax
\let\nomlfpagenumbers\relax
\let\slfpagenumbers\relax
\let\noslfpagenumbers\relax
\let\plfpagenumbers\relax
\let\noplfpagenumbers\relax
\let\mltpagenumbers\relax
\let\nomltpagenumbers\relax
\let\sltpagenumbers\relax
\let\nosltpagenumbers\relax
\let\pltpagenumbers\relax
\let\nopltpagenumbers\relax
\let\beforeparttoc\empty
\let\beforepartlof\empty
\let\beforepartlot\empty
\let\afterparttoc\empty
\let\afterpartlof\empty
\let\afterpartlot\empty
\let\openparttoc\empty
\let\openpartlof\empty
\let\openpartlot\empty
\let\closeparttoc\empty
\let\closepartlof\empty
\let\closepartlot\empty
\let\thispageparttocstyle\empty
\let\thispagepartlofstyle\empty
\let\thispagepartlotstyle\empty
\let\beforeminitoc\empty
\let\beforeminilof\empty
\let\beforeminilot\empty
\let\afterminitoc\empty
\let\afterminilof\empty
\let\afterminilot\empty
\let\openminitoc\empty
\let\openminilof\empty
\let\openminilot\empty
\let\closeminitoc\empty
\let\closeminilof\empty
\let\closeminilot\empty
\let\thispageminitocstyle\empty
\let\thispageminilofstyle\empty
\let\thispageminilotstyle\empty
\let\beforesecttoc\empty
\let\beforesectlof\empty
\let\beforesectlot\empty
\let\aftersecttoc\empty
\let\aftersectlof\empty
\let\aftersectlot\empty
\let\opensecttoc\empty
\let\opensectlof\empty
\let\opensectlot\empty
\let\closesecttoc\empty
\let\closesectlof\empty
\let\closesectlot\empty
\let\thispagesecttocstyle\empty
\let\thispagesectlofstyle\empty
\let\thispagesectlotstyle\empty
\newif\if@mtc@longext@ \@mtc@longext@true
\newif\iftightmtc \tightmtcfalse
\newif\ifktightmtc \ktightmtcfalse
\newif\ifundottedmtc \undottedmtcfalse
\newif\ifmtcsecondpart \mtcsecondpartfalse
\let\l@listof\chapter
\newif\ifmtcoffwarn@ \mtcoffwarn@false
\AtEndDocument{\ifmtcoffwarn@
   \mtcPackageWarningNoLine[F0007]{mtcoff}%
      {You should scan (backwards) your .log
       \MessageBreak
       file to find some commands needing
       \MessageBreak
       to be replaced if you decide to
       \MessageBreak
       DEFINITELY stop using minitoc for this
       \MessageBreak
       document. It is more wise to keep the
       \MessageBreak
       \string\usepackage\space lines for minitoc and mtcoff
       \MessageBreak
       and to comment out only one of them}
\fi}
\newcommand{\mtcaddchapter}[1][]{\mtcoffwarn@true
   \mtcPackageWarning[F0004]{mtcoff}%
   {\protect\mtcaddchapter{...} should be replaced
    \MessageBreak
    by \protect\addcontentsline{toc}{chapter}{...}
    \MessageBreak}
\def\mtc@ck{#1}
\ifx\mtc@ck\empty
\else
   \addcontentsline{toc}{chapter}{#1}%
\fi}
\newcommand{\mtcaddsection}[1][]{\mtcoffwarn@true
   \mtcPackageWarning[F0006]{mtcoff}%
      {\protect\mtcaddsection{...} should be replaced
       \MessageBreak
       by \protect\addcontentsline{toc}{section}{...}
       \MessageBreak}
\def\mtc@ck{#1}
\ifx\mtc@ck\empty
\else
     \addcontentsline{toc}{part}{#1}%
\fi}
\newcommand{\mtcaddpart}[1][]{\mtcoffwarn@true
   \mtcPackageWarning[F0005]{mtcoff}%
      {\protect\mtcaddpart{...} should be replaced
       \MessageBreak
       by \protect\addcontentsline{toc}{part}{...}
       \MessageBreak}
\def\mtc@ck{#1}
\ifx\mtc@ck\empty
\else
   \addcontentsline{toc}{part}{#1}%
\fi}
\def\addcoffeeline#1#2#3{\relax}
\let\coffeeline\@gobble
\let\l@coffee\relax
\def\@Undottedtocline#1#2#3#4#5{\relax}
\def\@Undottedtoclinep#1#2#3#4#5{\relax}
\newenvironment{mtchideinmaintoc}[1][-1]{\empty}{\empty}
\newenvironment{mtchideinmainlof}[1][-1]{\empty}{\empty}
\newenvironment{mtchideinmainlot}[1][-1]{\empty}{\empty}
\let\mtc@savetocdepth\empty
\let\mtc@savelofdepth\empty
\let\mtc@savelotdepth\empty
\let\mtc@restoretocdepth\empty
\let\mtc@restorelofdepth\empty
\let\mtc@restorelotdepth\empty
\newcommand{\mtcfixglossary}[1][]{\relax}
\newcommand{\mtcfixindex}[1][]{\relax}
\newcommand{\mtcfixnomenclature}[1][]{\relax}
\def\addstarredpart#1{\mtcoffwarn@true
   \mtcPackageWarning[F0002]{mtcoff}%
   {\protect\addstarredpart{...} should be replaced by
    \MessageBreak
    \protect\addcontentsline{toc}{part}{...}
    \MessageBreak}
   \addcontentsline{toc}{part}{#1}}
\def\addstarredchapter#1{\mtcoffwarn@true
   \mtcPackageWarning[F0001]{mtcoff}%
   {\protect\addstarredchapter{...} should be replaced by
    \MessageBreak
    \protect\addcontentsline{toc}{chapter}{...}
    \MessageBreak}
   \addcontentsline{toc}{chapter}{#1}}
\def\addstarredsection#1{\mtcoffwarn@true
   \mtcPackageWarning[F0003]{mtcoff}%
   {\protect\addstarredsection{...} should be replaced by
    \MessageBreak
    \protect\addcontentsline{toc}{section}{...}
    \MessageBreak}
   \addcontentsline{toc}{section}{#1}}
%%
\endinput
%%
%% End of file `mtcoff.sty'.