summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/kluwer/klumono.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-12 23:57:34 +0000
committerKarl Berry <karl@freefriends.org>2006-01-12 23:57:34 +0000
commit3eb843585fc56ace68d2c095ff32de0c743b9446 (patch)
tree287b2687611d62336f3d9ce623f6040a9caecb1b /Master/texmf-dist/tex/latex/kluwer/klumono.sty
parent27fa66bacafe77045cae158eb1a517a5600e3332 (diff)
kluwer
git-svn-id: svn://tug.org/texlive/trunk@1017 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/kluwer/klumono.sty')
-rw-r--r--Master/texmf-dist/tex/latex/kluwer/klumono.sty69
1 files changed, 69 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/kluwer/klumono.sty b/Master/texmf-dist/tex/latex/kluwer/klumono.sty
new file mode 100644
index 00000000000..bd5b62cb9c1
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/kluwer/klumono.sty
@@ -0,0 +1,69 @@
+% additions to klusec specific to monographies
+\def\@chapter[#1]#2{%
+ \ifnum \c@secnumdepth >\m@ne
+ \refstepcounter{chapter}%
+ \message{\@chapapp\space\thechapter\chapterdot}%
+ \addcontentsline{toc}{chapter}{\protect
+ \chapterline{\@chapapp}{\thechapter}#1}%
+ \gdef\@runningtitle{#1}%
+ \else
+ \addcontentsline{toc}{chapter}{#1}%
+ \fi
+ \chaptermark{#1}%
+ \addtocontents{lof}{\protect\addvspace{10pt}}%
+ \addtocontents{lot}{\protect\addvspace{10pt}}%
+ \@makechapterhead{\thechapter\chapterdot\ }{#2}%
+ \@afterheading
+ }
+\def\@schapter#1{\@makeschapterhead{#1}%
+ \imarkboth{#1}{#1}%
+ \addcontentsline{toc}{chapter}{\uppercase{#1}}%
+ \@afterheading
+ }
+\newcommand{\@makeschapterhead}[1]{\vspace*{\Cspaceabove}%
+ {\parindent 0pt \hyphenpenalty 10000
+ \Cflushstyle
+ \Ctextstyle \Ccase{#1}\par
+ \nobreak \Cspaceafter \relax
+ }}
+
+\def\@ssection#1{\@makessectionhead{#1}\@afterheading}
+\newcommand{\@makessectionhead}[1]{\vsecspace{\Sspaceabove}%
+ {\parindent0pt \hyphenpenalty=10000 \baselineskip12pt
+ \Sflushstyle
+ \Stextstyle \Scase{#1}\par
+ \nobreak \Sspaceafter \relax
+ }}
+
+\def\@ssubsection#1{\@makessubsectionhead{#1}\@afterheading}
+\newcommand{\@makessubsectionhead}[1]{\vsecspace{\SSspaceabove}%
+ {\parindent0pt \hyphenpenalty=10000 \baselineskip12pt
+ \SSflushstyle
+ \SStextstyle \SScase{#1}\par
+ \nobreak \SSspaceafter \relax
+ }}
+
+%
+% Toc adjustment
+%
+\def\chapterline#1#2{%
+ \def\@tempb{#1}\ifx\@tempb\appendixname
+ \uppercase{#1}\ #2 /
+ \else
+ \uppercase{#1}\ \NUMTOWORD{#2} /
+ \fi
+ }
+
+%
+% page styles
+%
+\def\ps@monoplain{\let\@mkboth\@gobbletwo
+ \def\@oddhead{}%
+ \let\@evenhead\@oddhead
+ \def\@oddfoot{\idline\hfil\rm\@pgnumfont\thepage\hfil}%
+ \let\@evenfoot\@oddfoot
+ \let\chaptermark\@gobbletwo
+ \let\sectionmark\@gobble
+ \let\subsectionmark\@gobble
+}
+