diff --git a/colors.tex b/colors.tex new file mode 100644 index 0000000..b57f2da --- /dev/null +++ b/colors.tex @@ -0,0 +1,19 @@ + +\ifdefined\colormodel\relax\else% + \def\colormodel{rgb}% +\fi +\selectcolormodel{\colormodel} + +% \definecolor{ese_bg_color}{rgb}{0.0, 0.20, 0.376} % the definitive color -- #003360 (2015?) +% \definecolor{ese_bg_color}{rgb}{0.0, 0.263, 0.486} % the definitive color -- #00437C (2016?) +% \definecolor{ese_bg_color}{rgb}{0.051, 0.373, 0.596} % the definitive color -- #0D5F98 (2017) +% \definecolor{ese_bg_color}{rgb}{0.796, 0.376, 0.251} % the definitive color -- #CB6040 (2018) +% \definecolor{ese_bg_color}{rgb}{0.0, 0.47, 0.3} % wip-ish color -- #01794C (2019) +%\definecolor{ese_bg_color}{RGB}{5,109,133} % final_really_final -- #056d85 (2020) + +\definecolor{ese_bg_color}{RGB/cmyk}{155,30,70/0,0.9,0.6,0.1} % complement -- #9B1E46 (2021) +\definecolor{ese_fg_color}{rgb/cmyk}{1,1,1/0,0,0,0} + +\definecolor{fancypageref_color}{RGB/cmyk}{155,30,70/0,0.9,0.6,0.1} % + +\definecolor{ifsrgray}{rgb/cmyk}{0.6,0.6,0.6/0,0,0,0.4} % 153, 153, 153 diff --git a/preamble.tex b/preamble.tex index 446c3f0..cb48bd3 100644 --- a/preamble.tex +++ b/preamble.tex @@ -2,6 +2,7 @@ \usepackage[english, ngerman]{babel} +\usepackage{xcolor} \usepackage{graphicx} \usepackage{fancyhdr} \usepackage{eso-pic} @@ -30,19 +31,7 @@ \PassOptionsToPackage{hyphens}{url} \usepackage[colorlinks=false, pdfborder={0 0 0}]{hyperref} - -% \definecolor{ese_bg_color}{rgb}{0.0, 0.20, 0.376} % the definitive color -- #003360 (2015?) -% \definecolor{ese_bg_color}{rgb}{0.0, 0.263, 0.486} % the definitive color -- #00437C (2016?) -% \definecolor{ese_bg_color}{rgb}{0.051, 0.373, 0.596} % the definitive color -- #0D5F98 (2017) -% \definecolor{ese_bg_color}{rgb}{0.796, 0.376, 0.251} % the definitive color -- #CB6040 (2018) -% \definecolor{ese_bg_color}{rgb}{0.0, 0.47, 0.3} % wip-ish color -- #01794C (2019) -% \definecolor{ese_bg_color}{RGB}{5,109,133} % final_really_final -- #056d85 (2020) -\definecolor{ese_bg_color}{RGB}{155,30,70} % complement -- #9B1E46 (2021) -\definecolor{ese_fg_color}{rgb}{1, 1, 1} - -\definecolor{fancypageref_color}{RGB}{155,30,70} % - -\definecolor{ifsrgray}{rgb}{0.6, 0.6, 0.6} % 153, 153, 153 +\input{colors.tex} % is toggled twice for moduluebersicht.tex \changemenucolor{gray}{bg}{named}{ese_fg_color} %background of the menukeys diff --git a/timetable/timetable.sty b/timetable/timetable.sty index 842acbb..1115a82 100755 --- a/timetable/timetable.sty +++ b/timetable/timetable.sty @@ -22,7 +22,7 @@ \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{timetable} -\RequirePackage{ifthen, calc, color} +\RequirePackage{ifthen, calc, xcolor} % swtich case helper \newcommand\addcase[3]{\expandafter\def\csname\string#1@case@#2\endcsname{#3}} @@ -35,11 +35,11 @@ % Preset the colors -\definecolor{ttframecol1}{rgb}{0.95,0.95,0.95} -\definecolor{ttframecol2}{rgb}{0.9,0.9,0.9} -\definecolor{ttfontcolor}{rgb}{0.25,0.25,0.25} -\definecolor{ttlinecol1}{rgb}{0.0,0.0,0.0} -\definecolor{ttlinecol2}{rgb}{0.5,0.0,0.0} +\definecolor{ttframecol1}{rgb/cmyk}{0.95,0.95,0.95/0,0,0,0.05} +\definecolor{ttframecol2}{rgb/cmyk}{0.9,0.9,0.9/0,0,0,0.1} +\definecolor{ttfontcolor}{rgb/cmyk}{0.25,0.25,0.25/0,0,0,0.75} +\definecolor{ttlinecol1}{rgb/cmyk}{0.0,0.0,0.0/0,0,0,1} +\definecolor{ttlinecol2}{rgb/cmyk}{0.5,0.0,0.0/0,1,1,0.5} % Simple for loop construct as proposed by N. Setzer \newcommand{\@ttforloop}[5][1] @@ -560,6 +560,18 @@ \legend {\value{@daymarks}} 1 {#1} } +\newcommand{\defineeventcolors}[5] + { + \definecolor{@timetable#1block}{#2}{#3} + \definecolor{@timetable#1text} {#4}{#5} + } + +\newcommand{\leteventcolors}[3] + { + \colorlet{@timetable#1block}{#2} + \colorlet{@timetable#1text} {#3} + } + \newcommand{\defineevent}[7] { \definecolor{@timetable#1block}{rgb}{#2, #3, #4} diff --git a/timetable/zeitplan.pdf b/timetable/zeitplan.pdf old mode 100755 new mode 100644 diff --git a/timetable/zeitplan.tex b/timetable/zeitplan.tex index 8c81b5f..916b6be 100755 --- a/timetable/zeitplan.tex +++ b/timetable/zeitplan.tex @@ -2,6 +2,7 @@ \usepackage[default]{opensans} \usepackage[margin=0.55cm,landscape]{geometry} % \usepackage[height=25cm]{geometry} +\usepackage{xcolor} \usepackage{timetable} \usepackage{transparent} \usepackage{amssymb} @@ -9,6 +10,8 @@ \usepackage{pifont} \newcommand{\wontfix}{\rlap{$\square$}{\large\hspace{1pt}\xmark}} +\input{../colors.tex} + \begin{document} \thispagestyle{empty} % \begin{landscape} @@ -33,6 +36,9 @@ \defineevent{other}{0.0}{0.47}{0.3}{1.0}{1.0}{1.0}% dunkelgrün \defineevent{extern}{0.77}{0.56}{0.05}{1.0}{1.0}{1.0} \defineevent{stream}{0.09}{0.45}{0.56}{1.0}{1.0}{1.0}% petrol +\leteventcolors{ese}% + {ese_bg_color} + {ese_fg_color} % Start the timetable \begin{center}