FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
gnuplot/docs/toc_entr.sty at master · gnuplot/gnuplot · GitHub
gnuplot
gnuplot
Repository navigation
Code
Pull requests
2
(2)
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
gnuplot
/
docs
/
toc_entr.sty
Copy path
More file actions
More file actions
Latest commit
History
History
History
97 lines (85 loc) · 2.82 KB
Breadcrumbs
gnuplot
/
docs
/
toc_entr.sty
Copy path
File metadata and controls
97 lines (85 loc) · 2.82 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
%
%
TOC_ENTRY.STY of 13 Dec 90
%
written by Stefan Timphus
%
%
Will produce the right space for sectionnumbers in the tableofcontents
%
Necessary for entries where the number for each kind of section
%
is greater 10 (e.g. "12.14.18 Sectionname")
%
When using the original definition the first letter of the sectionname
%
overwrites the last number of the sectionnumber
%
%
call adjustments with command \adjustSTYLENAME
%
%
article.sty modified by RCC (1 May 96) to add another subsection level
\typeout
{`toc_entry.sty' 1.0 of 13 Dec 90}
%
%
HERE ARE THE ORIGINAL DEFINITIONS
%
%
article.sty
%
%
\def\l@subsection{\@dottedtocline{2}{1.5em}{2.3em}}
%
\def\l@subsubsection{\@dottedtocline{3}{3.8em}{3.2em}}
%
\def\l@paragraph{\@dottedtocline{4}{7.0em}{4.1em}}
%
\def\l@subparagraph{\@dottedtocline{5}{10em}{5em}}
%
report.sty and book.sty
%
%
\def\l@section{\@dottedtocline{1}{1.5em}{2.3em}}
%
\def\l@subsection{\@dottedtocline{2}{3.8em}{3.2em}}
%
\def\l@subsubsection{\@dottedtocline{3}{7.0em}{4.1em}}
%
\def\l@paragraph{\@dottedtocline{4}{10em}{5em}}
%
\def\l@subparagraph{\@dottedtocline{5}{12em}{6em}}
%
%
MODIFICATIONS
%
\newlength
{
\twonum
}
\settowidth
{
\twonum
}{99.99.}
\newlength
{
\threenum
}
\settowidth
{
\threenum
}{99.99.99.}
\newlength
{
\fournum
}
\settowidth
{
\fournum
}{99.99.99.99.}
\newlength
{
\fivenum
}
\settowidth
{
\fivenum
}{99.99.99.99.99.}
\newlength
{
\sixnum
}
\settowidth
{
\sixnum
}{99.99.99.99.99.99.}
\newcommand
{
\adjustarticle
}
{
\def\l@subsection
{
\@dottedtocline
{2}{1.5em}{
\twonum
}}
\def\l@subsubsection
{
\@dottedtocline
{3}{4.0em}{
\threenum
}}
\def\l@paragraph
{
\@dottedtocline
{4}{7.8em}{
\fournum
}}
\def\l@subparagraph
{
\@dottedtocline
{5}{10.4em}{
\fivenum
}}}
\newcommand
{
\adjustreport
}
{
\def\l@section
{
\@dottedtocline
{1}{1.5em}{
\twonum
}}
\def\l@subsection
{
\@dottedtocline
{2}{4.0em}{
\threenum
}}
\def\l@subsubsection
{
\@dottedtocline
{3}{7.8em}{
\fournum
}}
\def\l@paragraph
{
\@dottedtocline
{4}{10.4em}{
\fivenum
}}
\def\l@subparagraph
{
\@dottedtocline
{5}{12.6em}{
\sixnum
}}}
\newcommand
{
\adjustbook
}{
\adjustreport
}
\newcommand
{
\subsubsubsection
}[1]{
\paragraph
{
#1
}}
%
end of TOC_ENTRY.STY
%
%
PROPOSED MODIFICATIONS
%
%
remove:
%
%
\newcommand{\subsubsubsection}[1]{\paragraph{$1}}
%
%
change:
%
%
\newcommand{\adjustarticle}
%
{\def\l@subsection{\@dottedtocline{2}{1.5em}{\twonum}}
%
\def\l@subsubsection{\@dottedtocline{3}{4.0em}{\threenum}}
%
\def\l@subsubsubsection{\@dottedtocline{3}{7.8em}{\fournum}}
%
\def\l@paragraph{\@dottedtocline{4}{10.4em}{\fivenum}}
%
\def\l@subparagraph{\@dottedtocline{5}{12.6em}{\sixnum}}}
%
%
add:
%
%
\setcounter{secnumdepth}{5}
%
\setcounter{tocdepth}{5}
%
%
\def\subsubsubsection{\@startsection{subsubsubsection}{3}{\z@}{-3.25ex plus
%
-1ex minus -.2ex}{1.5ex plus .2ex}{\normalsize\bf}}
%
%
\newcounter {subsubsubsection}[subsubsection]
%
%
\def\thesubsubsubsection {\thesubsubsection .\arabic{subsubsubsection}}
%
Back
|
FazBrowse Home
|
New Git URL