summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/disser/page.dtx
blob: 6cae9cb4de0ed7a08d743f908ac7225af41199cb (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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210

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

%<*page>
%    \end{macrocode}
%
% \subsection{Ôîðìàò ñòðàíèö}
%
% \subsubsection{Øðèôò êîëîíòèòóëîâ}
% \paragraph{Äëÿ äâóõñòîðîííåé ïå÷àòè}\hfil\\[6pt]
% Âåðõíèé, íà ÷åòíûõ ñòðàíèöàõ.
% \DescribeMacro{\evenheadfont}\index{Ìàêðîñû!\verb*+\evenheadfont+}
%    \begin{macrocode}
\newcommand\evenheadfont{\reset@font}
%    \end{macrocode}
% Íèæíèé íà ÷åòíûõ ñòðàíèöàõ.
% \DescribeMacro{\evenfootfont}\index{Ìàêðîñû!\verb*+\evenfootfont+}
%    \begin{macrocode}
\newcommand\evenfootfont{\reset@font}
%    \end{macrocode}
% Âåðõíèé íà íå÷åòíûõ ñòðàíèöàõ.
% \DescribeMacro{\oddheadfont}\index{Ìàêðîñû!\verb*+\oddheadfont+}
%    \begin{macrocode}
\newcommand\oddheadfont{\reset@font}
%    \end{macrocode}
% Íèæíèé íà íå÷åòíûõ ñòðàíèöàõ.
% \DescribeMacro{\oddfootfont}\index{Ìàêðîñû!\verb*+\oddfootfont+}
%    \begin{macrocode}
\newcommand\oddfootfont{\reset@font}
%    \end{macrocode}
% \paragraph{Äëÿ îäíîñòîðîííåé ïå÷àòè}\hfil\\[6pt]
% Âåðõíèé.
% \DescribeMacro{\headfont}\index{Ìàêðîñû!\verb*+\headfont+}
%    \begin{macrocode}
\newcommand\headfont{\reset@font}
%    \end{macrocode}
% Íèæíèé.
% \DescribeMacro{\footfont}\index{Ìàêðîñû!\verb*+\footfont+}
%    \begin{macrocode}
\newcommand\footfont{\reset@font}
%    \end{macrocode}
%
% \subsubsection{Îïðåäåëåíèÿ ñòèëåé êîëîíòèòóëîâ}
%
% Â äèññåðòàöèÿõ íà ðóññêîì ÿçûêå íå èñïîëüçóþòñÿ êîëîíòèòóëû ñ çàãîëîâêîì òåêóùåé ãëàâû,
% ïîýòîìó âñå ïðåäñòàâëåííûå ñòèëè âëèÿþò òîëüêî íà ïîëîæåíèå íîìåðà ñòðàíèöû.
%
% \paragraph{empty}
%    \begin{macrocode}
\def\ps@empty{
  \let\@mkboth\@gobbletwo
  \let\@oddhead\@empty
  \let\@oddfoot\@empty
  \let\@evenhead\@empty
  \let\@evenfoot\@empty
}

%    \end{macrocode}
% \paragraph{footcenter}
%    \begin{macrocode}
\def\ps@footcenter{
  \let\@mkboth\@gobbletwo
  \let\@oddhead\@empty
  \let\@evenhead\@empty
  \def\@oddfoot{\footfont\hfil\thepage\hfil}
  \def\@evenfoot{\footfont\hfil\thepage\hfil}
}

%    \end{macrocode}
% \paragraph{footleft}
%    \begin{macrocode}
\if@twoside
  \def\ps@footleft{
    \let\@mkboth\@gobbletwo
    \let\@oddhead\@empty
    \let\@evenhead\@empty
    \def\@oddfoot{\oddfootfont\hfil\thepage}
    \def\@evenfoot{\evenfootfont\thepage\hfil}
  }
\else
  \def\ps@footleft{
    \let\@mkboth\@gobbletwo
    \let\@oddhead\@empty
    \let\@evenhead\@empty
    \def\@oddfoot{\footfont\thepage\hfil}
    \def\@evenfoot{\footfont\thepage\hfil}
  }
\fi

%    \end{macrocode}
% \paragraph{footright}
%    \begin{macrocode}
\if@twoside
  \def\ps@footright{
    \let\@mkboth\@gobbletwo
    \let\@oddhead\@empty
    \let\@evenhead\@empty
    \def\@oddfoot{\oddfootfont\thepage\hfil}
    \def\@evenfoot{\evenfootfont\hfil\thepage}
  }
\else
  \def\ps@footright{
    \let\@mkboth\@gobbletwo
    \let\@oddhead\@empty
    \let\@evenhead\@empty
    \def\@oddfoot{\footfont\hfil\thepage}
    \def\@evenfoot{\footfont\hfil\thepage}
  }
\fi

%    \end{macrocode}
% \paragraph{headcenter}
%    \begin{macrocode}
\def\ps@headcenter{
  \let\@mkboth\@gobbletwo
  \def\@oddhead{\headfont\hfil\thepage\hfil}
  \def\@evenhead{\headfont\hfil\thepage\hfil}
  \let\@oddfoot\@empty
  \let\@evenfoot\@empty
}

%    \end{macrocode}
% \paragraph{headright}
%    \begin{macrocode}
\if@twoside
  \def\ps@headright{
    \let\@mkboth\@gobbletwo
    \def\@oddhead{\oddheadfont\thepage\hfil}
    \def\@evenhead{\evenheadfont\hfil\thepage}
    \let\@oddfoot\@empty
    \let\@evenfoot\@empty
  }
\else
  \def\ps@headright{
    \let\@mkboth\@gobbletwo
    \def\@oddhead{\headfont\hfil\thepage}
    \def\@oddhead{\headfont\hfil\thepage}
    \let\@oddfoot\@empty
    \let\@evenfoot\@empty
  }
\fi

%    \end{macrocode}
% \paragraph{headleft}
%    \begin{macrocode}
\if@twoside
  \def\ps@headleft{
    \let\@mkboth\@gobbletwo
    \def\@oddhead{\oddheadfont\hfil\thepage}
    \def\@evenhead{\evenheadfont\thepage\hfil}
    \let\@oddfoot\@empty
    \let\@evenfoot\@empty
  }
\else
  \def\ps@headleft{
    \let\@mkboth\@gobbletwo
    \def\@oddhead{\headfont\thepage\hfil}
    \def\@evenhead{\headfont\thepage\hfil}
    \let\@oddfoot\@empty
    \let\@evenfoot\@empty
  }
\fi

%    \end{macrocode}
% \paragraph{plain}\hfil\\[6pt]
%    \begin{macrocode}
\let\ps@plain=\ps@footcenter

%    \end{macrocode}
% \subsubsection{Ñòèëè êîëîíòèòóëîâ ïî óìîë÷àíèþ}
% Ñòèëü êîëîíòèòóëîâ îáû÷íûõ ñòðàíèö.
%    \begin{macrocode}
\pagestyle{headcenter}

%    \end{macrocode}
% Êîìàíäà, îïðåäåëÿþùàÿ ñòèëü ñòðàíèöû, ñ êîòîðîé íà÷èíàåòñÿ ãëàâà.
% \DescribeMacro{\chapterpagestyle}\index{Ìàêðîñû!\verb*+\chapterpagestyle+}
%    \begin{macrocode}
\def\chapterpagestyle#1{\gdef\@chapterpagestyle{#1}}

%    \end{macrocode}
% Ñòèëü êîëîíòèòóëîâ ñòðàíèö, ñ êîòîðûõ íà÷èíàåòñÿ ãëàâà.
%    \begin{macrocode}
\chapterpagestyle{headcenter}
%    \end{macrocode}
% Ñòèëü íóìåðàöèè ñòðàíèö.
%    \begin{macrocode}
\pagenumbering{arabic}
%    \end{macrocode}
% Äëÿ îäíîñòîðîííèõ äîêóìåíòîâ ðàçðåøàåòñÿ äåëàòü ñòðàíèöû ñ ðàçíîé âûñîòîé
% òåêñòà.
%    \begin{macrocode}
\if@twoside\else\raggedbottom\fi
%    \end{macrocode}
% Äëÿ äâóõêîëîíî÷íûõ äîêóìåíòîâ:
% |\flushbottom| çàïðåùàåò äåëàòü ñòðàíèöû ñ ðàçíîé âûñîòîé òåêñòà,
% |\sloppy| âêëþ÷àåò ìåíåå æåñòêèå îãðàíè÷åíèÿ íà ðàçðûâû ñòðîê.
%    \begin{macrocode}
\if@twocolumn
  \twocolumn\sloppy\flushbottom
\else
  \onecolumn
\fi

%</page>
%    \end{macrocode}