From fb91fc5a85077a9ca2e38ad09dfa8e2b43733130 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Hilbig?= Date: Wed, 15 Jul 2015 15:40:00 +0200 Subject: [PATCH] =?UTF-8?q?Funktionalit=C3=A4t=20f=C3=BCr=20mehr=20Farben?= =?UTF-8?q?=20in=20sections...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ahilbig-common.sty | 21 ++++++++++++++++++--- ahilbig-script.sty | 2 +- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/ahilbig-common.sty b/ahilbig-common.sty index 6222bd9..d98a263 100644 --- a/ahilbig-common.sty +++ b/ahilbig-common.sty @@ -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 diff --git a/ahilbig-script.sty b/ahilbig-script.sty index 8c1fc31..c8feb8d 100644 --- a/ahilbig-script.sty +++ b/ahilbig-script.sty @@ -303,7 +303,7 @@ \nobreak\normalsize\normalfont \hfill \nobreak - \rlap{\hb@xt@\@pnumwidth{\hfil\normalfont \normalcolor #2}}% + \rlap{\hb@xt@\@pnumwidth{\hfil\normalfont \normalcolor #2}}% % \fi \par \endgroup