summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/disser/chapter.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-06-24 16:35:13 +0000
committerKarl Berry <karl@freefriends.org>2009-06-24 16:35:13 +0000
commitd73a503687f31a927aea191ec9ed3cf1c950fd8f (patch)
tree7dc5b70b51a539ac785341bad4387d836bb371c2 /Master/texmf-dist/source/latex/disser/chapter.dtx
parent3c2360d0385b88c9a20bd20ac33c71d9cec07294 (diff)
disser update (23jun09)
git-svn-id: svn://tug.org/texlive/trunk@13941 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/disser/chapter.dtx')
-rw-r--r--Master/texmf-dist/source/latex/disser/chapter.dtx45
1 files changed, 19 insertions, 26 deletions
diff --git a/Master/texmf-dist/source/latex/disser/chapter.dtx b/Master/texmf-dist/source/latex/disser/chapter.dtx
index 2ad390b64d9..3562d7b78ca 100644
--- a/Master/texmf-dist/source/latex/disser/chapter.dtx
+++ b/Master/texmf-dist/source/latex/disser/chapter.dtx
@@ -49,6 +49,7 @@
\providecommand\chapterfont{\Large\bfseries}
\providecommand\beforechapter{}
\providecommand\afterchapter{\par\nobreak\vskip 20\p@}
+\providecommand\chapterindent{0pt}
% \end{macrocode}
%
@@ -87,9 +88,6 @@
{\def\\{ }\addcontentsline{toc}{chapter}{#1}}%
\fi
\chaptermark{#1}%
-% \end{macrocode}
-% Добавление вертикальных разделителей в списки рисунков и таблиц.
-% \begin{macrocode}
\addtocontents{lof}{\protect\addvspace{10\p@}}%
\addtocontents{lot}{\protect\addvspace{10\p@}}%
\if@twocolumn
@@ -104,22 +102,15 @@
% \DescribeMacro{\@makechapterhead}\index{Макросы!\verb+"\"@makechapterhead+}
% Формат нумеруемого заголовка.
% \begin{macrocode}
-\def\@makechapterhead#1{%
- {%
-% \end{macrocode}
-% Установка нулевого абзацного отступа.
-% \begin{macrocode}
- \parindent \z@ \raggedright \normalfont
-% \end{macrocode}
-% Постоянная часть заголовка.
-% \begin{macrocode}
- \ifnum \c@secnumdepth >\m@ne
- {\thechapterfont\thechapteralign\@seccntformat{chapter}}
- \fi
- \interlinepenalty\@M
- \chapterfont\chapteralign\beforechapter #1\afterchapter
- }
-}
+\def\@makechapterhead#1{{%
+ \parindent\z@
+ \normalfont\hskip\chapterindent%
+ \ifnum \c@secnumdepth >\m@ne
+ {\thechapterfont\thechapteralign\@seccntformat{chapter}}
+ \fi
+ \interlinepenalty\@M
+ \chapterfont\chapteralign\beforechapter #1\afterchapter
+}}
% \end{macrocode}
%
@@ -140,13 +131,12 @@
% \DescribeMacro{\@makeschapterhead}\index{Макросы!\verb+"\"@makeschapterhead+}
% Формат ненумеруемого заголовка.
% \begin{macrocode}
-\def\@makeschapterhead#1{%
- {%
- \parindent \z@ \raggedright
- \normalfont\interlinepenalty\@M
- \chapteralign{\chapterfont\beforechapter #1\afterchapter}
- }
-}
+\def\@makeschapterhead#1{{%
+ \parindent\z@
+ \normalfont\hskip\chapterindent%
+ \interlinepenalty\@M
+ \chapteralign\chapterfont\beforechapter #1\afterchapter
+}}
% \end{macrocode}
%
% \DescribeMacro{\l@chapter}\index{Макросы!\verb+"\l"@chapter+}
@@ -213,6 +203,7 @@
\providecommand\appendixfont{\Large\bfseries}
\providecommand\beforeappendix{}
\providecommand\afterappendix{\par\nobreak\vskip 20\p@}
+\providecommand\appendixindent{0pt}
% \end{macrocode}
%
% \DescribeMacro{\appendix}\index{Макросы!\verb*+\appendix+}
@@ -242,6 +233,7 @@
\let\oldchapteralign=\chapteralign
\let\oldchapterfont=\chapterfont
+ \let\oldchapterindent=\chapterindent
\let\oldbeforechapter=\afterchapter
\let\oldafterchapter=\afterchapter
\let\oldthechapter=\thechapter
@@ -266,6 +258,7 @@
\renewcommand\chapterfont{\appendixfont}
\renewcommand\beforechapter{\beforeappendix}
\renewcommand\afterchapter{\afterappendix}
+ \renewcommand\chapterindent{\appendixindent}
\gdef\thechapter{\theappendix}
}