Annotation of OpenXM_contrib/gnuplot/docs/toc_entr.sty, Revision 1.1.1.2
1.1 maekawa 1: %
1.1.1.2 ! maekawa 2: % $Id: toc_entr.sty,v 1.1.1.1 1998/04/15 19:16:45 lhecking Exp $
1.1 maekawa 3: %
4: %
5: %
6: % TOC_ENTRY.STY of 13 Dec 90
7: % written by Stefan Timphus
8: %
9: % Will produce the right space for sectionnumbers in the tableofcontents
10: % Necessary for entries where the number for each kind of section
11: % is greater 10 (e.g. "12.14.18 Sectionname")
12: % When using the original definition the first letter of the sectionname
13: % overwrites the last number of the sectionnumber
14: %
15: % call adjustments with command \adjustSTYLENAME
16: %
17: % article.sty modified by RCC (1 May 96) to add another subsection level
18:
19: \typeout{`toc_entry.sty' 1.0 of 13 Dec 90}
20:
21: %
22: % HERE ARE THE ORIGINAL DEFINITIONS
23: %
24:
25: % article.sty
26: %
27: %\def\l@subsection{\@dottedtocline{2}{1.5em}{2.3em}}
28: %\def\l@subsubsection{\@dottedtocline{3}{3.8em}{3.2em}}
29: %\def\l@paragraph{\@dottedtocline{4}{7.0em}{4.1em}}
30: %\def\l@subparagraph{\@dottedtocline{5}{10em}{5em}}
31:
32: % report.sty and book.sty
33: %
34: %\def\l@section{\@dottedtocline{1}{1.5em}{2.3em}}
35: %\def\l@subsection{\@dottedtocline{2}{3.8em}{3.2em}}
36: %\def\l@subsubsection{\@dottedtocline{3}{7.0em}{4.1em}}
37: %\def\l@paragraph{\@dottedtocline{4}{10em}{5em}}
38: %\def\l@subparagraph{\@dottedtocline{5}{12em}{6em}}
39:
40: %
41: % MODIFICATIONS
42: %
43:
44: \newlength{\twonum}
45: \settowidth{\twonum}{99.99.}
46: \newlength{\threenum}
47: \settowidth{\threenum}{99.99.99.}
48: \newlength{\fournum}
49: \settowidth{\fournum}{99.99.99.99.}
50: \newlength{\fivenum}
51: \settowidth{\fivenum}{99.99.99.99.99.}
52: \newlength{\sixnum}
53: \settowidth{\sixnum}{99.99.99.99.99.99.}
54:
55: \newcommand{\adjustarticle}
56: {\def\l@subsection{\@dottedtocline{2}{1.5em}{\twonum}}
57: \def\l@subsubsection{\@dottedtocline{3}{4.0em}{\threenum}}
58: \def\l@paragraph{\@dottedtocline{4}{7.8em}{\fournum}}
59: \def\l@subparagraph{\@dottedtocline{5}{10.4em}{\fivenum}}}
60:
61: \newcommand{\adjustreport}
62: {\def\l@section{\@dottedtocline{1}{1.5em}{\twonum}}
63: \def\l@subsection{\@dottedtocline{2}{4.0em}{\threenum}}
64: \def\l@subsubsection{\@dottedtocline{3}{7.8em}{\fournum}}
65: \def\l@paragraph{\@dottedtocline{4}{10.4em}{\fivenum}}
66: \def\l@subparagraph{\@dottedtocline{5}{12.6em}{\sixnum}}}
67:
68: \newcommand{\adjustbook}{\adjustreport}
69:
70: \newcommand{\subsubsubsection}[1]{\paragraph{#1}}
71: % end of TOC_ENTRY.STY
72:
73:
74: %
75: % PROPOSED MODIFICATIONS
76: %
77: % remove:
78: %
79: %\newcommand{\subsubsubsection}[1]{\paragraph{$1}}
80: %
81: % change:
82: %
83: %\newcommand{\adjustarticle}
84: %{\def\l@subsection{\@dottedtocline{2}{1.5em}{\twonum}}
85: %\def\l@subsubsection{\@dottedtocline{3}{4.0em}{\threenum}}
86: %\def\l@subsubsubsection{\@dottedtocline{3}{7.8em}{\fournum}}
87: %\def\l@paragraph{\@dottedtocline{4}{10.4em}{\fivenum}}
88: %\def\l@subparagraph{\@dottedtocline{5}{12.6em}{\sixnum}}}
89: %
90: % add:
91: %
92: %\setcounter{secnumdepth}{5}
93: %\setcounter{tocdepth}{5}
94: %
95: %\def\subsubsubsection{\@startsection{subsubsubsection}{3}{\z@}{-3.25ex plus
96: %-1ex minus -.2ex}{1.5ex plus .2ex}{\normalsize\bf}}
97: %
98: %\newcounter {subsubsubsection}[subsubsection]
99: %
100: %\def\thesubsubsubsection {\thesubsubsection .\arabic{subsubsubsection}}
101: %
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>