Funktionalität für mehr Farben in sections...

This commit is contained in:
André Hilbig 2015-07-15 15:40:00 +02:00
parent 8768f27008
commit fb91fc5a85
2 changed files with 19 additions and 4 deletions

View File

@ -31,15 +31,21 @@
\newif\ifcd
\newif\ifschule
\newif\ifpalatino
\newif\ifcolorsec
\DeclareOption{draft}{\draftversiontrue}
\DeclareOption{blackandwhite}{\bwtrue}
\DeclareOption{cd}{\cdtrue}
\DeclareOption{schule}{\schuletrue}
\DeclareOption{palatino}{\palatinotrue}
\DeclareOption{colorsec}{\colorsectrue}
\ProcessOptions
\ifbw
\colorsecfalse
\fi
\RequirePackage[german=guillemets]{csquotes}
% Automatische Skalierung zu grosser (breiter) Grafiken
@ -166,7 +172,17 @@
% Basic colors
\definecolor{oceangreen}{cmyk}{1,0,.2,.78}
\colorlet{structure.fg}{orange!80!red}
\ifcolorsec
\colorlet{sec.fg}{OliveGreen}
\colorlet{subsubsec.fg}{oceangreen}
\else
\colorlet{sec.fg}{black}
\colorlet{subsubsec.fg}{black}
\fi
\definecolor{black50}{rgb}{.50,.50,.51}
\definecolor{black90}{rgb}{.90,.90,.91}
@ -183,7 +199,6 @@
% \RequirePackage[mixedgreek,textlf]{Myriad}
\RequirePackage{microtype}
\let\sfdefault\rmdefault
\definecolor{oceangreen}{cmyk}{1,0,.2,.78}
\colorlet{structure.fg}{oceangreen!75!white}
\colorlet{head.bg}{oceangreen}
\def\headingfont{\sffamily}
@ -382,7 +397,7 @@
\@startsection {section}{1}{\z@}%
{-3.5ex \@plus -1ex \@minus -.2ex}%
{1.5ex \@plus.2ex}%
{\normalfont\Large\bfseries}}
{\normalfont\color{sec.fg}\Large\bfseries}}
\renewcommand\subsection{\avoidwiddow{3cm}{300}\@startsection{subsection}{2}{\z@}%
{-3.25ex\@plus -1ex \@minus -.2ex}%
{.5ex \@plus .2ex}%
@ -390,7 +405,7 @@
\renewcommand\subsubsection{\avoidwiddow{3cm}{250}\@startsection{subsubsection}{3}{\z@}%
{-3.25ex\@plus -1ex \@minus -.2ex}%
{1.5ex \@plus .2ex}%
{\normalfont\normalsize\bfseries}}
{\normalfont\color{subsubsec.fg}\normalsize\bfseries}}
% Theorems and such