implement day starthour startminute … format for activities in cvhplan-7days
7 files changed, 206 insertions(+), 117 deletions(-)

M Makefile
M cvhplan-7days.sty
M cvhplan.sty
A => stundenplan-7days.png
M stundenplan.tex => stundenplan-7days.tex
A => stundenplan.png
M stundenplan.tex
M Makefile +3 -1
@@ 1,2 1,4 @@ 
-stundenplan.pdf : stundenplan.tex cvhplan-7days.sty
+all: stundenplan.pdf stundenplan-7days.pdf
+
+%.pdf : %.tex cvhplan-7days.sty cvhplan.sty
 	pdflatex "$<"

          
M cvhplan-7days.sty +58 -38
@@ 24,6 24,7 @@ 
 \usepackage[paper=a4paper,landscape]{geometry}
 \usepackage[colornames,dvipsnames]{xcolor}
 \usepackage{rotating}
+\usepackage{calc}
 
 \setlength{\pdfpagewidth}{29.7cm}
 \setlength{\pdfpageheight}{21.0cm}

          
@@ 43,14 44,11 @@ 
 \newcommand{\thu}{17.2}
 \newcommand{\fri}{22.6}
 \newcommand{\sat}{28.0}
-\newcommand{\sun}{28.0}
+\newcommand{\sun}{33.4}
 
-% \input{semester.tex}
-\newcommand{\planname}{ALVA --- Arne --- Stand: \today}
-
-\newcommand{\drawquarters}{%
+\newcommand{\drawquarters}[1]{%
   {
-    \put(38.7,19.85){\makebox(0,0)[tr]{\planname}}
+    \put(38.7,19.85){\makebox(0,0)[tr]{#1}}
     \color{red}
 %    \put(6,18.3){\makebox(0,0){\begin{rotate}{10}
 %                 \Huge\textbf{--- Entwurf ---}

          
@@ 69,13 67,17 @@ 
 %                   Bitte überprüfen Sie die Webseiten regelmäßig bzgl.\ Aktualisierungen.
 %                 \end{minipage}}
     \color[rgb]{0.8,0.8,0.8}
-    \multiput(1,-6.4)(0,0.4){61}{\line(1,0){37.8}}
+    % add lines after 24:00
+    % \multiput(1,-6.4)(0,0.4){61}{\line(1,0){37.8}}
+    \multiput(1,-1.6)(0,0.4){49}{\line(1,0){37.8}}
   }
 %  \put(1,-6.8){\line(1,0){37.8}}
 }
 
-\newcommand{\drawhours}{%
+\newcommand{\drawhours}{% create the hour-labels
+  \color[rgb]{0.4,0.4,0.4}
   \multiput(1,-6.4)(0,1.6){16}{\line(1,0){37.8}}
+  \color[rgb]{0,0,0}
   \multiput(1,-6.4)(5.4,0){8}{\line(0,1){24.0}}
   \put(0.9,17.6){\makebox(0,0)[r]{0:00}}
   \put(0.9,16.0){\makebox(0,0)[r]{2:00}}

          
@@ 90,9 92,9 @@ 
   \put(0.9,1.6){\makebox(0,0)[r]{20:00}}
   \put(0.9,0.0){\makebox(0,0)[r]{22:00}}
   \put(0.9,-1.6){\makebox(0,0)[r]{24:00}}
-  \put(0.9,-3.2){\makebox(0,0)[r]{02:00}}
-  \put(0.9,-4.8){\makebox(0,0)[r]{04:00}}
-  \put(0.9,-6.4){\makebox(0,0)[r]{06:00}}
+  %\put(0.9,-3.2){\makebox(0,0)[r]{02:00}}
+  %\put(0.9,-4.8){\makebox(0,0)[r]{04:00}}
+  %\put(0.9,-6.4){\makebox(0,0)[r]{06:00}}
   \put(3.70,17.7){\makebox(0,0)[b]{Montag}}
   \put(9.10,17.7){\makebox(0,0)[b]{Dienstag}}
   \put(14.50,17.7){\makebox(0,0)[b]{Mittwoch}}

          
@@ 105,27 107,34 @@ 
 \newlength{\colwidth}
 \setlength{\colwidth}{5.4\unitlength}
 \newlength{\hours}
-\setlength{\hours}{0.2\unitlength}
+\setlength{\hours}{0.8\unitlength}
 \newlength{\quarters}
-\setlength{\quarters}{0.05\unitlength}
+\setlength{\quarters}{0.2\unitlength}
 \newlength{\minutes}
 \setlength{\minutes}{0.013333\unitlength}
+% distance from zero, temporary variable to do calculations, mutated
+% along the way
+\newlength{\beginminutes}
 
 \newcommand{\halfcol}[1]{\makebox[0.49\colwidth]{\hss#1\hss}}
 
-\newcommand{\activity}[5]{%
+\newcommand{\activity}[6]{%
+  \setlength{\beginminutes}{#3\hours}
+  \addtolength{\beginminutes}{#4\minutes}
   \put(#2,17.6){% ab 0:00 Uhr
     \begin{minipage}[t]{\colwidth}%
-      \vspace*{#3\minutes}%
-      \def\testl{#5}%
+      \vspace*{\beginminutes}%
+      \def\testl{#6}%
       \def\testr{\Crecreation}%
       \ifx\testl\testr
-        \strut\vspace*{-18\minutes}%
+        \strut\vspace*{-44\minutes}%
       \else
-        \makebox(0,0)[tl]{\color{#5}\rule{\colwidth}{#4\minutes}}%
+      \makebox(0,0)[tl]{%
+        \color{#6!30!white}%much weaker colors to preserve ink ("transparency")
+        \rule{\colwidth}{#5\minutes}}%
       \fi
       \begin{center}
-        \scriptsize\setlength{\baselineskip}{15\minutes}\vspace*{-18\minutes}\par
+        \scriptsize\setlength{\baselineskip}{15\minutes}\vspace*{-26\minutes}\par
         #1
       \end{center}
     \end{minipage}

          
@@ 168,39 177,50 @@ 
 
 % bab:
 \newcommand{\Cwork}{YellowOrange}
+\newcommand{\Cschool}{LightOrange}
 \newcommand{\Cchore}{Yellow}
 \newcommand{\Cfamily}{SkyBlue}
 \newcommand{\Cfood}{LightBlue}
 \newcommand{\Chobby}{LightPeriwinkle}
+\newcommand{\Crelaxing}{SpringGreen}
 
 \newcommand{\Lwork}{\colorbox{\Cwork}{Arbeit\strut}}
+\newcommand{\Lschool}{\colorbox{\Cschool}{Schule\strut}}
 \newcommand{\Lchore}{\colorbox{\Cchore}{Hausarbeit\strut}}
 \newcommand{\Lfamily}{\colorbox{\Cfamily}{Familienspaß\strut}}
 \newcommand{\Lfood}{\colorbox{\Cfood}{Essen (kochen/essen)\strut}}
 \newcommand{\Lhobby}{\colorbox{\Chobby}{Hobby\strut}}
+\newcommand{\Lrelaxing}{\colorbox{\Crelaxing}{Ausruhen\strut}}
 
 
 \newcommand{\legend}[1]{\put(38.7,19){\makebox(0,0)[r]{\footnotesize#1}}}
 
-\def\lecture#1#2    #3 #4{\activity{#4}{#1}{#2}{#3}{\Clecture}}
-\def\exercises#1#2  #3 #4{\activity{#4}{#1}{#2}{#3}{\Cexercises}}
-\def\block#1#2      #3 #4{\activity{#4}{#1}{#2}{#3}{\Cblock}}
-\def\laboratory#1#2 #3 #4{\activity{#4}{#1}{#2}{#3}{\Claboratory}}
-\def\tutorial#1#2   #3 #4{\activity{#4}{#1}{#2}{#3}{\Ctutorial}}
-\def\expertise#1#2  #3 #4{\activity{#4}{#1}{#2}{#3}{\Cexpertise}}
-\def\elective#1#2   #3 #4{\activity{#4}{#1}{#2}{#3}{\Celective}}
-\def\optional#1#2   #3 #4{\activity{#4}{#1}{#2}{#3}{\Coptional}}
-\def\seminar#1#2    #3 #4{\activity{#4}{#1}{#2}{#3}{\Cseminar}}
-\def\other#1#2      #3 #4{\activity{#4}{#1}{#2}{#3}{\Cother}}
-\def\recreation#1#2 #3 #4{\activity{#4}{#1}{#2}{#3}{\Crecreation}}
-%\def\recreation#1#2 #3 #4{}
-\def\auxlecture#1#2 #3 #4{\activity{#4}{#1}{#2}{#3}{\Cauxlecture}}
-\def\personal#1#2   #3 #4{\activity{#4}{#1}{#2}{#3}{\Cpersonal}}
+\def\lecture#1#2 #3    #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Clecture}}
+\def\exercises#1#2 #3  #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Cexercises}}
+\def\block#1#2 #3      #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Cblock}}
+\def\laboratory#1#2 #3 #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Claboratory}}
+\def\tutorial#1#2 #3   #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Ctutorial}}
+\def\expertise#1#2 #3  #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Cexpertise}}
+\def\elective#1#2 #3   #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Celective}}
+\def\optional#1#2 #3   #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Coptional}}
+\def\seminar#1#2 #3    #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Cseminar}}
+\def\other#1#2 #3      #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Cother}}
+\def\recreation#1#2 #3 #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Crecreation}}
+\def\auxlecture#1#2 #3 #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Cauxlecture}}
+\def\personal#1#2 #3   #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Cpersonal}}
 
 % bab:
-\def\work#1#2   #3 #4{\activity{#4}{#1}{#2}{#3}{\Cwork}}
-\def\chore#1#2   #3 #4{\activity{#4}{#1}{#2}{#3}{\Cchore}}
-\def\family#1#2   #3 #4{\activity{#4}{#1}{#2}{#3}{\Cfamily}}
-\def\food#1#2   #3 #4{\activity{#4}{#1}{#2}{#3}{\Cfood}}
+\def\work#1#2 #3   #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Cwork}}
+\def\school#1#2 #3   #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Cschool}}
+\def\chore#1#2 #3   #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Cchore}}
+\def\family#1#2 #3   #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Cfamily}}
+\def\food#1#2 #3   #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Cfood}}
+\def\hobby#1#2 #3   #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Chobby}}
+\def\relaxing#1#2 #3   #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Crelaxing}}
+\def\note#1#2 #3   #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Crecreation}} % recreation is white -> empty
 
-\newenvironment{plan}[1]{\section*{#1\strut}\begin{picture}(38.8,15.2)(0,3)\drawquarters}{\drawhours\end{picture}\clearpage}
+\newenvironment{plan}[2]{%beginblock
+  \section*{#1\strut}\begin{picture}(38.8,15.2)(0,3)\drawquarters #2%
+}{%endblock
+  \drawhours\end{picture}\clearpage%
+}

          
M cvhplan.sty +92 -39
@@ 41,13 41,15 @@ 
 \newcommand{\wed}{11.8}
 \newcommand{\thu}{17.2}
 \newcommand{\fri}{22.6}
+\newcommand{\sat}{28.0}
+\newcommand{\sun}{33.4}
 
 % \input{semester.tex}
-\newcommand{\planname}{ALVA --- Stand: \date}
+% \newcommand{\planname}{ALVA --- Stand: \date}
 
-\newcommand{\drawquarters}{%
+\newcommand{\drawquarters}[1]{%
   {
-    \put(28,19.85){\makebox(0,0)[tr]{\planname}}
+    \put(28,19.85){\makebox(0,0)[tr]{#1}}
     \color{red}
 %    \put(6,18.3){\makebox(0,0){\begin{rotate}{10}
 %                 \Huge\textbf{--- Entwurf ---}

          
@@ 66,26 68,31 @@ 
 %                   Bitte überprüfen Sie die Webseiten regelmäßig bzgl.\ Aktualisierungen.
 %                 \end{minipage}}
     \color[rgb]{0.8,0.8,0.8}
-    \multiput(1,0)(0,0.4){45}{\line(1,0){27}}
+    % lines for all hours
+    % \multiput(1,0)(0,0.4){45}{\line(1,0){27}}
+    % lines only 9-5
+    \multiput(1,3.2)(0,0.4){33}{\line(1,0){27}}
   }
   \put(1,-0.4){\line(1,0){27}}
 }
 
-\newcommand{\drawhours}{%
+\newcommand{\drawhours}{% create the hour-labels
+  \color[rgb]{0.4,0.4,0.4}
   \multiput(1,0)(0,1.6){12}{\line(1,0){27}}
-  \multiput(1,-0.4)(5.4,0){6}{\line(0,1){18.0}}
-  \put(0.9,17.6){\makebox(0,0)[r]{8:00}}
-  \put(0.9,16.0){\makebox(0,0)[r]{9:00}}
-  \put(0.9,14.4){\makebox(0,0)[r]{10:00}}
-  \put(0.9,12.8){\makebox(0,0)[r]{11:00}}
-  \put(0.9,11.2){\makebox(0,0)[r]{12:00}}
-  \put(0.9,9.6){\makebox(0,0)[r]{13:00}}
-  \put(0.9,8.0){\makebox(0,0)[r]{14:00}}
-  \put(0.9,6.4){\makebox(0,0)[r]{15:00}}
-  \put(0.9,4.8){\makebox(0,0)[r]{16:00}}
-  \put(0.9,3.2){\makebox(0,0)[r]{17:00}}
-  \put(0.9,1.6){\makebox(0,0)[r]{18:00}}
-  \put(0.9,0.0){\makebox(0,0)[r]{19:00}}
+  \color[rgb]{0,0,0}
+  \multiput(1,0.0)(5.4,0){6}{\line(0,1){17.6}}
+  % \put(0.9,17.6){\makebox(0,0)[r]{8:00}}
+  \put(0.9,16.0){\makebox(0,0)[r]{8:00}}
+  \put(0.9,14.4){\makebox(0,0)[r]{9:00}}
+  \put(0.9,12.8){\makebox(0,0)[r]{10:00}}
+  \put(0.9,11.2){\makebox(0,0)[r]{11:00}}
+  \put(0.9,9.6){\makebox(0,0)[r]{12:00}}
+  \put(0.9,8.0){\makebox(0,0)[r]{13:00}}
+  \put(0.9,6.4){\makebox(0,0)[r]{14:00}}
+  \put(0.9,4.8){\makebox(0,0)[r]{15:00}}
+  \put(0.9,3.2){\makebox(0,0)[r]{16:00}}
+  % \put(0.9,1.6){\makebox(0,0)[r]{17:00}}
+  % \put(0.9,0.0){\makebox(0,0)[r]{19:00}}
   \put(3.70,17.7){\makebox(0,0)[b]{Montag}}
   \put(9.10,17.7){\makebox(0,0)[b]{Dienstag}}
   \put(14.50,17.7){\makebox(0,0)[b]{Mittwoch}}

          
@@ 96,24 103,36 @@ 
 \newlength{\colwidth}
 \setlength{\colwidth}{5.4\unitlength}
 \newlength{\hours}
-\setlength{\hours}{0.4\unitlength}
+\setlength{\hours}{1.6\unitlength}
 \newlength{\quarters}
-\setlength{\quarters}{0.1\unitlength}
+\setlength{\quarters}{0.4\unitlength}
 \newlength{\minutes}
 \setlength{\minutes}{0.0266666\unitlength}
+% distance from zero, temporary variable to do calculations, mutated
+% along the way
+\newlength{\beginminutes}
 
 \newcommand{\halfcol}[1]{\makebox[0.49\colwidth]{\hss#1\hss}}
 
-\newcommand{\activity}[5]{%
-  \put(#2,17.6){% ab 8:00 Uhr: 17.6; ab 7:00 Uhr: 19.2
+
+
+\newcommand{\activity}[6]{%
+  \setlength{\beginminutes}{#3\hours}
+  \addtolength{\beginminutes}{-8\hours}
+  \addtolength{\beginminutes}{#4\minutes}
+  \ifnum#3>6%
+  \ifnum#3<18%
+  \put(#2,16.0){% ab 8:00 Uhr: 17.6; ab 7:00 Uhr: 19.2
     \begin{minipage}[t]{\colwidth}%
-      \vspace*{#3\minutes}%
-      \def\testl{#5}%
+      \vspace*{\beginminutes}%
+      \def\testl{#6}%
       \def\testr{\Crecreation}%
       \ifx\testl\testr
         \strut\vspace*{-11\minutes}%
       \else
-        \makebox(0,0)[tl]{\color{#5}\rule{\colwidth}{#4\minutes}}%
+      \makebox(0,0)[tl]{%
+        \color{#6!30!white}%much weaker colors to preserve ink ("transparency")
+        \rule{\colwidth}{#5\minutes}}%
       \fi
       \begin{center}
         \setlength{\baselineskip}{15\minutes}\vspace*{-13.5\minutes}\par

          
@@ 121,6 140,8 @@ 
       \end{center}
     \end{minipage}
   }
+  \fi
+  \fi
 }
 
 \definecolor{LightPeriwinkle}{rgb}{0.65,0.6,0.85}

          
@@ 157,20 178,52 @@ 
 \newcommand{\Lauxlecture}{\colorbox{\Cauxlecture}{Ausweichtermin\strut}}
 \newcommand{\Lpersonal}{\colorbox{\Cpersonal}{privat\strut}}
 
+% bab:
+\newcommand{\Cwork}{YellowOrange}
+\newcommand{\Cschool}{LightOrange}
+\newcommand{\Cchore}{Yellow}
+\newcommand{\Cfamily}{SkyBlue}
+\newcommand{\Cfood}{LightBlue}
+\newcommand{\Chobby}{LightPeriwinkle}
+\newcommand{\Crelaxing}{SpringGreen}
+
+\newcommand{\Lwork}{\colorbox{\Cwork}{Arbeit\strut}}
+\newcommand{\Lschool}{\colorbox{\Cschool}{Schule\strut}}
+\newcommand{\Lchore}{\colorbox{\Cchore}{Hausarbeit\strut}}
+\newcommand{\Lfamily}{\colorbox{\Cfamily}{Familienspaß\strut}}
+\newcommand{\Lfood}{\colorbox{\Cfood}{Essen (kochen/essen)\strut}}
+\newcommand{\Lhobby}{\colorbox{\Chobby}{Hobby\strut}}
+\newcommand{\Lrelaxing}{\colorbox{\Crelaxing}{Ausruhen\strut}}
+
 \newcommand{\legend}[1]{\put(28,19){\makebox(0,0)[r]{#1}}}
 
-\def\lecture#1#2    #3 #4{\activity{#4}{#1}{#2}{#3}{\Clecture}}
-\def\exercises#1#2  #3 #4{\activity{#4}{#1}{#2}{#3}{\Cexercises}}
-\def\block#1#2      #3 #4{\activity{#4}{#1}{#2}{#3}{\Cblock}}
-\def\laboratory#1#2 #3 #4{\activity{#4}{#1}{#2}{#3}{\Claboratory}}
-\def\tutorial#1#2   #3 #4{\activity{#4}{#1}{#2}{#3}{\Ctutorial}}
-\def\expertise#1#2  #3 #4{\activity{#4}{#1}{#2}{#3}{\Cexpertise}}
-\def\elective#1#2   #3 #4{\activity{#4}{#1}{#2}{#3}{\Celective}}
-\def\optional#1#2   #3 #4{\activity{#4}{#1}{#2}{#3}{\Coptional}}
-\def\seminar#1#2    #3 #4{\activity{#4}{#1}{#2}{#3}{\Cseminar}}
-\def\other#1#2      #3 #4{\activity{#4}{#1}{#2}{#3}{\Cother}}
-\def\recreation#1#2 #3 #4{\activity{#4}{#1}{#2}{#3}{\Crecreation}}
-\def\auxlecture#1#2 #3 #4{\activity{#4}{#1}{#2}{#3}{\Cauxlecture}}
-\def\personal#1#2   #3 #4{\activity{#4}{#1}{#2}{#3}{\Cpersonal}}
+\def\lecture#1#2 #3    #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Clecture}}
+\def\exercises#1#2 #3  #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Cexercises}}
+\def\block#1#2 #3      #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Cblock}}
+\def\laboratory#1#2 #3 #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Claboratory}}
+\def\tutorial#1#2 #3   #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Ctutorial}}
+\def\expertise#1#2 #3  #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Cexpertise}}
+\def\elective#1#2 #3   #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Celective}}
+\def\optional#1#2 #3   #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Coptional}}
+\def\seminar#1#2 #3    #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Cseminar}}
+\def\other#1#2 #3      #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Cother}}
+\def\recreation#1#2 #3 #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Crecreation}}
+\def\auxlecture#1#2 #3 #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Cauxlecture}}
+\def\personal#1#2 #3   #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Cpersonal}}
 
-\newenvironment{plan}[1]{\section*{#1\strut}\begin{picture}(28,18.5)\drawquarters}{\drawhours\end{picture}\clearpage}
+% bab:
+\def\work#1#2 #3   #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Cwork}}
+\def\school#1#2 #3   #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Cschool}}
+\def\chore#1#2 #3   #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Cchore}}
+\def\family#1#2 #3   #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Cfamily}}
+\def\food#1#2 #3   #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Cfood}}
+\def\hobby#1#2 #3   #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Chobby}}
+\def\relaxing#1#2 #3   #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Crelaxing}}
+\def\note#1#2 #3   #4 #5{\activity{#5}{#1}{#2}{#3}{#4}{\Crecreation}} % recreation is white -> empty
+
+
+\newenvironment{plan}[2]{%beginblock
+  \section*{#1\strut}\begin{picture}(38.8,15.2)(0,3)\drawquarters #2%
+}{%endblock
+  \drawhours\end{picture}\clearpage%
+}
  No newline at end of file

          
A => stundenplan-7days.png +0 -0

        
M stundenplan.tex => stundenplan-7days.tex +26 -19
@@ 17,42 17,49 @@ 
 
 \documentclass{article}
 
+% 24/7
 \usepackage{cvhplan-7days}
+% 9/5 (8-17)
+% \usepackage{cvhplan}
 
 \begin{document}
 
-
-\begin{plan}{}
+% TODO: I do not know why this needs an empty pair of braces between the two arguments
+\begin{plan}{Wochenplan}{}{Wochenplan --- Stand: \today}
 % days: \mon \tue \wed \thu \fri \sat \sun
 % entry-types:
 % \work		Arbeit			orange-braun
+% \school   Schulstunde/-Termin hellorange
 % \chore	Hausarbeit		gelb
 % \family	Familienspaß		blau
 % \food		Essen (kochen / essen)	hellblau
-% \hobby	Hobby			
+% \hobby	Hobby			immergrün
+% \relaxing Entspannung    Frühlingsgrün
+% \note     Notiz          Kein Hintergrund
+% 
 % 
 % \lecture 	Vorlesung 		blau
-% \exercises 	Übung 			grün
-% \block 	Blockveranstaltung 	dunkelgrün
-% \laboratory 	Praktikum	 	rot
-% \tutorial 	Tutorium 		violett
-% \expertise 	Vertiefungs-Pflichtfach orange-braun
+% \exercises 	Übung 			immergrün
+% \block 	Blockveranstaltung 	gelbgrün
+% \laboratory 	Praktikum	 	lachsrot
+% \tutorial 	Tutorium 		immergrün
+% \expertise 	Vertiefungs-Pflichtfach gelb-braun
+% \elective 	??? gelb-braun
 % \optional 	Wahlfach 		gelb
 % \seminar 	Seminar 		hellorange
-% \other 	Sonstiges 		grau
-% \recreation  	Pause	 		ohne Hintergrund
+% \other 	Sonstiges 		grau (kein Hintergrund)
+% \recreation  	Pause	 		weiß (kein Hintergrund)
 % \personal   	privater Termin 	hellblau
 
-% format: \entrytype \day \startminutes-since-0:00 \durationminutes {content}
+% format: \entrytype \day \starthour \startminutes \durationminutes {content}
 % contentformat: \\ = linebreak \strut = empty line
 
-  \chore \thu 480 60 {Stundenplan erstellen}
-  \work \thu 540 30 {}
-  \food \thu 570 30 {Frühstück}
-  \work \thu 600 120 {}
-  \food \thu 720 60 {Mittagessen}
-  \work \thu 780 300 {}
-  \legend{\Lwork, \Lchore, \Lfamily, \Lfood, \Lhobby}
-  \end{plan}
+% 7h 30m are 450m
+% count week time with guile -c '(display (/ (+ '"$(rg work stundenplan.tex | grep -v guile | cut -d " " -f 8 | xargs)"') 60.))(newline)'
+   \work \tue 8 30 210 {} % Keine Notiz: Nur hervorheben
+   \food \tue 13 30 45 {Mittagessen} % Eintrag mit Hintergrund
+   \legend{\Lschool, \Lchore, \Lfamily, \Lfood, \Lrelaxing, \Lhobby}
+\end{plan}
 
 \end{document}
+

          
A => stundenplan.png +0 -0

        
M stundenplan.tex +27 -20
@@ 17,42 17,49 @@ 
 
 \documentclass{article}
 
-\usepackage{cvhplan-7days}
+% 24/7
+% \usepackage{cvhplan-7days}
+% 9/5 (8-17)
+\usepackage{cvhplan}
 
 \begin{document}
 
-
-\begin{plan}{}
+% TODO: I do not know why this needs an empty pair of braces between the two arguments
+\begin{plan}{Wochenplan}{}{Stundenplan --- Stand: \today}
 % days: \mon \tue \wed \thu \fri \sat \sun
 % entry-types:
 % \work		Arbeit			orange-braun
+% \school   Schulstunde/-Termin hellorange
 % \chore	Hausarbeit		gelb
 % \family	Familienspaß		blau
 % \food		Essen (kochen / essen)	hellblau
-% \hobby	Hobby			
+% \hobby	Hobby			immergrün
+% \relaxing Entspannung    Frühlingsgrün
+% \note     Notiz          Kein Hintergrund
+% 
 % 
 % \lecture 	Vorlesung 		blau
-% \exercises 	Übung 			grün
-% \block 	Blockveranstaltung 	dunkelgrün
-% \laboratory 	Praktikum	 	rot
-% \tutorial 	Tutorium 		violett
-% \expertise 	Vertiefungs-Pflichtfach orange-braun
+% \exercises 	Übung 			immergrün
+% \block 	Blockveranstaltung 	gelbgrün
+% \laboratory 	Praktikum	 	lachsrot
+% \tutorial 	Tutorium 		immergrün
+% \expertise 	Vertiefungs-Pflichtfach gelb-braun
+% \elective 	??? gelb-braun
 % \optional 	Wahlfach 		gelb
 % \seminar 	Seminar 		hellorange
-% \other 	Sonstiges 		grau
-% \recreation  	Pause	 		ohne Hintergrund
+% \other 	Sonstiges 		grau (kein Hintergrund)
+% \recreation  	Pause	 		weiß (kein Hintergrund)
 % \personal   	privater Termin 	hellblau
 
-% format: \entrytype \day \startminutes-since-0:00 \durationminutes {content}
+% format: \entrytype \day \starthour \startminutes \durationminutes {content}
 % contentformat: \\ = linebreak \strut = empty line
 
-  \chore \thu 480 60 {Stundenplan erstellen}
-  \work \thu 540 30 {}
-  \food \thu 570 30 {Frühstück}
-  \work \thu 600 120 {}
-  \food \thu 720 60 {Mittagessen}
-  \work \thu 780 300 {}
-  \legend{\Lwork, \Lchore, \Lfamily, \Lfood, \Lhobby}
-  \end{plan}
+% 7h 30m are 450m
+% count week time with guile -c '(display (/ (+ '"$(rg work stundenplan.tex | grep -v guile | cut -d " " -f 8 | xargs)"') 60.))(newline)'
+   \work \tue 8 30 210 {} % Keine Notiz: Nur hervorheben
+   \food \tue 13 30 45 {Mittagessen} % Eintrag mit Hintergrund
+   \legend{\Lwork, \Lchore, \Lfamily, \Lfood, \Lhobby}
+\end{plan}
 
 \end{document}
+