summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/disser/env.dtx
blob: b45652c6c70c0ef9b4e5a76469e3015bec58fc90 (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

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

%<*env>
%    \end{macrocode}
% \subsection{Îêðóæåíèÿ}
%
% \DescribeEnv{description}
% Ïðèìå÷àíèå
%    \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}
% Àííîòàöèÿ
%    \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}
% Öèòèðîâàíèå
%    \begin{macrocode}
\newenvironment{quotation}{
  \list{}{
    \listparindent 1.5em
    \itemindent\listparindent
    \rightmargin\leftmargin
    \parsep\z@ \@plus\p@
  }
  \item\relax
}{\endlist}
%    \end{macrocode}
% \DescribeEnv{quote}
% Âûäåðæêà
%    \begin{macrocode}
\newenvironment{quote}{
  \list{}{\rightmargin\leftmargin}
  \item\relax
}{\endlist}
%    \end{macrocode}
% \DescribeEnv{titlepage}
% Òèòóëüíûé ëèñò
%    \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}
% \DescribeEnv{figure*}
% Ðèñóíîê
%    \begin{macrocode}
\newenvironment{figure}{\@float{figure}}{\end@float}
\newenvironment{figure*}{\@dblfloat{figure}}{\end@dblfloat}
%    \end{macrocode}
%
% \DescribeEnv{table}
% \DescribeEnv{table*}
% Òàáëèöà
%    \begin{macrocode}
\newenvironment{table}{\@float{table}}{\end@float}
\newenvironment{table*}{\@dblfloat{table}}{\end@dblfloat}
%    \end{macrocode}
%
% \subsection{Êîìàíäû äëÿ ñîçäàíèÿ îêðóæåíèé òèïà <<òåîðåìà>>}
% Ïàðàìåòðû ôîðìàòà.
%    \begin{macrocode}
\providecommand\theoremstyle{\itshape}
\providecommand\thetheoremstyle{\bfseries}
\providecommand\opargtheoremstyle{\rm}
\providecommand\preopargtheorem{(}
\providecommand\postopargtheorem{)}
\providecommand\postthetheorem{.}

%    \end{macrocode}
% Íèçêîóðîâíåâûå êîìàíäû äëÿ ñîçäàíèÿ çàãîëîâêà òåîðåìû.
%    \begin{macrocode}
\def\@begintheorem#1#2{\trivlist
  \item[\hskip \labelsep{\thetheoremstyle #1\ %
  #2\unskip\postthetheorem}]\theoremstyle}
\def\@opargbegintheorem#1#2#3{\trivlist
  \item[\hskip \labelsep{\thetheoremstyle #1\ #2\ %
  {\opargtheoremstyle\preopargtheorem #3\postopargtheorem}}]\theoremstyle}
\def\@endtheorem{\endtrivlist}

%</env>
%    \end{macrocode}