summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/kluwer/klumono.sty
diff options
context:
space:
mode:
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
+}
+