File: toc.dtx

package info (click to toggle)
texlive-lang 2022.20230122-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,447,264 kB
  • sloc: perl: 61,377; xml: 53,781; makefile: 4,525; sh: 4,338; ansic: 2,892; python: 2,861; ruby: 1,031; lisp: 750; awk: 649; java: 159; sed: 142; csh: 25
file content (180 lines) | stat: -rw-r--r-- 5,537 bytes parent folder | download | duplicates (6)
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

% \iffalse
%%% From File: toc.dtx
% \fi
%
%    \begin{macrocode}

%<*toc>
%    \end{macrocode}
%
% \subsection{   (, 
%   .\,.)}
%
% \subsubsection{ }
%
%        .
% \DescribeMacro{\@postskip}\index{!\verb+"\"@postskip+}
%    \begin{macrocode}
\def\@postskip{\texorpdfstring{\hskip1em}{  }}
%    \end{macrocode}
%        .
% \DescribeMacro{\@pnumwidth}\index{!\verb+"\"@pnumwidth+}
%    \begin{macrocode}
\newcommand\@pnumwidth{1.55em}
%    \end{macrocode}
%   .
% \DescribeMacro{\@tocrmarg}\index{!\verb+"\"@tocrmarg+}
%    \begin{macrocode}
\newcommand\@tocrmarg{2.55em}
%    \end{macrocode}
%    ()      
% (  mu = 1/18 em, em ---   |M|  ).
% \DescribeMacro{\@dotsep}\index{!\verb+"\"@dotsep+}
%    \begin{macrocode}
\newcommand\@dotsep{4.5}
%    \end{macrocode}
%         .
% \DescribeMacro{\tocfill}\index{!\verb*+\tocfill+}
%    \begin{macrocode}
\def\tocfill#1{%
  \leaders\hbox{$\m@th\mkern\@dotsep mu\hbox{#1}\mkern\@dotsep mu$}%
}

%    \end{macrocode}
% \subsubsection{}
%
% ,    .
% \DescribeMacro{\tocsection}\index{!\verb*+\tocsection+}
%    \begin{macrocode}
\newcommand\tocsection{\chapter*{\contentsname}}

%    \end{macrocode}
% \DescribeMacro{\tableofcontents}\index{!\verb*+\tableofcontents+}
%    \begin{macrocode}
\newcommand\tableofcontents{%
  \if@twocolumn%
    \@restonecoltrue\onecolumn%
  \else\@restonecolfalse\fi%
  \tocsection%
  \@mkboth{\MakeUppercase\contentsname}{\MakeUppercase\contentsname}%
  \@starttoc{toc}%
  \if@restonecol\twocolumn\fi
  \clearpage
}
%    \end{macrocode}
%
% \subsubsection{ }
%
% ,    .
% \DescribeMacro{\lofsection}\index{!\verb*+\lofsection+}
%    \begin{macrocode}
\newcommand\lofsection{\nchapter{\listfigurename}}

%    \end{macrocode}
% \DescribeMacro{\listoffigures}\index{!\verb*+\listoffigures+}
%    \begin{macrocode}
\newcommand\listoffigures{%
  \if@twocolumn\@restonecoltrue\onecolumn%
  \else\@restonecolfalse\fi%
  \lofsection%
  \@mkboth{\MakeUppercase\listfigurename}{\MakeUppercase\listfigurename}%
  \@starttoc{lof}%
  \if@restonecol\twocolumn\fi
}

%    \end{macrocode}
%    .
%    \begin{macrocode}
\newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}

%    \end{macrocode}
%
% \subsubsection{ }
%
% ,    .
% \DescribeMacro{\lotsection}\index{!\verb*+\lotsection+}
%    \begin{macrocode}
\newcommand\lotsection{\nchapter{\listtablename}}

%    \end{macrocode}
% \DescribeMacro{\listoftables}\index{!\verb*+\listoftables+}
%    \begin{macrocode}
\newcommand\listoftables{%
  \if@twocolumn\@restonecoltrue\onecolumn%
  \else\@restonecolfalse\fi%
  \lotsection%
  \@mkboth{\MakeUppercase\listtablename}{\MakeUppercase\listtablename}%
  \@starttoc{lot}%
  \if@restonecol\twocolumn\fi
}

%    \end{macrocode}
%    .
%    \begin{macrocode}
\let\l@table\l@figure

%    \end{macrocode}
%
% \subsubsection{}
%
%        \pkg{natbib}  
%   \file{custom.dtx}.
% \DescribeEnv{thebibliography}\index{!\verb*+thebibliography+}
%    \begin{macrocode}
\newenvironment{thebibliography}[1]{}{}

%    \end{macrocode}
%      .
% \DescribeMacro{\bibindent}\index{!\verb*+\bibindent+}
%    \begin{macrocode}
\newdimen\bibindent
\setlength\bibindent{1.5em}
%    \end{macrocode}
%       .
% \DescribeMacro{\newblock}\index{!\verb*+\newblock+}
%    \begin{macrocode}
\newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
\let\@openbib@code\@empty

%    \end{macrocode}
%
% \subsubsection{ }
%
% ,    .
% \DescribeMacro{\indexsection}\index{!\verb*+\indexsection+}
%    \begin{macrocode}
\providecommand\indexsection{\twocolumn[\@makeschapterhead{\indexname}]}

%    \end{macrocode}
%
% \DescribeEnv{theindex}\index{!\verb*+theindex+}
%    \begin{macrocode}
\newenvironment{theindex}{%
  \if@twocolumn\@restonecolfalse%
  \else\@restonecoltrue\fi%
  \columnseprule \z@
  \columnsep 35\p@
  \indexsection%
  \@mkboth{\MakeUppercase\indexname}{\MakeUppercase\indexname}%
  \thispagestyle{plain}
  \parindent\z@
  \parskip\z@ \@plus .3\p@\relax
  \let\item\@idxitem%
}{\if@restonecol\onecolumn\else\clearpage\fi}
%    \end{macrocode}
%  .
% \DescribeMacro{\@idxitem}\index{!\verb+"\"@idxitem+}
% \DescribeMacro{\subitem}\index{!\verb*+\subitem+}
% \DescribeMacro{\subsubitem}\index{!\verb*+\subsubitem+}
%    \begin{macrocode}
\newcommand\@idxitem{\par\hangindent 40\p@}
\newcommand\subitem{\@idxitem \hspace*{20\p@}}
\newcommand\subsubitem{\@idxitem \hspace*{30\p@}}
%    \end{macrocode}
%      .
% \DescribeMacro{\indexspace}\index{!\verb*+\indexspace+}
%    \begin{macrocode}
\newcommand\indexspace{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
%</toc>
%    \end{macrocode}