summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/disser/sections.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/disser/sections.dtx')
-rw-r--r--Master/texmf-dist/source/latex/disser/sections.dtx125
1 files changed, 70 insertions, 55 deletions
diff --git a/Master/texmf-dist/source/latex/disser/sections.dtx b/Master/texmf-dist/source/latex/disser/sections.dtx
index 22dd0dfe787..07fb3c32420 100644
--- a/Master/texmf-dist/source/latex/disser/sections.dtx
+++ b/Master/texmf-dist/source/latex/disser/sections.dtx
@@ -1,9 +1,16 @@
+
+% \iffalse
+%%% From File: sections.dtx
+% \fi
+%
% \begin{macrocode}
%<*sections>
% \end{macrocode}
% \subsection{Секции и параграфы}
+%
% \subsubsection{Section}
+% \paragraph{Параметры формата записи в Содержании}
% \begin{macrocode}
\providecommand\tocprethesection{}
\providecommand\tocpostthesection{.\@postskip}
@@ -13,44 +20,48 @@
\providecommand\tocsectionfillfont{}
\providecommand\tocsectionnumfont{}
% \end{macrocode}
-% Величина отступа записи в Содержании.
% \DescribeMacro{\tocsectionindent}
+% Величина отступа записи в Содержании.
% \begin{macrocode}
\providecommand\tocsectionindent{1.5em}
% \end{macrocode}
-% Пробел после номера.
% \DescribeMacro{\tocsectionnameindent}
+% Пробел после номера.
% \begin{macrocode}
\providecommand\tocsectionnameindent{2.3em}
+% \end{macrocode}
+% \paragraph{Параметры формата в тексте}
+% \begin{macrocode}
\providecommand\sectionfont{\normalfont\large\bfseries}
\providecommand\prethesection{}
\providecommand\postthesection{.~}
% \end{macrocode}
-% Величина отступа заголовка секции на странице.
% \DescribeMacro{\sectionindent}
+% Величина отступа заголовка секции на странице.
% \begin{macrocode}
\providecommand\sectionindent{\z@}
% \end{macrocode}
-% Величина вертикального отступа перед заголовком секции.
% \DescribeMacro{\presection}
+% Величина вертикального отступа перед заголовком секции.
% \begin{macrocode}
-\providecommand\presection{-3.5ex \@plus -1ex \@minus -.2ex}
+\providecommand\beforesection{-3.5ex \@plus -1ex \@minus -.2ex}
% \end{macrocode}
-% Величина вертикального отступа после заголовка секции.
% \DescribeMacro{\postsection}
+% Величина вертикального отступа после заголовка секции.
% \begin{macrocode}
-\providecommand\postsection{2.3ex \@plus.2ex}
+\providecommand\aftersection{2.3ex \@plus.2ex}
% \end{macrocode}
-% Выравнивание заголовка.
% \DescribeMacro{\sectionalign}
+% Выравнивание заголовка.
% \begin{macrocode}
\providecommand\sectionalign{\raggedright}
% \end{macrocode}
% \subsubsection{Subsection}
+% \paragraph{Параметры формата записи в Содержании}
% \begin{macrocode}
\providecommand\tocprethesubsection{}
\providecommand\tocpostthesubsection{.\@postskip}
@@ -63,18 +74,22 @@
\providecommand\tocsubsectionindent{3.8em}
\providecommand\tocsubsectionnameindent{3.2em}
+% \end{macrocode}
+% \paragraph{Параметры формата в тексте}
+% \begin{macrocode}
\providecommand\subsectionfont{\normalfont\normalsize\bfseries}
\providecommand\prethesubsection{}
\providecommand\postthesubsection{.~}
\providecommand\subsectionindent{\z@}
-\providecommand\presubsection{-3.25ex\@plus -1ex \@minus -.2ex}
-\providecommand\postsubsection{1.5ex \@plus .2ex}
+\providecommand\beforesubsection{-3.25ex\@plus -1ex \@minus -.2ex}
+\providecommand\aftersubsection{1.5ex \@plus .2ex}
\providecommand\subsectionalign{\raggedright}
% \end{macrocode}
% \subsubsection{Subsubsection}
+% \paragraph{Параметры формата записи в Содержании}
% \begin{macrocode}
\providecommand\tocprethesubsubsection{}
\providecommand\tocpostthesubsubsection{.\@postskip}
@@ -87,18 +102,22 @@
\providecommand\tocsubsubsectionindent{7.0em}
\providecommand\tocsubsubsectionnameindent{4.1em}
+% \end{macrocode}
+% \paragraph{Параметры формата в тексте}
+% \begin{macrocode}
\providecommand\subsubsectionfont{\normalfont\normalsize\bfseries}
\providecommand\prethesubsubsection{}
\providecommand\postthesubsubsection{.~}
\providecommand\subsubsectionindent{\z@}
-\providecommand\presubsubsection{-3.25ex\@plus -1ex \@minus -.2ex}
-\providecommand\postsubsubsection{1.5ex \@plus .2ex}
+\providecommand\beforesubsubsection{-3.25ex\@plus -1ex \@minus -.2ex}
+\providecommand\aftersubsubsection{1.5ex \@plus .2ex}
\providecommand\subsubsectionalign{\raggedright}
% \end{macrocode}
% \subsubsection{Paragraph}
+% \paragraph{Параметры формата записи в Содержании}
% \begin{macrocode}
\providecommand\tocpretheparagraph{}
\providecommand\tocposttheparagraph{.\@postskip}
@@ -111,18 +130,22 @@
\providecommand\tocparagraphindent{10em}
\providecommand\tocparagraphnameindent{5em}
+% \end{macrocode}
+% \paragraph{Параметры формата в тексте}
+% \begin{macrocode}
\providecommand\paragraphfont{\normalfont\normalsize\bfseries}
\providecommand\pretheparagraph{}
\providecommand\posttheparagraph{.~}
\providecommand\paragraphindent{\z@}
-\providecommand\preparagraph{3.25ex \@plus1ex \@minus.2ex}
-\providecommand\postparagraph{-1em}
+\providecommand\beforeparagraph{3.25ex \@plus1ex \@minus.2ex}
+\providecommand\afterparagraph{-1em}
\providecommand\paragraphalign{\raggedright}
% \end{macrocode}
% \subsubsection{Subparagraph}
+% \paragraph{Параметры формата записи в Содержании}
% \begin{macrocode}
\providecommand\tocprethesubparagraph{}
\providecommand\tocpostthesubparagraph{.\@postskip}
@@ -135,20 +158,24 @@
\providecommand\tocsubparagraphindent{12em}
\providecommand\tocsubparagraphnameindent{6em}
+% \end{macrocode}
+% \paragraph{Параметры формата в тексте}
+% \begin{macrocode}
\providecommand\subparagraphfont{\normalfont\normalsize\bfseries}
\providecommand\prethesubparagraph{}
\providecommand\postthesubparagraph{.~}
\providecommand\subparagraphindent{\parindent}
-\providecommand\presubparagraph{3.25ex \@plus1ex \@minus .2ex}
-\providecommand\postsubparagraph{-1em}
+\providecommand\beforesubparagraph{3.25ex \@plus1ex \@minus .2ex}
+\providecommand\aftersubparagraph{-1em}
\providecommand\subparagraphalign{\raggedright}
% \end{macrocode}
-% \subsubsection{Заголовки секций}
+% \subsubsection{Низкоуровневые команды}
%
-% Обобщенная версия стандартного макроса, создающего заголовки секций.
+% \DescribeMacro{\@sect}
+% Обобщенная версия команды, создающей заголовки секций.
% \begin{macrocode}
\def\@sect#1#2#3#4#5#6[#7]#8{%
\ifnum #2>\c@secnumdepth
@@ -183,9 +210,10 @@
\fi
\@xsect{#5}
}
-
% \end{macrocode}
-% Обобщенная версия стандартного макроса, добавляющего запись в Содержание.
+%
+% \DescribeMacro{\@tocline}
+% Обобщенная версия команды, добавляющей запись в Содержание.
% \begin{macrocode}
\def\@tocline#1#2#3#4#5#6{%
\ifnum #2>\c@tocdepth \else
@@ -205,41 +233,28 @@
\fi
}
-\newcommand*\l@section {\@tocline{section} {1}
- {\tocsectionindent}{\tocsectionnameindent}}
-\newcommand*\l@subsection {\@tocline{subsection} {2}
- {\tocsubsectionindent}{\tocsubsectionnameindent}}
-\newcommand*\l@subsubsection{\@tocline{subsubsection}{3}
- {\tocsubsubsectionindent}{\tocsubsubsectionnameindent}}
-\newcommand*\l@paragraph {\@tocline{paragraph} {4}
- {\tocparagraphindent}{\tocparagraphnameindent}}
-\newcommand*\l@subparagraph {\@tocline{subparagraph} {5}
- {\tocsubparagraphindent}{\tocsubparagraphnameindent}}
-
-% \end{macrocode}
-% Интерфейс.
-% \begin{macrocode}
-\newcommand\section{%
- \@startsection{section}{1}{\sectionindent}%
- {\presection}{\postsection}{\sectionfont\sectionalign}}
-\newcommand\subsection{%
- \@startsection{subsection}{2}{\subsectionindent}%
- {\presubsection}{\postsubsection}{\subsectionfont\subsectionalign}}
-\newcommand\subsubsection{%
- \@startsection{subsubsection}{3}{\subsubsectionindent}%
- {\presubsubsection}{\postsubsubsection}{\subsubsectionfont\subsubsectionalign}}
-\newcommand\paragraph{%
- \@startsection{paragraph}{4}{\paragraphindent}%
- {\preparagraph}{\postparagraph}{\paragraphfont\paragraphalign}}
-\newcommand\subparagraph{%
- \@startsection{subparagraph}{5}{\parindent}%
- {\presubparagraph}{\postsubparagraph}{\subparagraphfont\subparagraphalign}}
-
-% \end{macrocode}
-% Команда для создания ненумеруемых секций, которые будут включены в Содержание.
-% \begin{macrocode}
-\newcommand\nsection[1]{%
- \section*{\phantomsection\addcontentsline{toc}{section}{#1}#1}
+% \end{macrocode}
+%
+% \DescribeMacro{\defsection}
+% Генератор команд типа |\l@<section>| и |\<section>|.
+% \begin{macrocode}
+\newcommand\defsection[2]{%
+ \@namedef{l@#1}{%
+ \@tocline{#1}{#2}{\csname toc#1indent\endcsname}
+ {\csname toc#1nameindent\endcsname}
+ }
+ \@namedef{#1}{%
+ \@startsection{#1}{#2}{\csname #1indent\endcsname}
+ {\csname before#1\endcsname}{\csname after#1\endcsname}
+ {\csname #1font\endcsname\csname #1align\endcsname}
+ }
}
+
+\defsection{section}{1}
+\defsection{subsection}{2}
+\defsection{subsubsection}{3}
+\defsection{paragraph}{4}
+\defsection{subparagraph}{5}
+
%</sections>
% \end{macrocode}