summaryrefslogtreecommitdiff
path: root/info/examples/ltt/celg.clo
blob: eba356249265395803fe1c73d80d99bf566d4d20 (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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
%   CELG.CLO
\typeout{BUCH class option CELG.CLO}
\RequirePackage[dvips]{color}
%
%  ----------------- Titelseite -----------------
\renewcommand{\maketitle}
 {{\thispagestyle{empty}\setlength{\parindent}{0pt}
   \vspace*{1cm}%
   \@author
   \ifthenelse{\equal{\@editor}{}}
     {}
     {\newline\@editor{} (\editorname)}
   \par
   \vspace*{0.2\textheight}
   \hrule height 1pt\vspace{\baselineskip}
   {\Huge\bfseries\@title\par}%
   \ifthenelse{\equal{\@subtitle}{}}
     {}%
     {\Large\@subtitle\par}
   \vspace*{0.5\baselineskip}\hrule height 1pt
   \vfill
   \ifthenelse{\equal{\@edition}{}}
     {}
     {\@edition{} }
   \ifthenelse{\equal{\@dateob}{}}
     {\the\year}
     {\@dateob}
   \\
   \ifthenelse{\equal{\@verlag}{}}
     {}
     {\@verlag}
   \newpage\thispagestyle{empty}%
 }}
%
%  ----------------- TOC -----------------
\newlength{\emlength}
\setlength{\emlength}{1em}
\newlength{\numwidth}
\setlength{\numwidth}{2\emlength}
\renewcommand{\numberline}[1]
  {\makebox[\numwidth][l]{#1}\hspace{0.5\emlength}}

\renewcommand{\l@part}[2]{\pagebreak[3]%
  \addvspace{3\baselineskip}%
  \noindent\colorbox{YellowRed}
  {\parbox[c][2cm][c]{\textwidth}
    {\Large\bfseries\sffamily #1}}%
  \par\nopagebreak
  \addvspace{0.5\baselineskip}}
\renewcommand{\l@chapter}[2]
 {\addvspace{2\baselineskip}\pagebreak[3]
  \noindent
  \colorbox{Yellow}{\makebox[\textwidth][l]{%
    \large\rule[-1em]{0mm}{2.5em}%
    \bfseries#1\quad#2}}
  \par\nopagebreak\addvspace{0.5\baselineskip}}
\renewcommand{\l@section}[2]
 {\addvspace{0.5\baselineskip}
  \noindent\hspace{2.5\emlength}%
  {\bfseries #1\quad#2}\par\nopagebreak[2]}
\renewcommand{\l@subsection}[2]
 {{\setlength{\numwidth}{2.5\emlength}
  \noindent\hspace{5\emlength}#1\quad#2\par}}
%
% ----------------- Gliederung -----------------
\def\@part[#1]#2
 {\ifthenelse{\value{secnumdepth}>\m@ne} 
    {\refstepcounter{part}
     \addcontentsline{toc}{part}{%
       \protect\numberline{\thepart}#1}}
    {\addcontentsline{toc}{part}{#1}}
  \vspace*{0.2\textheight}
  \noindent\colorbox{YellowRed}%
  {\parbox[c][3cm][c]{\textwidth}
    {\LARGE\bfseries\partname~\thepart\\[1ex]
     \Huge#2}
  }
  \ifthenelse{\boolean{multi}}
    {\vspace*{\baselineskip}\noindent von \@mauthor
     \addtocontents{toc}
      {\vspace{\baselineskip}\noindent\hspace{2.5em}%
      von \@mauthor
      \protect\nopagebreak%
      \vskip1\baselineskip\vskip1\baselineskip}}
    {}%
  \partmark{#1}%
  \@endpart}
\renewcommand{\@spart}[1]
  {\vspace*{0.2\textheight}
   \noindent\colorbox{YellowRed}%
   {\parbox[c][3cm][c]{\textwidth}{\Huge\bfseries#1}}
   \ifthenelse{\boolean{multi}}
     {\vspace*{1em}\noindent von \@mauthor}
     {}
   \@endpart}
\renewcommand{\@makechapterhead}[1]
  {\vspace*{3\baselineskip}
   \noindent\colorbox{Yellow}
   {\hbox to \textwidth{\Large%
      \rule[-\baselineskip]{0mm}{2.5\baselineskip}%
   \bfseries\thechapter\quad #1\hss}}
   \vskip1\baselineskip}
\renewcommand{\@makeschapterhead}[1]
  {\vspace*{3\baselineskip}
   \noindent\colorbox{Yellow}
   {\hbox to\textwidth{\Large%
      \rule[-\baselineskip]{0mm}{2.5\baselineskip}%
   \bfseries#1\hss}}\vskip1\baselineskip}
\renewcommand{\section}
  {\@startsection{section}{1}
   {\z@}{-3ex plus -1ex minus-.2ex}
   {2ex plus.2ex}{\reset@font\normalsize\bfseries}}
\renewcommand{\subsection}
  {\@startsection{subsection}{2}{\z@}
   {-2ex plus -1ex minus-.2ex}{2ex plus.2ex}
   {\reset@font\normalsize\itshape\bfseries}}
%
% ----------------- Seitenstile -----------------
\newcommand{\partmark}[1]{}
\newcommand{\ps@headline}{%
  \let\@mkboth\markboth
  \ifthenelse{\boolean{multi}}
    {\renewcommand{\partmark}[1]
      {\markboth{\@mauthor~--~##1}{}}
     \renewcommand{\chaptermark}[1]{}
    }
    {\renewcommand{\partmark}[1]{\markboth{}{}}
     \renewcommand{\chaptermark}[1]
       {\markboth{\@chapapp~\thechapter~--~##1}{}}
    }
  \renewcommand{\sectionmark}[1]
    {\markright{\thesection~--~##1}}
  \renewcommand{\subsectionmark}[1]{}
  \renewcommand{\@oddfoot}{}
  \renewcommand{\@evenfoot}{}
  \renewcommand{\@oddhead}
    {\normalfont{\small\sffamily\rightmark} \hrulefill%
     \colorbox{LightRed}%
       {\parbox{2cm}{\centering\thepage}}}
  \renewcommand{\@evenhead}
    {\colorbox{LightRed}%
      {\normalfont\parbox{2cm}{\centering\thepage}}
      \hrulefill{ \small\sffamily\leftmark}}
}
\pagestyle{headline}
%
% ----------------- Optionsspezifika -------------
\definecolor{Yellow}{rgb}{1,1,0}
\definecolor{YellowRed}{rgb}{1,0.6,0}
\definecolor{LightRed}{rgb}{1,0.8,0.5}
% rosa unterlegte Legenden
\renewcommand{\@makecaption}[2]
  {\colorbox{LightRed}{\parbox{\linewidth}
    {\textbf{#1 } #2}}}