blob: f7a9d0d57da5ca6e2ac72a7252aeab0f1d80a1d7 (
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
|
% \iffalse
%%% From File: env.dtx
% \fi
%
% \begin{macrocode}
%<*env>
% \end{macrocode}
% \subsection{Îêðóæåíèÿ}
%
% \DescribeEnv{description}\index{Îêðóæåíèÿ!\verb*+description+}
% \subsubsection{Ïðèìå÷àíèå}
% \begin{macrocode}
\newenvironment{description}
{\list{}{\labelwidth\z@ \itemindent-\leftmargin
\let\makelabel\descriptionlabel}}
{\endlist}
\newcommand*\descriptionlabel[1]{\hspace\labelsep\normalfont\bfseries #1}
% \end{macrocode}
% \DescribeEnv{abstract}\index{Îêðóæåíèÿ!\verb*+abstract+}
% \subsubsection{Àííîòàöèÿ}
% \begin{macrocode}
\if@titlepage
\newenvironment{abstract}{
\thispagestyle{empty}
\@beginparpenalty\@lowpenalty
\begin{center}%
\bfseries\small\abstractname
\@endparpenalty\@M
\end{center}\small
}{\par\vfil\null}
\else
\newenvironment{abstract}{
\if@twocolumn
\section*{\abstractname}
\else
\small
\begin{center}
{\bfseries\abstractname\vspace{-.5em}\vspace{\z@}}%
\end{center}
\quotation
\fi
}{\if@twocolumn\else\endquotation\fi}
\fi
% \end{macrocode}
% \DescribeEnv{quotation}\index{Îêðóæåíèÿ!\verb*+quotation+}
% \subsubsection{Öèòèðîâàíèå}
% \begin{macrocode}
\newenvironment{quotation}{
\list{}{
\listparindent 1.5em
\itemindent\listparindent
\rightmargin\leftmargin
\parsep\z@ \@plus\p@
}
\item\relax
}{\endlist}
% \end{macrocode}
% \DescribeEnv{quote}\index{Îêðóæåíèÿ!\verb*+quote+}
% \subsubsection{Âûäåðæêà}
% \begin{macrocode}
\newenvironment{quote}{
\list{}{\rightmargin\leftmargin}
\item\relax
}{\endlist}
% \end{macrocode}
% \DescribeEnv{titlepage}\index{Îêðóæåíèÿ!\verb*+titlepage+}
% \subsubsection{Òèòóëüíûé ëèñò}
% \begin{macrocode}
\newenvironment{titlepage}{
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse\newpage
\fi
\thispagestyle{empty}
\setcounter{page}\@ne
}
{
\if@restonecol\twocolumn\else\newpage\fi
\if@twoside\else\setcounter{page}\@ne\fi
}
% \end{macrocode}
%
% \DescribeEnv{figure}\index{Îêðóæåíèÿ!\verb*+figure+}
% \DescribeEnv{figure*}\index{Îêðóæåíèÿ!\verb*+figure*+}
% \subsubsection{Ðèñóíîê}
% \begin{macrocode}
\newenvironment{figure}{\@float{figure}}{\end@float}
\newenvironment{figure*}{\@dblfloat{figure}}{\end@dblfloat}
% \end{macrocode}
%
% \DescribeEnv{table}\index{Îêðóæåíèÿ!\verb*+table+}
% \DescribeEnv{table*}\index{Îêðóæåíèÿ!\verb*+table*+}
% \subsubsection{Òàáëèöà}
% \begin{macrocode}
\newenvironment{table}{\@float{table}}{\end@float}
\newenvironment{table*}{\@dblfloat{table}}{\end@dblfloat}
% \end{macrocode}
%
% \subsubsection{Îêðóæåíèÿ òèïà <<òåîðåìà>>}
%
% \DescribeMacro{\newtheorem}\index{Ìàêðîñû!\verb*+\newtheorem+}
% Ïåðåîïðåäåëÿåì |\newtheorem|, òàê ÷òîáû àâòîìàòè÷åñêè ñîçäàâàëèñü
% ïàðàìåòðû ôîðìàòà òåîðåì.
% \begin{macrocode}
\def\newtheorem#1{%
% \end{macrocode}
% \DescribeMacro{\theoremstyle}\index{Ìàêðîñû!\verb*+\theoremstyle+}
% \DescribeMacro{\thetheoremstyle}\index{Ìàêðîñû!\verb*+\thetheoremstyle+}
% \DescribeMacro{\postthetheorem}\index{Ìàêðîñû!\verb*+\postthetheorem+}
% \DescribeMacro{\opargtheorem}\index{Ìàêðîñû!\verb*+\opargtheorem+}
% \DescribeMacro{\preopargtheorem}\index{Ìàêðîñû!\verb*+\preopargtheorem+}
% \DescribeMacro{\postopargtheorem}\index{Ìàêðîñû!\verb*+\postopargtheorem+}
% \begin{macrocode}
{
% \end{macrocode}
% Ñòèëü òåêñòà òåîðåìû.
% \begin{macrocode}
\global\@namedef{#1style}{\itshape}
% \end{macrocode}
% Ñòèëü çàãîëîâêà è íîìåðà òåîðåìû.
% \begin{macrocode}
\global\@namedef{the#1style}{\bfseries}
% \end{macrocode}
% Ñèìâîë ïîñëå íîìåðà.
% \begin{macrocode}
\global\@namedef{postthe#1}{.}
% \end{macrocode}
% Ñòèëü îïöèîíàëüíîãî àðãóìåíòà (òåêñòà â ñêîáêàõ ïîñëå çàãîëîâêà è íîìåðà).
% \begin{macrocode}
\global\@namedef{oparg#1style}{\rm}
% \end{macrocode}
% Ñèìâîëû, îêðóæàþùèå îïöèîíàëüíûé àðãóìåíò (ïî óìîë÷àíèþ --- êðóãëûå ñêîáêè).
% \begin{macrocode}
\global\@namedef{preoparg#1}{(}
\global\@namedef{postoparg#1}{)}
}
\@ifnextchar[{\@othm{#1}}{\@nthm{#1}}%
}
% \end{macrocode}
% Ó êîìàíä |\@begintheorem| è |\@opargbegintheorem| èçìåíåíû àðãóìåíòû,
% ÷òîáû ìîæíî áûëî èñïîëüçîâàòü îáîáùåííîå ôîðìàòèðîâàíèå.
% \begin{macrocode}
\def\@xthm#1#2{%
\@begintheorem{#1}{#2}\ignorespaces}
\def\@ythm#1#2[#3]{%
\@opargbegintheorem{#1}{#2}{#3}\ignorespaces}
\def\@begintheorem#1#2{\trivlist
\item[\hskip \labelsep{\csname the#1style\endcsname #2\ %
\csname the#1\endcsname\unskip%
\csname postthe#1\endcsname}]%
\csname #1style\endcsname}
\def\@opargbegintheorem#1#2#3{\trivlist
\item[\hskip \labelsep{%
{\csname the#1style\endcsname #2}\ %
\csname the#1\endcsname\ %
{\csname oparg#1style\endcsname%
\csname preoparg#1\endcsname #3%
\csname postoparg#1\endcsname}}]%
\csname #1style\endcsname}
\def\@endtheorem{\endtrivlist}
%</env>
% \end{macrocode}
|