summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/disser/toc.dtx
blob: a4ce657af46a6c5de95b8c1e1dadf031e04d1824 (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
%    \begin{macrocode}

%<*toc>
%    \end{macrocode}
%
% \subsection{Àâòîìàòè÷åñêè ãåíåðèðóåìûå ñïèñêè (ñîäåðæàíèå, èíäåêñ è ò.\,ä.)}
% \subsubsection{Ïàðàìåòðû}
%
% Ãîðèçîíòàëüíûé ïðîáåë ìåæäó ïîñòîÿííîé è ïåðåìåííîé ÷àñòÿìè çàãîëîâêîâ
% \DescribeMacro{\@postskip}
%    \begin{macrocode}
\def\@postskip{\hskip1em}
%    \end{macrocode}
% Äëèíà ïðîáåëà ìåæäó çàïîëíèòåëåì è íîìåðîì ñòðàíèöû.
% \DescribeMacro{\@pnumwidth}
%    \begin{macrocode}
\newcommand\@pnumwidth{1.55em}
%    \end{macrocode}
% Ïðàâàÿ ãðàíèöà òåêñòà.
% \DescribeMacro{\@tocrmarg}
%    \begin{macrocode}
\newcommand\@tocrmarg{2.55em}
%    \end{macrocode}
% Ðàññòîÿíèå ìåæäó ñèìâîëàìè (òî÷êàìè) â çàïîëíèòåëå ìåæäó íàçâàíèåì è íîìåðîì.
% \DescribeMacro{\@dotsep}
%    \begin{macrocode}
\newcommand\@dotsep{4.5}
%    \end{macrocode}
% Êîìàíäà äëÿ çàïîëíåíèÿ ïðîìåæóòêà ìåæäó íàçâàíèåì è íîìåðîì ñòðàíèöû.
% \DescribeMacro{\tocfill}
%    \begin{macrocode}
\def\tocfill#1{
  \leaders\hbox{$\m@th \mkern \@dotsep mu\hbox{#1}\mkern \@dotsep mu$}
}
%    \end{macrocode}
% Âåðòèêàëüíûé ïðîáåë ìåæäó ýëåìåíòàìè ïðåäìåòíîãî óêàçàòåëÿ.
% \DescribeMacro{\indexspace}
%    \begin{macrocode}
\newcommand\indexspace{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
%    \end{macrocode}
% Âåëè÷èíà îòñòóïà äëÿ ýëåìåíòîâ ñïèñêà ëèòåðàòóðû.
% \DescribeMacro{\bibindent}
%    \begin{macrocode}
\newdimen\bibindent
\setlength\bibindent{1.5em}
%    \end{macrocode}
% Ãîðèçîíòàëüíûé ïðîáåë ìåæäó ðàçëè÷íûìè ÷àñòÿìè ýëåìåíòà áèáëèîãðàôèè.
% \DescribeMacro{\newblock}
%    \begin{macrocode}
\newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
\let\@openbib@code\@empty

%    \end{macrocode}
%
% \DescribeMacro{\tableofcontents}
%    \begin{macrocode}
\newcommand\tableofcontents{%
%    \end{macrocode}
%
% |\contentsname| íåîáõîäèìî ïåðåîïðåäåëÿòü çäåñü, ò.ê. |babel| ïðèñâàèâàåò
% ñâîå çíà÷åíèå ïîñëå òîãî, êàê çàãðóæåí êëàññ.
%    \begin{macrocode}
  \renewcommand\contentsname\newcontentsname
  \if@twocolumn
    \@restonecoltrue\onecolumn
  \else
    \@restonecolfalse
  \fi
  \chapter*{\contentsname%
    \@mkboth{\MakeUppercase\contentsname}{\MakeUppercase\contentsname}
  }%
  \thispagestyle{empty}
  \@starttoc{toc}%
  \if@restonecol\twocolumn\fi
  \clearpage
}
%    \end{macrocode}
%
% \subsubsection{Ñïèñîê èëëþñòðàöèé}
%
% \DescribeMacro{\listoffigures}
%    \begin{macrocode}
\newcommand\listoffigures{%
  \if@twocolumn\@restonecoltrue\onecolumn
  \else\@restonecolfalse\fi
%    \end{macrocode}
% Âìåñòî ñòàíäàðòíîé êîìàíäû |\chapter*| èñïîëüçóåòñÿ |\nchapter|, ÷òîáû ñïèñîê
% îòîáðàæàëñÿ â Ñîäåðæàíèè.
%
%    \begin{macrocode}
  \nchapter{
    \listfigurename
    \@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{Ñïèñîê òàáëèö}
%    \begin{macrocode}
\newcommand\listoftables{%
  \if@twocolumn
    \@restonecoltrue\onecolumn
  \else
    \@restonecolfalse
  \fi
  \nchapter{
  \listtablename
  \@mkboth{\MakeUppercase\listtablename}{\MakeUppercase\listtablename}
  }%
  \@starttoc{lot}%
  \if@restonecol\twocolumn\fi
}
%    \end{macrocode}
% Ôîðìàò ýëåìåíòà ñïèñêà òàáëèö.
%    \begin{macrocode}
\let\l@table\l@figure

%    \end{macrocode}
%
% \subsubsection{Áèáëèîãðàôèÿ}
% Äàííîå îêðóæåíèå áóäåò ïåðåîïðåäåëåíî â ïàêåòå |natbib|.
% \DescribeEnv{thebibliography}
%    \begin{macrocode}
\newenvironment{thebibliography}[1]{}{}

%    \end{macrocode}
%
% \subsubsection{Ïðåäìåòíûé óêàçàòåëü}
% \DescribeEnv{theindex}
%    \begin{macrocode}
\newenvironment{theindex}{
  \if@twocolumn\@restonecolfalse
  \else\@restonecoltrue\fi
  \columnseprule \z@
  \columnsep 35\p@
  \twocolumn[\@makeschapterhead{\indexname}]%
  \@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}
% \DescribeMacro{\subitem}
% \DescribeMacro{\subsubitem}
%    \begin{macrocode}
\newcommand\@idxitem{\par\hangindent 40\p@}
\newcommand\subitem{\@idxitem \hspace*{20\p@}}
\newcommand\subsubitem{\@idxitem \hspace*{30\p@}}
%</toc>
%    \end{macrocode}