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

%<*page>
%    \end{macrocode}
%
% \subsection{Îïðåäåëåíèå ñòèëåé ñòðàíèö}
%
% \subsubsection{headings}
%    \begin{macrocode}
\if@twoside
%    \end{macrocode}
% \begin{itemize}
% \item Äëÿ äâóõñòîðîííèõ äîêóìåíòîâ.
%    \begin{macrocode}
  \def\ps@headings{%
%    \end{macrocode}
%   \begin{itemize}
%   \item Êîëîíòèòóëû:
%     \begin{itemize}
%     \item íèæíèé íà ÷åòíûõ ñòðàíèöàõ.
%    \begin{macrocode}
    \let\@evenfoot\@empty
%    \end{macrocode}
%     \item íèæíèé íà íå÷åòíûõ ñòðàíèöàõ.
%    \begin{macrocode}
    \let\@oddfoot\@empty
%    \end{macrocode}
%     \item âåðõíèé íà ÷åòíûõ ñòðàíèöàõ.
%    \begin{macrocode}
    \def\@evenhead{\thepage\hfil\evenheadfont\leftmark}%
%    \end{macrocode}
%     \item âåðõíèé íà íå÷åòíûõ ñòðàíèöàõ.
%    \begin{macrocode}
    \def\@oddhead{{\oddheadfont\rightmark}\hfil\thepage}%
    \let\@mkboth\markboth
%    \end{macrocode}
%     \end{itemize}
%   \item Ôîðìàò çàãîëîâêîâ ãëàâ â êîëîíòèòóëàõ.
%    \begin{macrocode}
    \def\chaptermark##1{%
      \markboth{{\chaptermarkfont %
      \ifnum \c@secnumdepth >\m@ne
        \@tocseccntformat{chapter} \ %
      \fi
      ##1}}{}%
    }%
%    \end{macrocode}
%   \item Ôîðìàò çàãîëîâêîâ ñåêöèé â êîëîíòèòóëàõ.
%    \begin{macrocode}
    \def\sectionmark##1{%
      \markright{{\sectionmarkfont %
      \ifnum \c@secnumdepth >\z@
        \@tocseccntformat{section}%
      \fi
      ##1}%
      }%
    }%
  }%
%    \end{macrocode}
%   \end{itemize}
%    \begin{macrocode}
\else % \if@twoside
%    \end{macrocode}
%  \item Äëÿ îäíîñòîðîííèõ äîêóìåíòîâ.
%    \begin{macrocode}
  \def\ps@headings{%
%    \end{macrocode}
%  \begin{itemize}
%    \item Êîëîíòèòóëû.
%    \begin{macrocode}
    \let\@oddfoot\@empty
    \def\@oddhead{
      {\slshape\rightmark}%
      \hfil\thepage
    }%
    \let\@mkboth\markboth
%    \end{macrocode}
%    \item Ôîðìàò ìàðêåðà ãëàâû.
%    \begin{macrocode}
    \def\chaptermark##1{%
    \markright {{\chaptermarkfont %
    \ifnum\c@secnumdepth >\m@ne
      \@tocseccntformat{chapter} \ %
    \fi
    ##1}}{}}
%    \end{macrocode}
%    \item Ôîðìàò ìàðêåðà ñåêöèè.
%    \begin{macrocode}
    \def\sectionmark##1{%
      \markright{{\sectionmarkfont %
          \ifnum \c@secnumdepth >\z@
            \@tocseccntformat{section} \ %
          \fi
          ##1%
        }
      }
    }
  }
\fi % \if@twoside

%    \end{macrocode}
%   \end{itemize}
% \end{itemize}
%
% \subsubsection{myheadings}
%    \begin{macrocode}
\def\ps@myheadings{%
  \let\@oddfoot\@empty\let\@evenfoot\@empty
  \def\@evenhead{\thepage\hfil\evenheadfont\leftmark}%
  \def\@oddhead{{\oddheadfont\rightmark}\hfil\thepage}%
  \let\@mkboth\@gobbletwo
  \let\chaptermark\@gobble
  \let\sectionmark\@gobble
}
%    \end{macrocode}
% \subsection{Ïàðàìåòðû ñòðàíèö}
%
% Èíòåðâàë ìåæäó êîëîíêàìè òåêñòà.
%    \begin{macrocode}
\setlength\columnsep{10\p@}
%    \end{macrocode}
%
% Øèðèíà ðàçäåëèòåëÿ (ëèíèè) ìåæäó êîëîíêàìè òåêñòà (ïî óìîë÷àíèþ åãî íåò).
%    \begin{macrocode}
\setlength\columnseprule{0\p@}
%    \end{macrocode}
% Ñòèëü îôîðìëåíèÿ êîëîíòèòóëîâ ñòðàíèöû.
%    \begin{macrocode}
\pagestyle{plain}
%    \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
%    \end{macrocode}
% \DescribeMacro{\evenheadfont}
% \DescribeMacro{\evenfootfont}
% \DescribeMacro{\oddheadfont}
% \DescribeMacro{\oddfootfont}
% Øðèôò êîëîíòèòóëîâ.
% \begin{itemize}
% \item Âåðõíèé, íà ÷åòíûõ ñòðàíèöàõ.
%    \begin{macrocode}
\newcommand\evenheadfont{\slshape}
%    \end{macrocode}
% \item Íèæíèé, íà ÷åòíûõ ñòðàíèöàõ.
%    \begin{macrocode}
\newcommand\evenfootfont{}
%    \end{macrocode}
% \item Âåðõíèé, íà íå÷åòíûõ ñòðàíèöàõ.
%    \begin{macrocode}
\newcommand\oddheadfont{\slshape}
%    \end{macrocode}
% \item Íèæíèé, íà íå÷åòíûõ ñòðàíèöàõ.
%    \begin{macrocode}
\newcommand\oddfootfont{}
%    \end{macrocode}
% \end{itemize}
% 
% \DescribeMacro{\chaptermarkfont}
% \DescribeMacro{\sectionmarkfont}
%    \begin{macrocode}
\newcommand\chaptermarkfont{\slshape}
\newcommand\sectionmarkfont{\MakeUppercase}

%</page>
%    \end{macrocode}