summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/celg.clo
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/latex-tipps-und-tricks/celg.clo')
-rw-r--r--Master/texmf-dist/doc/latex/latex-tipps-und-tricks/celg.clo154
1 files changed, 154 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/celg.clo b/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/celg.clo
new file mode 100644
index 00000000000..e1c08713349
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/latex-tipps-und-tricks/celg.clo
@@ -0,0 +1,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}}}