misc fixes to LM
[light-and-matter.git] / mytocloft.sty
blob0a4a1438774382a286582d358502c16c64633fea
2 % This is a version of tocloft that I've modified to eliminated the hardcoded
3 % \par after the table of contents title. My modifications are
4 % are commented with my name.
5 % - Ben Crowell, 2002 Jan 1
7 %%
8 %% This is file `tocloft.sty',
9 %% generated with the docstrip utility.
11 %% The original source files were:
13 %% tocloft.dtx (with options: `usc')
14 %%
15 %% Copyright 1998, 1999 Peter R. Wilson
16 %%
17 %% This program is provided under the terms of the
18 %% LaTeX Project Public License distributed from CTAN
19 %% archives in directory macros/latex/base/lppl.txt.
20 %%
21 %% Author: Peter Wilson (CUA and NIST)
22 %% now at: peter.r.wilson@boeing.com
23 %%
24 \NeedsTeXFormat{LaTeX2e}
25 \ProvidesPackage{tocloft}[1999/09/19 v1.0 parameterised ToC, etc., typesetting]
26 \RequirePackage{stdclsdv}
27 \providecommand{\PRWPackageNote}[2]{%
28 \GenericWarning{%
29 (#1)\@spaces\@spaces\@spaces\@spaces
30 }{%
31 Package #1 Note: #2%
34 \providecommand{\PRWPackageNoteNoLine}[2]{%
35 \PRWPackageNote{#1}{#2\@gobble}%
37 \ifSCDnodivs
38 \PackageWarning{tocloft}%
39 {I don't recognize any sectional divisions so I'll do nothing}
40 \renewcommand{\SCDquit}{\endinput}
41 \fi
42 \SCDquit
43 \ifSCDknownclass\else
44 \PackageWarning{tocloft}%
45 {I don't recognize the class but I'll do my best}
46 \ifSCDnodivs
47 \PackageWarning{tocloft}%
48 {I don't recognize any sectional divisions so I'll do nothing}
49 \renewcommand{\SCDquit}{\endinput}
50 \else
51 \ifSCDchapter
52 \PRWPackageNoteNoLine{tocloft}{The document class has chapter divisions}
53 \else
54 \ifSCDsection
55 \PRWPackageNoteNoLine{tocloft}{The document class has section divisions}
56 \else
57 \PackageWarning{tocloft}%
58 {The class has neither chapters nor sections, so I'll do nothing}
59 \renewcommand{\SCDquit}{\endinput}
60 \fi
61 \fi
62 \fi
63 \fi
64 \SCDquit
65 \newif\if@cfttocbibind
66 \AtBeginDocument{%
67 \@ifpackageloaded{tocbibind}{\@cfttocbibindtrue}{\@cfttocbibindfalse}
68 \if@cfttocbibind
69 \@ifpackagelater{tocbibind}{1998/11/16}{}{%
70 \PackageWarning{tocloft}{%
71 You are using a version of the tocbibind package\MessageBreak
72 that is not compatible with tocloft.\MessageBreak
73 The results may be surprising.\MessageBreak
74 Consider installing the current version of tocbibind.}}
75 \fi
77 \newif\if@cftnctoc\@cftnctocfalse
78 \DeclareOption{titles}{\@cftnctoctrue}
79 \ProcessOptions\relax
80 \newcommand{\cftmarktoc}{%
81 \@mkboth{\MakeUppercase\contentsname}{\MakeUppercase\contentsname}}
82 \newcommand{\cftmarklof}{%
83 \@mkboth{\MakeUppercase\listfigurename}{\MakeUppercase\listfigurename}}
84 \newcommand{\cftmarklot}{%
85 \@mkboth{\MakeUppercase\listtablename}{\MakeUppercase\listtablename}}
86 \newcommand{\@cfttocstart}{%
87 \ifSCDchapter
88 \if@twocolumn
89 \@restonecoltrue\onecolumn
90 \else
91 \@restonecolfalse
92 \fi
93 \fi}
94 \newcommand{\@cfttocfinish}{%
95 \ifSCDchapter
96 \if@restonecol\twocolumn\fi
97 \fi}
98 \newcommand{\@cftdobibtoc}{%
99 \if@dotoctoc
100 \if@bibchapter
101 \addcontentsline{toc}{chapter}{\contentsname}
102 \else
103 \addcontentsline{toc}{\@tocextra}{\contentsname}
105 \fi}
106 \AtBeginDocument{%
107 \if@cftnctoc\else
108 \renewcommand{\tableofcontents}{%
109 \@cfttocstart%
110 %whoopsie%\par% B. Crowell, 2002 Jan 1
111 \begingroup
112 \parindent\z@ \parskip\z@
113 %\@cftmaketoctitle
114 %\if@cfttocbibind
115 % \@cftdobibtoc
116 %\fi
117 \@starttoc{toc}%
118 \endgroup
119 \@cfttocfinish}
122 \newcommand{\@cftmaketoctitle}{%
123 \vspace*{\cftbeforetoctitleskip}
124 \interlinepenalty\@M
125 {\cfttoctitlefont\contentsname}{\cftaftertoctitle}
126 \cftmarktoc
127 \par\nobreak
128 \vskip \cftaftertoctitleskip
129 \@afterheading}
130 \newlength{\cftbeforetoctitleskip}
131 \newlength{\cftaftertoctitleskip}
132 \ifSCDchapter
133 \setlength{\cftbeforetoctitleskip}{50pt}
134 \setlength{\cftaftertoctitleskip}{40pt}
135 \else
136 \setlength{\cftbeforetoctitleskip}{3.5ex \@plus 1ex \@minus .2ex}
137 \setlength{\cftaftertoctitleskip}{2.3ex \@plus.2ex}
139 \ifSCDchapter
140 \newcommand{\cfttoctitlefont}{\normalfont\Huge\bfseries}
141 \else
142 \newcommand{\cfttoctitlefont}{\normalfont\Large\bfseries}
144 \newcommand{\cftaftertoctitle}{}
145 \newcommand{\cftsetpnumwidth}[1]{\renewcommand{\@pnumwidth}{#1}}
146 \newcommand{\cftsetrmarg}[1]{\renewcommand{\@tocrmarg}{#1}}
147 \newcommand{\cftdot}{.}
148 \newcommand{\@cftdotfill}[1]{%
149 \leaders\hbox{$\m@th\mkern #1 mu\hbox{\cftdot}\mkern #1 mu$}\hfill}
150 \newcommand{\cftdotsep}{4.5}
151 \newcommand{\cftnodots}{10000}
152 \newcommand{\cftparfillskip}{\parfillskip=0pt plus1fil}
153 \renewcommand{\numberline}[1]{%
154 \hb@xt@\@tempdima{#1\@cftasnum\hfil}\@cftasnumb}
155 \newcommand{\@cftasnum}{}
156 \newcommand{\@cftasnumb}{}
157 \newif\if@cftdopart
158 \ifSCDpart
159 \renewcommand*{\l@part}[2]{%
160 \@cftdopartfalse
161 \ifnum \c@tocdepth >-2\relax
162 \ifSCDchapter
163 \@cftdoparttrue
165 \ifnum \c@tocdepth >\m@ne
166 \ifSCDchapter\else
167 \@cftdoparttrue
171 \if@cftdopart
172 \ifSCDchapter
173 \addpenalty{-\@highpenalty}%
174 \else
175 \addpenalty\@secpenalty
177 \addvspace{\cftbeforepartskip}%
178 \@tempdima \cftpartnumwidth\relax
179 \let\@cftasnum \cftpartaftersnum
180 \let\@cftasnumb \cftpartaftersnumb
181 \begingroup
182 \parindent \z@ \rightskip \@pnumwidth
183 \parfillskip -\@pnumwidth
184 {\leavevmode
185 {\cftpartfont #1}{\cftpartleader}
186 {\hb@xt@\@pnumwidth{\hss {\cftpartpagefont #2}}}\cftpartafterpnum}\par
187 \nobreak
188 \ifSCDchapter
189 \global\@nobreaktrue
190 \everypar{\global\@nobreakfalse\everypar{}}%
191 \else
192 \if@compatibility
193 \global\@nobreaktrue
194 \everypar{\global\@nobreakfalse\everypar{}}%
197 \endgroup
198 \fi}
200 \newlength{\cftbeforepartskip}
201 \setlength{\cftbeforepartskip}{2.25em \@plus\p@}
202 \newlength{\cftpartnumwidth}
203 \setlength{\cftpartnumwidth}{3em}
204 \newcommand{\cftpartfont}{\large\bfseries}
205 \newcommand{\cftpartaftersnum}{}
206 \newcommand{\cftpartaftersnumb}{}
207 \newcommand{\cftpartleader}{\large\bfseries\@cftdotfill{\cftpartdotsep}}
208 \newcommand{\cftpartdotsep}{\cftnodots}
209 \newcommand{\cftpartpagefont}{\large\bfseries}
210 \newcommand{\cftpartafterpnum}{}
211 \ifSCDchapter
212 \renewcommand*{\l@chapter}[2]{%
213 \ifnum \c@tocdepth >\m@ne
214 \addpenalty{-\@highpenalty}%
215 \vskip \cftbeforechapskip
216 {\leftskip \cftchapindent\relax
217 \rightskip \@tocrmarg
218 \parfillskip -\rightskip
219 \parindent \cftchapindent\relax\@afterindenttrue
220 \interlinepenalty\@M
221 \leavevmode
222 \@tempdima \cftchapnumwidth\relax
223 \let\@cftasnum \cftchapaftersnum
224 \let\@cftasnumb \cftchapaftersnumb
225 \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
226 {\cftchapfont #1}\nobreak
227 {\cftchapleader}
228 \nobreak
229 \hb@xt@\@pnumwidth{\hfil\cftchappagefont #2}\cftchapafterpnum\par}%
230 \fi}
232 \newlength{\cftbeforechapskip}
233 \setlength{\cftbeforechapskip}{1.0em \@plus\p@}
234 \newlength{\cftchapindent}
235 \setlength{\cftchapindent}{0em}
236 \newlength{\cftchapnumwidth}
237 \setlength{\cftchapnumwidth}{1.5em}
238 \newcommand{\cftchapfont}{\bfseries}
239 \newcommand{\cftchapaftersnum}{}
240 \newcommand{\cftchapaftersnumb}{}
241 \newcommand{\cftchapleader}{\bfseries\@cftdotfill{\cftchapdotsep}}
242 \newcommand{\cftchapdotsep}{\cftnodots}
243 \newcommand{\cftchappagefont}{\bfseries}
244 \newcommand{\cftchapafterpnum}{}
245 \renewcommand*{\l@section}[2]{%
246 \ifnum \c@tocdepth >\z@
247 \ifSCDchapter
248 \vskip \cftbeforesecskip
249 \else
250 \addpenalty\@secpenalty
251 \addvspace{\cftbeforesecskip}
253 {\leftskip \cftsecindent\relax
254 \rightskip \@tocrmarg
255 \parfillskip -\rightskip
256 \parindent \cftsecindent\relax\@afterindenttrue
257 \interlinepenalty\@M
258 \leavevmode
259 \@tempdima \cftsecnumwidth\relax
260 \let\@cftasnum \cftsecaftersnum
261 \let\@cftasnumb \cftsecaftersnumb
262 \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
263 {\cftsecfont #1}\nobreak
264 {\cftsecleader}
265 \nobreak
266 \hb@xt@\@pnumwidth{\hfil\cftsecpagefont #2}\cftsecafterpnum\par}%
267 \fi}
268 \newlength{\cftbeforesecskip}
269 \ifSCDchapter
270 \setlength{\cftbeforesecskip}{\z@ \@plus.2\p@}
271 \else
272 \setlength{\cftbeforesecskip}{1.0em \@plus\p@}
274 \newlength{\cftsecindent}
275 \ifSCDchapter
276 \setlength{\cftsecindent}{1.5em}
277 \else
278 \setlength{\cftsecindent}{0em}
280 \newlength{\cftsecnumwidth}
281 \ifSCDchapter
282 \setlength{\cftsecnumwidth}{2.3em}
283 \else
284 \setlength{\cftsecnumwidth}{1.5em}
286 \ifSCDchapter
287 \newcommand{\cftsecfont}{\normalfont}
288 \else
289 \newcommand{\cftsecfont}{\bfseries}
291 \newcommand{\cftsecaftersnum}{}
292 \newcommand{\cftsecaftersnumb}{}
293 \ifSCDchapter
294 \newcommand{\cftsecleader}{\normalfont\@cftdotfill{\cftsecdotsep}}
295 \else
296 \newcommand{\cftsecleader}{\bfseries\@cftdotfill{\cftsecdotsep}}
298 \ifSCDchapter
299 \newcommand{\cftsecdotsep}{\cftdotsep}
300 \else
301 \newcommand{\cftsecdotsep}{\cftnodots}
303 \ifSCDchapter
304 \newcommand{\cftsecpagefont}{\normalfont}
305 \else
306 \newcommand{\cftsecpagefont}{\bfseries}
308 \newcommand{\cftsecafterpnum}{}
309 \renewcommand*{\l@subsection}[2]{%
310 \ifnum \c@tocdepth >\@ne
311 \vskip \cftbeforesubsecskip
312 {\leftskip \cftsubsecindent\relax
313 \rightskip \@tocrmarg
314 \parfillskip -\rightskip
315 \parindent \cftsubsecindent\relax\@afterindenttrue
316 \interlinepenalty\@M
317 \leavevmode
318 \@tempdima \cftsubsecnumwidth\relax
319 \let\@cftasnum \cftsubsecaftersnum
320 \let\@cftasnumb \cftsubsecaftersnumb
321 \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
322 {\cftsubsecfont #1}\nobreak
323 {\cftsubsecleader}
324 \nobreak
325 \hb@xt@\@pnumwidth{\hfil\cftsubsecpagefont #2}\cftsubsecafterpnum\par}%
326 \fi}
327 \newlength{\cftbeforesubsecskip}
328 \setlength{\cftbeforesubsecskip}{\z@ \@plus.2\p@}
329 \newlength{\cftsubsecindent}
330 \ifSCDchapter
331 \setlength{\cftsubsecindent}{3.8em}
332 \else
333 \setlength{\cftsubsecindent}{1.5em}
335 \newlength{\cftsubsecnumwidth}
336 \ifSCDchapter
337 \setlength{\cftsubsecnumwidth}{3.2em}
338 \else
339 \setlength{\cftsubsecnumwidth}{2.3em}
341 \newcommand{\cftsubsecfont}{\normalfont}
342 \newcommand{\cftsubsecaftersnum}{}
343 \newcommand{\cftsubsecaftersnumb}{}
344 \newcommand{\cftsubsecleader}{\normalfont\@cftdotfill{\cftsubsecdotsep}}
345 \newcommand{\cftsubsecdotsep}{\cftdotsep}
346 \newcommand{\cftsubsecpagefont}{\normalfont}
347 \newcommand{\cftsubsecafterpnum}{}
348 \renewcommand*{\l@subsubsection}[2]{%
349 \ifnum \c@tocdepth >\tw@
350 \vskip \cftbeforesubsubsecskip
351 {\leftskip \cftsubsubsecindent\relax
352 \rightskip \@tocrmarg
353 \parfillskip -\rightskip
354 \parindent \cftsubsubsecindent\relax\@afterindenttrue
355 \interlinepenalty\@M
356 \leavevmode
357 \@tempdima \cftsubsubsecnumwidth\relax
358 \let\@cftasnum \cftsubsubsecaftersnum
359 \let\@cftasnumb \cftsubsubsecaftersnumb
360 \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
361 {\cftsubsubsecfont #1}\nobreak
362 {\cftsubsubsecleader}
363 \nobreak
364 \hb@xt@\@pnumwidth{\hfil\cftsubsubsecpagefont #2}\cftsubsubsecafterpnum\par}%
365 \fi}
366 \newlength{\cftbeforesubsubsecskip}
367 \setlength{\cftbeforesubsubsecskip}{\z@ \@plus.2\p@}
368 \newlength{\cftsubsubsecindent}
369 \ifSCDchapter
370 \setlength{\cftsubsubsecindent}{7.0em}
371 \else
372 \setlength{\cftsubsubsecindent}{3.8em}
374 \newlength{\cftsubsubsecnumwidth}
375 \ifSCDchapter
376 \setlength{\cftsubsubsecnumwidth}{4.1em}
377 \else
378 \setlength{\cftsubsubsecnumwidth}{3.2em}
380 \newcommand{\cftsubsubsecfont}{\normalfont}
381 \newcommand{\cftsubsubsecaftersnum}{}
382 \newcommand{\cftsubsubsecaftersnumb}{}
383 \newcommand{\cftsubsubsecleader}{\normalfont\@cftdotfill{\cftsubsubsecdotsep}}
384 \newcommand{\cftsubsubsecdotsep}{\cftdotsep}
385 \newcommand{\cftsubsubsecpagefont}{\normalfont}
386 \newcommand{\cftsubsubsecafterpnum}{}
387 \renewcommand*{\l@paragraph}[2]{%
388 \ifnum \c@tocdepth >3\relax
389 \vskip \cftbeforeparaskip
390 {\leftskip \cftparaindent\relax
391 \rightskip \@tocrmarg
392 \parfillskip -\rightskip
393 \parindent \cftparaindent\relax\@afterindenttrue
394 \interlinepenalty\@M
395 \leavevmode
396 \@tempdima \cftparanumwidth\relax
397 \let\@cftasnum \cftparaaftersnum
398 \let\@cftasnumb \cftparaaftersnumb
399 \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
400 {\cftparafont #1}\nobreak
401 {\cftparaleader}
402 \nobreak
403 \hb@xt@\@pnumwidth{\hfil\cftparapagefont #2}\cftparaafterpnum\par}%
404 \fi}
405 \newlength{\cftbeforeparaskip}
406 \setlength{\cftbeforeparaskip}{\z@ \@plus.2\p@}
407 \newlength{\cftparaindent}
408 \ifSCDchapter
409 \setlength{\cftparaindent}{10em}
410 \else
411 \setlength{\cftparaindent}{7.0em}
413 \newlength{\cftparanumwidth}
414 \ifSCDchapter
415 \setlength{\cftparanumwidth}{5em}
416 \else
417 \setlength{\cftparanumwidth}{4.1em}
419 \newcommand{\cftparafont}{\normalfont}
420 \newcommand{\cftparaaftersnum}{}
421 \newcommand{\cftparaaftersnumb}{}
422 \newcommand{\cftparaleader}{\normalfont\@cftdotfill{\cftparadotsep}}
423 \newcommand{\cftparadotsep}{\cftdotsep}
424 \newcommand{\cftparapagefont}{\normalfont}
425 \newcommand{\cftparaafterpnum}{}
426 \renewcommand*{\l@subparagraph}[2]{%
427 \ifnum \c@tocdepth >4\relax
428 \vskip \cftbeforesubparaskip
429 {\leftskip \cftsubparaindent\relax
430 \rightskip \@tocrmarg
431 \parfillskip -\rightskip
432 \parindent \cftsubparaindent\relax\@afterindenttrue
433 \interlinepenalty\@M
434 \leavevmode
435 \@tempdima \cftsubparanumwidth\relax
436 \let\@cftasnum \cftsubparaaftersnum
437 \let\@cftasnumb \cftsubparaaftersnumb
438 \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
439 {\cftsubparafont #1}\nobreak
440 {\cftsubparaleader}
441 \nobreak
442 \hb@xt@\@pnumwidth{\hfil\cftsubparapagefont #2}\cftsubparaafterpnum\par}%
443 \fi}
444 \newlength{\cftbeforesubparaskip}
445 \setlength{\cftbeforesubparaskip}{\z@ \@plus.2\p@}
446 \newlength{\cftsubparaindent}
447 \ifSCDchapter
448 \setlength{\cftsubparaindent}{12em}
449 \else
450 \setlength{\cftsubparaindent}{10em}
452 \newlength{\cftsubparanumwidth}
453 \ifSCDchapter
454 \setlength{\cftsubparanumwidth}{6em}
455 \else
456 \setlength{\cftsubparanumwidth}{5em}
458 \newcommand{\cftsubparafont}{\normalfont}
459 \newcommand{\cftsubparaaftersnum}{}
460 \newcommand{\cftsubparaaftersnumb}{}
461 \newcommand{\cftsubparaleader}{\normalfont\@cftdotfill{\cftsubparadotsep}}
462 \newcommand{\cftsubparadotsep}{\cftdotsep}
463 \newcommand{\cftsubparapagefont}{\normalfont}
464 \newcommand{\cftsubparaafterpnum}{}
465 \newcommand{\@cftdobiblof}{%
466 \if@dotoclof
467 \if@bibchapter
468 \addcontentsline{toc}{chapter}{\listfigurename}
469 \else
470 \addcontentsline{toc}{\@tocextra}{\listfigurename}
472 \fi}
473 \AtBeginDocument{
474 \if@cftnctoc\else
475 \renewcommand{\listoffigures}{%
476 \@cfttocstart
477 \par
478 \begingroup
479 \parindent\z@ \parskip\z@
480 \@cftmakeloftitle
481 \if@cfttocbibind
482 \@cftdobiblof
484 \@starttoc{lof}%
485 \endgroup
486 \@cfttocfinish}
489 \newcommand{\@cftmakeloftitle}{%
490 \vspace*{\cftbeforeloftitleskip}
491 \interlinepenalty\@M
492 {\cftloftitlefont\listfigurename}{\cftafterloftitle}
493 \cftmarklof
494 \par\nobreak
495 \vskip \cftafterloftitleskip
496 \@afterheading}
497 \newlength{\cftbeforeloftitleskip}
498 \newlength{\cftafterloftitleskip}
499 \ifSCDchapter
500 \setlength{\cftbeforeloftitleskip}{50pt}
501 \setlength{\cftafterloftitleskip}{40pt}
502 \else
503 \setlength{\cftbeforeloftitleskip}{3.5ex \@plus 1ex \@minus .2ex}
504 \setlength{\cftafterloftitleskip}{2.3ex \@plus.2ex}
506 \ifSCDchapter
507 \newcommand{\cftloftitlefont}{\normalfont\Huge\bfseries}
508 \else
509 \newcommand{\cftloftitlefont}{\normalfont\Large\bfseries}
511 \newcommand{\cftafterloftitle}{}
512 \renewcommand*{\l@figure}[2]{%
513 \vskip \cftbeforefigskip
514 {\leftskip \cftfigindent\relax
515 \rightskip \@tocrmarg
516 \parfillskip -\rightskip
517 \parindent \cftfigindent\relax\@afterindenttrue
518 \interlinepenalty\@M
519 \leavevmode
520 \@tempdima \cftfignumwidth\relax
521 \let\@cftasnum \cftfigaftersnum
522 \let\@cftasnumb \cftfigaftersnumb
523 \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
524 {\cftfigfont #1}\nobreak
525 {\cftfigleader}
526 \nobreak
527 \hb@xt@\@pnumwidth{\hfil\cftfigpagefont #2}\cftfigafterpnum\par}%
529 \newlength{\cftbeforefigskip}
530 \setlength{\cftbeforefigskip}{\z@ \@plus.2\p@}
531 \newlength{\cftfigindent}
532 \setlength{\cftfigindent}{1.5em}
533 \newlength{\cftfignumwidth}
534 \setlength{\cftfignumwidth}{2.3em}
535 \newcommand{\cftfigfont}{\normalfont}
536 \newcommand{\cftfigaftersnum}{}
537 \newcommand{\cftfigaftersnumb}{}
538 \newcommand{\cftfigleader}{\normalfont\@cftdotfill{\cftfigdotsep}}
539 \newcommand{\cftfigdotsep}{\cftdotsep}
540 \newcommand{\cftfigpagefont}{\normalfont}
541 \newcommand{\cftfigafterpnum}{}
542 \newcommand{\@cftdobiblot}{%
543 \if@dotoclot
544 \if@bibchapter
545 \addcontentsline{toc}{chapter}{\listtablename}
546 \else
547 \addcontentsline{toc}{\@tocextra}{\listtablename}
549 \fi}
550 \AtBeginDocument{
551 \if@cftnctoc\else
552 \renewcommand{\listoftables}{%
553 \@cfttocstart
554 \par
555 \begingroup
556 \parindent\z@ \parskip\z@
557 \@cftmakelottitle
558 \if@cfttocbibind
559 \@cftdobiblot
561 \@starttoc{lot}%
562 \endgroup
563 \@cfttocfinish}
566 \newcommand{\@cftmakelottitle}{%
567 \vspace*{\cftbeforelottitleskip}
568 \interlinepenalty\@M
569 {\cftlottitlefont\listtablename}{\cftafterlottitle}
570 \cftmarklot
571 \par\nobreak
572 \vskip \cftafterlottitleskip
573 \@afterheading}
574 \newlength{\cftbeforelottitleskip}
575 \newlength{\cftafterlottitleskip}
576 \ifSCDchapter
577 \setlength{\cftbeforelottitleskip}{50pt}
578 \setlength{\cftafterlottitleskip}{40pt}
579 \else
580 \setlength{\cftbeforelottitleskip}{3.5ex \@plus 1ex \@minus .2ex}
581 \setlength{\cftafterlottitleskip}{2.3ex \@plus.2ex}
583 \ifSCDchapter
584 \newcommand{\cftlottitlefont}{\normalfont\Huge\bfseries}
585 \else
586 \newcommand{\cftlottitlefont}{\normalfont\Large\bfseries}
588 \newcommand{\cftafterlottitle}{}
589 \renewcommand*{\l@table}[2]{%
590 \vskip \cftbeforetabskip
591 {\leftskip \cfttabindent\relax
592 \rightskip \@tocrmarg
593 \parfillskip -\rightskip
594 \parindent \cfttabindent\relax\@afterindenttrue
595 \interlinepenalty\@M
596 \leavevmode
597 \@tempdima \cfttabnumwidth\relax
598 \let\@cftasnum \cfttabaftersnum
599 \let\@cftasnumb \cfttabaftersnumb
600 \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
601 {\cfttabfont #1}\nobreak
602 {\cfttableader}
603 \nobreak
604 \hb@xt@\@pnumwidth{\hfil\cfttabpagefont #2}\cfttabafterpnum\par}%
606 \newlength{\cftbeforetabskip}
607 \setlength{\cftbeforetabskip}{\z@ \@plus.2\p@}
608 \newlength{\cfttabindent}
609 \setlength{\cfttabindent}{1.5em}
610 \newlength{\cfttabnumwidth}
611 \setlength{\cfttabnumwidth}{2.3em}
612 \newcommand{\cfttabfont}{\normalfont}
613 \newcommand{\cfttabaftersnum}{}
614 \newcommand{\cfttabaftersnumb}{}
615 \newcommand{\cfttableader}{\normalfont\@cftdotfill{\cfttabdotsep}}
616 \newcommand{\cfttabdotsep}{\cftdotsep}
617 \newcommand{\cfttabpagefont}{\normalfont}
618 \newcommand{\cfttabafterpnum}{}
619 \newcommand{\cftchapterprecis}[1]{%
620 \cftchapterprecishere{#1}
621 \cftchapterprecistoc{#1}}
622 \newcommand{\cftchapterprecishere}[1]{%
623 \vspace*{-2\baselineskip}
624 \begin{quote}\textit{#1}\end{quote}}
625 \newcommand{\cftchapterprecistoc}[1]{\addtocontents{toc}{%
626 {\leftskip \cftchapindent\relax
627 \advance\leftskip \cftchapnumwidth\relax
628 \rightskip \@tocrmarg\relax
629 \textit{#1}\protect\par}}}
630 \newcommand{\cftlocalchange}[3]{%
631 \addtocontents{#1}{\protect\cftsetpnumwidth{#2} \protect\cftsetrmarg{#3}}}
632 \newcommand{\cftaddtitleline}[4]{%
633 \addtocontents{#1}{\protect\contentsline{#2}{#3}{#4}}}
634 \newcommand{\cftaddnumtitleline}[5]{%
635 \addtocontents{#1}%
636 {\protect\contentsline{#2}{\protect\numberline{#3}{\protect\ignorespaces #4}}{#5}}}
637 \endinput
639 %% End of file `tocloft.sty'.