summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/eskdx/eskdsect.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-12-19 00:54:24 +0000
committerKarl Berry <karl@freefriends.org>2006-12-19 00:54:24 +0000
commit80d42f3ef5d9bf6027aef95d27efea6014dbee02 (patch)
treee61c9aed51c362c6a366c690a211dad5debfd1a4 /Master/texmf-dist/tex/latex/eskdx/eskdsect.sty
parent38f0f73a43e0f28ff67323cdea32ff5bd3754c27 (diff)
eskdx update (18dec06)
git-svn-id: svn://tug.org/texlive/trunk@2798 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/eskdx/eskdsect.sty')
-rw-r--r--Master/texmf-dist/tex/latex/eskdx/eskdsect.sty20
1 files changed, 18 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/eskdx/eskdsect.sty b/Master/texmf-dist/tex/latex/eskdx/eskdsect.sty
index ea6140f92e6..50963e0475a 100644
--- a/Master/texmf-dist/tex/latex/eskdx/eskdsect.sty
+++ b/Master/texmf-dist/tex/latex/eskdx/eskdsect.sty
@@ -20,7 +20,7 @@
%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{eskdsect}[2006/08/26 v0.96 Sectioning]
+\ProvidesPackage{eskdsect}[2006/12/16 v0.97 Sectioning]
\newcommand{\ESKD@point@style}{single}
@@ -112,10 +112,13 @@
\renewcommand{\thesection}{\arabic{section}}
\renewcommand{\thesubsection}{\thesection.\arabic{subsection}}
\renewcommand{\thesubsubsection}{\thesubsection.\arabic{subsubsection}}
+\newif\ifESKD@point@style@single
+\ESKD@point@style@singlefalse
\newcommand{\ESKD@point@style@single}{
\newcounter{point}
- \renewcommand{\thepoint}{\arabic{point}}}
+ \renewcommand{\thepoint}{\arabic{point}}
+ \ESKD@point@style@singletrue}
\newcommand{\ESKD@point@style@section}{
\newcounter{point}[section]
@@ -146,6 +149,10 @@
\newcommand{\ESKDappendix}[2]{%
\ESKDclearDoublePage%
\refstepcounter{appendix}%
+ \setcounter{point}{0}%
+ \ifESKD@point@style@single%
+ \renewcommand{\thepoint}{\theappendix.\arabic{point}}%
+ \fi
\setcounter{section}{0}%
\renewcommand{\thesection}{\theappendix.\arabic{section}}%
\setcounter{equation}{0}%
@@ -171,3 +178,12 @@
\end{list}%
\par\nobreak\addvspace{\ESKDappendixSkip}}
+\renewcommand\tableofcontents{%
+ \begingroup
+ \ESKDsectAlign{section}{Center}
+ \section*{\contentsname
+ \@mkboth{%
+ \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
+ \endgroup
+ \@starttoc{toc}}
+