summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/disser/toc.dtx
blob: 7ec27da000c0c3e597d3b1a3a875a1e7bcabd8bb (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

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

%<*toc>
%    \end{macrocode}
%
% \subsection{Àâòîìàòè÷åñêè ãåíåðèðóåìûå ñïèñêè (îãëàâëåíèå, ïðåäìåòíûé óêàçàòåëü è ò.\,ä.)}
%
% \subsubsection{Îáùèå ïàðàìåòðû}
%
% Ãîðèçîíòàëüíûé ïðîáåë ìåæäó ïîñòîÿííîé è ïåðåìåííîé ÷àñòÿìè çàãîëîâêîâ.
% \DescribeMacro{\@postskip}\index{Ìàêðîñû!\verb+"\"@postskip+}
%    \begin{macrocode}
\def\@postskip{\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}