summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/kluwer/klumono.sty
blob: bd5b62cb9c1ad4ba1cccac555816c943734055ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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
}