blob: fae6a1f2ca28035c012e8ca71028ea38efbf88ba (
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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
|
% \iffalse
%%% From File: part.dtx
% \fi
%
% \begin{macrocode}
%<*part>
% \end{macrocode}
% \subsection{×àñòü}
%
% Êàê óæå ãîâîðèëîñü âî Ââåäåíèè, îäíîé èç îñíîâíûõ ïðîáëåì \LaTeX{} ÿâëÿåòñÿ
% îòñóòñòâèå ïðîñòîãî ñïîñîáà íàñòðîéêè ôîðìàòà çàãîëîâêîâ è ñîîòâåòñòâóþùèõ
% èì çàïèñåé â Ñîäåðæàíèè. Ëþáîå èçìåíåíèå ïðèõîäèòñÿ âíîñèòü ïóòåì
% ïåðåîïðåäåëåíèÿ ãðîìîçäêèõ íèçêîóðîâíåâûõ ìàêðîñîâ. Êëàññ |disser|
% óñòðàíÿåò ýòó ïðîáëåìó ïóòåì ââåäåíèÿ âûñîêîóðîâíåâûõ ìàêðîñîâ äëÿ âñåõ
% îñíîâíûõ ïàðàìåòðîâ ôîðìàòà çàãîëîâêîâ è çàïèñåé â àâòîìàòè÷åñêè ôîðìèðóåìûõ
% ñïèñêàõ.
%
% \subsubsection{Ïàðàìåòðû ôîðìàòà çàïèñè â Ñîäåðæàíèè}
%
% \DescribeMacro{\tocprethepart}\index{Ìàêðîñû!\verb*+\tocprethepart+}
% Ïîñòîÿííûé òåêñò äî íîìåðà.
% \begin{macrocode}
\providecommand\tocprethepart{\partname~}
% \end{macrocode}
% \DescribeMacro{\tocpostthepart}\index{Ìàêðîñû!\verb*+\tocpostthepart+}
% Ïîñòîÿííûé òåêñò ïîñëå íîìåðà.
% \begin{macrocode}
\providecommand\tocpostthepart{.\@postskip}
% \end{macrocode}
% \DescribeMacro{\tocpartfill}\index{Ìàêðîñû!\verb*+\tocpartfill+}
% Çàïîëíèòåëü ìåæäó íàçâàíèåì è íîìåðîì ñòðàíèöû. Äëÿ ÷àñòè ïî óìîë÷àíèþ
% îòñóòñòâóåò. ×òîáû çàïîëíèòü êàêèìè-ëèáî ñèìâîëàìè, |\tocpartfill| íóæíî
% ïðèñâîèòü çíà÷åíèå |\tocfill{ñèìâîë}|. Äëÿ ïðèìåðà ñì. äàëåå îïðåäåëåíèå
% |\tocsectionfill|.
% \begin{macrocode}
\providecommand\tocpartfill{}
% \end{macrocode}
% \DescribeMacro{\tocpartfont}\index{Ìàêðîñû!\verb*+\tocpartfont+}
% Øðèôò çàãîëîâêà â Ñîäåðæàíèè.
% \begin{macrocode}
\providecommand\tocpartfont{\bfseries}
% \end{macrocode}
% \DescribeMacro{\tocpartfillfont}\index{Ìàêðîñû!\verb*+\tocpartfillfont+}
% Øðèôò çàïîëíèòåëÿ.
% \begin{macrocode}
\providecommand\tocpartfillfont{\normalfont}
% \end{macrocode}
% \DescribeMacro{\tocpartnumfont}\index{Ìàêðîñû!\verb*+\tocpartnumfont+}
% Øðèôò íîìåðà.
% \begin{macrocode}
\providecommand\tocpartnumfont{\normalfont}
% \end{macrocode}
%
% \subsubsection{Ïàðàìåòðû ôîðìàòà â òåêñòå}
% \DescribeMacro{\thepartalign}\index{Ìàêðîñû!\verb*+\thepartalign+}
% \DescribeMacro{\thepartfont}\index{Ìàêðîñû!\verb*+\thepartfont+}
% \DescribeMacro{\prethepart}\index{Ìàêðîñû!\verb*+\prethepart+}
% \DescribeMacro{\postthepart}\index{Ìàêðîñû!\verb*+\postthepart+}
% \DescribeMacro{\partalign}\index{Ìàêðîñû!\verb*+\partalign+}
% \DescribeMacro{\partfont}\index{Ìàêðîñû!\verb*+\partfont+}
% \DescribeMacro{\prepart}\index{Ìàêðîñû!\verb*+\prepart+}
% \DescribeMacro{\postpart}\index{Ìàêðîñû!\verb*+\postpart+}
% Ïàðàìåòðû íîìåðà è íàçâàíèÿ: âûðàâíèâàíèå, øðèôò, îòñòóïû, òåêñò äî è ïîñëå.
% \begin{macrocode}
\providecommand\thepartalign{\centering}
\providecommand\thepartfont{\huge}
\providecommand\prethepart{\tocprethepart}
\providecommand\postthepart{\par\vskip 20\p@}
\providecommand\partalign{\centering}
\providecommand\partfont{\huge\bfseries}
\providecommand\prepart{}
\providecommand\postpart{\par}
% \end{macrocode}
% \DescribeMacro{\partpagestyle}\index{Ìàêðîñû!\verb*+\partpagestyle+}
% Ñòèëü ñòðàíèöû, íà êîòîðîé ðàñïîëîæåí çàãîëîâîê ÷àñòè.
% \begin{macrocode}
\def\partpagestyle#1{\gdef\@partpagestyle{#1}}
\partpagestyle{empty}
% \end{macrocode}
%
% \subsubsection{Íèçêîóðîâíåâûå êîìàíäû}
%
% \DescribeMacro{\part}\index{Ìàêðîñû!\verb*+\part+}
% Èíòåðôåéñ.
% \begin{macrocode}
\newcommand\part{
\if@openright
\cleardoublepage
\else
\clearpage
\fi
\thispagestyle{\@partpagestyle}%
\if@twocolumn
\onecolumn
\@tempswatrue
\else
\@tempswafalse
\fi
\null\vfil\secdef\@part\@spart
}
% \end{macrocode}
%
% \DescribeMacro{\@part}\index{Ìàêðîñû!\verb+"\"@part+}
% Êîìàíäà, ôîðìèðóþùàÿ íóìåðóåìûé çàãîëîâîê ÷àñòè |\part|.
% \begin{macrocode}
\def\@part[#1]#2{%
\ifnum \c@secnumdepth >-2\relax
\refstepcounter{part}%
% \end{macrocode}
% Çäåñü è äàëåå êîìàíäà |\def\\{ }| èñïîëüçóåòñÿ äëÿ êîððåêòíîãî îòîáðàæåíèÿ
% çàãîëîâêîâ ñ ïðèíóäèòåëüíûìè ðàçðûâàìè ñòðîê.
% \begin{macrocode}
{\def\\{ }\addcontentsline{toc}{part}{\@tocseccntformat{part} #1}}
\else
{\def\\{ }\addcontentsline{toc}{part}{#1}}
\fi
\markboth{}{}%
{%
\interlinepenalty \@M
\normalfont
\ifnum \c@secnumdepth >-2\relax
% \end{macrocode}
% Ïîñòîÿííàÿ ÷àñòü çàãîëîâêà è íîìåð.
% \begin{macrocode}
{\thepartfont\partalign\@seccntformat{part}}
\fi%
% \end{macrocode}
% Íàçâàíèå.
% \begin{macrocode}
{\partfont\partalign\prepart #2\postpart}%
}
\@endpart%
}
% \end{macrocode}
%
% \DescribeMacro{\@spart}\index{Ìàêðîñû!\verb+"\"@spart+}
% Êîìàíäà, ôîðìèðóþùàÿ íåíóìåðóåìûé çàãîëîâîê ÷àñòè |\part*|.
% \begin{macrocode}
\def\@spart#1{%
\partalign{\interlinepenalty \@M%
\partfont\prepart #1\postpart}%
\@endpart
}
% \end{macrocode}
%
% \DescribeMacro{\@endpart}\index{Ìàêðîñû!\verb+"\"@endpart+}
% Çàâåðøåíèå ñòðàíèöû ñ çàãîëîâêîì ÷àñòè.
% \begin{macrocode}
\def\@endpart{
\vfil\newpage
\if@twoside
\null
\thispagestyle{\partpagestyle}%
\newpage
\fi
\if@tempswa\twocolumn\fi
}
% \end{macrocode}
% \DescribeMacro{\l@part}
% Íèçêîóðîâíåâàÿ êîìàíäà, ñîçäàþùàÿ çàïèñü â Ñîäåðæàíèè.
% \begin{macrocode}
\newcommand*\l@part[2]
{%
\ifnum \c@tocdepth >-2\relax
\addpenalty{-\@highpenalty}%
\addvspace{2.25em \@plus\p@}%
\begingroup
\setlength\@tempdima{3em}%
\parindent \z@ \rightskip \@pnumwidth
\parfillskip -\@pnumwidth
{\leavevmode \tocpartfont #1\nobreak
\tocpartfillfont\tocpartfill\hfill
\hb@xt@\@pnumwidth{\hss\tocpartnumfont #2}}
\par\nobreak
\global\@nobreaktrue
\everypar{\global\@nobreakfalse\everypar{}}%
\endgroup
\fi
}
%</part>
% \end{macrocode}
|