From 2fa2b4eab8452182575b0c2bdececd15f71926aa Mon Sep 17 00:00:00 2001 From: Jan Benda Date: Fri, 20 Nov 2015 20:06:18 +0100 Subject: [PATCH] played with the colors --- header.tex | 42 ++++++++++++++++++++++++++---------------- 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/header.tex b/header.tex index b02fb3c..65f1e75 100644 --- a/header.tex +++ b/header.tex @@ -27,11 +27,21 @@ \usepackage{subcaption} \usepackage{graphicx} -%%%%%%%%%%%%% Colors %%%%%%%%%%%%%%%% +%%%%%%%%%%%%% colors %%%%%%%%%%%%%%%% \usepackage{xcolor} -\definecolor{lightblue}{rgb}{.7,.7,1.} -\definecolor{mygreen}{rgb}{0.2,0.7,0.2} -\definecolor{myred}{rgb}{1.,0,0} +\definecolor{myyellow}{HTML}{FFCC00} +\definecolor{myblue}{HTML}{0055DD} + +\colorlet{codeback}{myblue!10} +\colorlet{exerciseback}{myyellow!20} +\colorlet{importantback}{myblue!15} +\colorlet{importantline}{myblue!50} +\colorlet{infoback}{myyellow!20} +\colorlet{infoline}{myyellow!60} + +\definecolor{mygreen}{rgb}{0.2,0.7,0.2} % for 'TRUE' +\definecolor{myred}{rgb}{1.,0,0} % for 'FALSE' + \pagecolor{white} %%%%% figures %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -140,7 +150,7 @@ commentstyle=\itshape\color{red!60!black}, keywordstyle=\color{blue!50!black}, stringstyle=\color{green!50!black}, - backgroundcolor=\color{blue!10}, + backgroundcolor=\color{codeback}, breaklines=true, breakautoindent=true, % columns=flexible, % this kills the monospace font @@ -183,9 +193,9 @@ %%%%% code/matlab commands: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \usepackage{textcomp} -\newcommand{\code}[1]{\setlength{\fboxsep}{0.5ex}\colorbox{blue!10}{\texttt{#1}}} +\newcommand{\code}[1]{\setlength{\fboxsep}{0.5ex}\colorbox{codeback}{\texttt{#1}}} \newcommand{\matlab}{MATLAB$^{\copyright}$} -\newcommand{\matlabfun}[1]{(\tr{\matlab{}-function}{\matlab-Funktion} \setlength{\fboxsep}{0.5ex}\colorbox{blue!10}{\texttt{#1}})} +\newcommand{\matlabfun}[1]{(\tr{\matlab{}-function}{\matlab-Funktion} \setlength{\fboxsep}{0.5ex}\colorbox{codeback}{\texttt{#1}})} %%%%% exercises environment: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % usage: @@ -217,7 +227,7 @@ \setlength{\fboxsep}{2mm}% \newcommand{\saveenumi}{\theenumi}\renewcommand{\labelenumi}{(\alph{enumi})}% \stepcounter{exercise}% - \begin{mdframed}[linewidth=0pt,backgroundcolor=yellow!15]% + \begin{mdframed}[linewidth=0pt,backgroundcolor=exerciseback]% \noindent\textbf{\tr{Exercise}{\"Ubung} \thechapter.\theexercise:}\newline}% {\ifthenelse{\equal{\exercisesource}{}}{}% {\ifthenelse{\value{exercise}>\value{maxexercise}}{}% @@ -249,10 +259,10 @@ {\SetupFloatingEnvironment{iboxf}{placement=#1}% \begin{iboxf}% \captionsetup{singlelinecheck=off,labelfont={large,sf,it,bf},font={large,sf,it,bf}} - \begin{mdframed}[linecolor=yellow!40,linewidth=1ex,% - backgroundcolor=yellow!15,font={\sffamily},% + \begin{mdframed}[linecolor=infoline,linewidth=1ex,% + backgroundcolor=infoback,font={\sffamily},% frametitle={\caption{#2}},frametitleaboveskip=-1ex,% - frametitlebackgroundcolor=yellow!40]}% + frametitlebackgroundcolor=infoline]}% {\end{mdframed}% \end{iboxf}} @@ -276,12 +286,12 @@ \newenvironment{important}[1][]% {\captionsetup{singlelinecheck=off,labelformat={empty},labelfont={large,sf,it,bf},font={large,sf,it,bf}} \ifthenelse{\equal{#1}{}}% - {\begin{mdframed}[linecolor=blue!40,linewidth=1ex,% - backgroundcolor=blue!10,font={\sffamily}]}% - {\begin{mdframed}[linecolor=blue!40,linewidth=1ex,% - backgroundcolor=blue!10,font={\sffamily},% + {\begin{mdframed}[linecolor=importantline,linewidth=1ex,% + backgroundcolor=importantback,font={\sffamily}]}% + {\begin{mdframed}[linecolor=importantline,linewidth=1ex,% + backgroundcolor=importantback,font={\sffamily},% frametitle={\captionof{iboxf}{#1}},frametitleaboveskip=-1ex,% - frametitlebackgroundcolor=blue!40]}% + frametitlebackgroundcolor=importantline]}% }% {\end{mdframed}}