summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/disser/sections.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-04-30 16:42:27 +0000
committerKarl Berry <karl@freefriends.org>2008-04-30 16:42:27 +0000
commite80bc7d79084da75417e8364b1bae2d0fbd30781 (patch)
treeeb6d8b3d4f66250c1bca15488440532b6851cf83 /Master/texmf-dist/source/latex/disser/sections.dtx
parentf743e5375a0cf6ae12b3a7137584eb7f3b8eab7b (diff)
disser update (29apr08)
git-svn-id: svn://tug.org/texlive/trunk@7743 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/disser/sections.dtx')
-rw-r--r--Master/texmf-dist/source/latex/disser/sections.dtx84
1 files changed, 57 insertions, 27 deletions
diff --git a/Master/texmf-dist/source/latex/disser/sections.dtx b/Master/texmf-dist/source/latex/disser/sections.dtx
index 07fb3c32420..13d5b311658 100644
--- a/Master/texmf-dist/source/latex/disser/sections.dtx
+++ b/Master/texmf-dist/source/latex/disser/sections.dtx
@@ -20,12 +20,12 @@
\providecommand\tocsectionfillfont{}
\providecommand\tocsectionnumfont{}
% \end{macrocode}
-% \DescribeMacro{\tocsectionindent}
+% \DescribeMacro{\tocsectionindent}\index{Макросы!\verb*+\tocsectionindent+}
% Величина отступа записи в Содержании.
% \begin{macrocode}
\providecommand\tocsectionindent{1.5em}
% \end{macrocode}
-% \DescribeMacro{\tocsectionnameindent}
+% \DescribeMacro{\tocsectionnameindent}\index{Макросы!\verb*+\tocsectionnameindent+}
% Пробел после номера.
% \begin{macrocode}
\providecommand\tocsectionnameindent{2.3em}
@@ -39,22 +39,22 @@
\providecommand\postthesection{.~}
% \end{macrocode}
-% \DescribeMacro{\sectionindent}
+% \DescribeMacro{\sectionindent}\index{Макросы!\verb*+\sectionindent+}
% Величина отступа заголовка секции на странице.
% \begin{macrocode}
\providecommand\sectionindent{\z@}
% \end{macrocode}
-% \DescribeMacro{\presection}
+% \DescribeMacro{\presection}\index{Макросы!\verb*+\presection+}
% Величина вертикального отступа перед заголовком секции.
% \begin{macrocode}
\providecommand\beforesection{-3.5ex \@plus -1ex \@minus -.2ex}
% \end{macrocode}
-% \DescribeMacro{\postsection}
+% \DescribeMacro{\postsection}\index{Макросы!\verb*+\postsection+}
% Величина вертикального отступа после заголовка секции.
% \begin{macrocode}
\providecommand\aftersection{2.3ex \@plus.2ex}
% \end{macrocode}
-% \DescribeMacro{\sectionalign}
+% \DescribeMacro{\sectionalign}\index{Макросы!\verb*+\sectionalign+}
% Выравнивание заголовка.
% \begin{macrocode}
\providecommand\sectionalign{\raggedright}
@@ -174,7 +174,7 @@
% \end{macrocode}
% \subsubsection{Низкоуровневые команды}
%
-% \DescribeMacro{\@sect}
+% \DescribeMacro{\@sect}\index{Макросы!\verb+"\"@sect+}
% Обобщенная версия команды, создающей заголовки секций.
% \begin{macrocode}
\def\@sect#1#2#3#4#5#6[#7]#8{%
@@ -208,11 +208,11 @@
\fi
#7}}%
\fi
- \@xsect{#5}
+ \@xsect{#5}%
}
% \end{macrocode}
%
-% \DescribeMacro{\@tocline}
+% \DescribeMacro{\@tocline}\index{Макросы!\verb+"\"@tocline+}
% Обобщенная версия команды, добавляющей запись в Содержание.
% \begin{macrocode}
\def\@tocline#1#2#3#4#5#6{%
@@ -235,26 +235,56 @@
% \end{macrocode}
%
-% \DescribeMacro{\defsection}
+% \DescribeMacro{\defsection}\index{Макросы!\verb*+\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}
+%\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}
+
+\newcommand\section{\@startsection{section}{1}
+ {\sectionindent}{\beforesection}%
+ {\aftersection}{\sectionfont\sectionalign}}
+\newcommand*\l@section{\@tocline{section}{1}{\tocsectionindent}%
+{\tocsectionnameindent}}
+
+\newcommand\subsection{\@startsection{subsection}{2}
+ {\subsectionindent}{\beforesubsection}%
+ {\aftersubsection}{\subsectionfont\subsectionalign}}
+\newcommand*\l@subsection{\@tocline{subsection}{2}{\tocsubsectionindent}%
+{\tocsubsectionnameindent}}
+
+\newcommand\subsubsection{\@startsection{subsubsection}{3}
+ {\subsubsectionindent}{\beforesubsubsection}%
+ {\aftersubsubsection}{\subsubsectionfont\subsubsectionalign}}
+\newcommand*\l@subsubsection{\@tocline{subsubsection}{3}{\tocsubsubsectionindent}%
+{\tocsubsubsectionnameindent}}
+
+\newcommand\paragraph{\@startsection{paragraph}{4}
+ {\paragraphindent}{\beforeparagraph}%
+ {\afterparagraph}{\paragraphfont\paragraphalign}}
+\newcommand*\l@paragraph{\@tocline{paragraph}{4}{\tocparagraphindent}%
+{\tocparagraphnameindent}}
+
+\newcommand\subparagraph{\@startsection{subparagraph}{5}
+ {\subparagraphindent}{\beforesubparagraph}%
+ {\aftersubparagraph}{\subparagraphfont\subparagraphalign}}
+\newcommand*\l@subparagraph{\@tocline{subparagraph}{5}{\tocsubparagraphindent}%
+{\tocsubparagraphnameindent}}
%</sections>
% \end{macrocode}