played with the colors

This commit is contained in:
Jan Benda 2015-11-20 20:06:18 +01:00
parent 048efac6f6
commit 2fa2b4eab8

View File

@ -27,11 +27,21 @@
\usepackage{subcaption} \usepackage{subcaption}
\usepackage{graphicx} \usepackage{graphicx}
%%%%%%%%%%%%% Colors %%%%%%%%%%%%%%%% %%%%%%%%%%%%% colors %%%%%%%%%%%%%%%%
\usepackage{xcolor} \usepackage{xcolor}
\definecolor{lightblue}{rgb}{.7,.7,1.} \definecolor{myyellow}{HTML}{FFCC00}
\definecolor{mygreen}{rgb}{0.2,0.7,0.2} \definecolor{myblue}{HTML}{0055DD}
\definecolor{myred}{rgb}{1.,0,0}
\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} \pagecolor{white}
%%%%% figures %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%% figures %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@ -140,7 +150,7 @@
commentstyle=\itshape\color{red!60!black}, commentstyle=\itshape\color{red!60!black},
keywordstyle=\color{blue!50!black}, keywordstyle=\color{blue!50!black},
stringstyle=\color{green!50!black}, stringstyle=\color{green!50!black},
backgroundcolor=\color{blue!10}, backgroundcolor=\color{codeback},
breaklines=true, breaklines=true,
breakautoindent=true, breakautoindent=true,
% columns=flexible, % this kills the monospace font % columns=flexible, % this kills the monospace font
@ -183,9 +193,9 @@
%%%%% code/matlab commands: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%% code/matlab commands: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{textcomp} \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{\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: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%% exercises environment: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% usage: % usage:
@ -217,7 +227,7 @@
\setlength{\fboxsep}{2mm}% \setlength{\fboxsep}{2mm}%
\newcommand{\saveenumi}{\theenumi}\renewcommand{\labelenumi}{(\alph{enumi})}% \newcommand{\saveenumi}{\theenumi}\renewcommand{\labelenumi}{(\alph{enumi})}%
\stepcounter{exercise}% \stepcounter{exercise}%
\begin{mdframed}[linewidth=0pt,backgroundcolor=yellow!15]% \begin{mdframed}[linewidth=0pt,backgroundcolor=exerciseback]%
\noindent\textbf{\tr{Exercise}{\"Ubung} \thechapter.\theexercise:}\newline}% \noindent\textbf{\tr{Exercise}{\"Ubung} \thechapter.\theexercise:}\newline}%
{\ifthenelse{\equal{\exercisesource}{}}{}% {\ifthenelse{\equal{\exercisesource}{}}{}%
{\ifthenelse{\value{exercise}>\value{maxexercise}}{}% {\ifthenelse{\value{exercise}>\value{maxexercise}}{}%
@ -249,10 +259,10 @@
{\SetupFloatingEnvironment{iboxf}{placement=#1}% {\SetupFloatingEnvironment{iboxf}{placement=#1}%
\begin{iboxf}% \begin{iboxf}%
\captionsetup{singlelinecheck=off,labelfont={large,sf,it,bf},font={large,sf,it,bf}} \captionsetup{singlelinecheck=off,labelfont={large,sf,it,bf},font={large,sf,it,bf}}
\begin{mdframed}[linecolor=yellow!40,linewidth=1ex,% \begin{mdframed}[linecolor=infoline,linewidth=1ex,%
backgroundcolor=yellow!15,font={\sffamily},% backgroundcolor=infoback,font={\sffamily},%
frametitle={\caption{#2}},frametitleaboveskip=-1ex,% frametitle={\caption{#2}},frametitleaboveskip=-1ex,%
frametitlebackgroundcolor=yellow!40]}% frametitlebackgroundcolor=infoline]}%
{\end{mdframed}% {\end{mdframed}%
\end{iboxf}} \end{iboxf}}
@ -276,12 +286,12 @@
\newenvironment{important}[1][]% \newenvironment{important}[1][]%
{\captionsetup{singlelinecheck=off,labelformat={empty},labelfont={large,sf,it,bf},font={large,sf,it,bf}} {\captionsetup{singlelinecheck=off,labelformat={empty},labelfont={large,sf,it,bf},font={large,sf,it,bf}}
\ifthenelse{\equal{#1}{}}% \ifthenelse{\equal{#1}{}}%
{\begin{mdframed}[linecolor=blue!40,linewidth=1ex,% {\begin{mdframed}[linecolor=importantline,linewidth=1ex,%
backgroundcolor=blue!10,font={\sffamily}]}% backgroundcolor=importantback,font={\sffamily}]}%
{\begin{mdframed}[linecolor=blue!40,linewidth=1ex,% {\begin{mdframed}[linecolor=importantline,linewidth=1ex,%
backgroundcolor=blue!10,font={\sffamily},% backgroundcolor=importantback,font={\sffamily},%
frametitle={\captionof{iboxf}{#1}},frametitleaboveskip=-1ex,% frametitle={\captionof{iboxf}{#1}},frametitleaboveskip=-1ex,%
frametitlebackgroundcolor=blue!40]}% frametitlebackgroundcolor=importantline]}%
}% }%
{\end{mdframed}} {\end{mdframed}}