@@ 1,5 1,6 @@
% cvhplan.sty - LaTeX Settings for Time Schedules
-% Copyright (C) 2012, 2013, 2017, 2018 Peter Gerwinski
+% Copyright (C) 2012, 2013, 2017, 2018 Peter Gerwinski, see https://www.cvh-server.de/~pgerwinski/stundenplan/2018ws/tex/
+% Copyright (C) 2021 Arne Babenhauserheide
%
% This document is free software: you can redistribute it and/or
% modify it under the terms of the GNU General Public License
@@ 44,8 45,8 @@
\newcommand{\sat}{28.0}
\newcommand{\sun}{28.0}
-\input{semester.tex}
-\newcommand{\planname}{Hochschule Bochum -- Campus Velbert/Heiligenhaus -- \semester\ -- Stand: \lastchange}
+% \input{semester.tex}
+\newcommand{\planname}{ALVA --- Arne --- Stand: \today}
\newcommand{\drawquarters}{%
{
@@ 76,22 77,22 @@
\newcommand{\drawhours}{%
\multiput(1,-6.4)(0,1.6){16}{\line(1,0){37.8}}
\multiput(1,-6.4)(5.4,0){8}{\line(0,1){24.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,17.6){\makebox(0,0)[r]{0:00}}
+ \put(0.9,16.0){\makebox(0,0)[r]{2:00}}
+ \put(0.9,14.4){\makebox(0,0)[r]{4:00}}
+ \put(0.9,12.8){\makebox(0,0)[r]{6:00}}
+ \put(0.9,11.2){\makebox(0,0)[r]{8:00}}
+ \put(0.9,9.6){\makebox(0,0)[r]{10:00}}
+ \put(0.9,8.0){\makebox(0,0)[r]{12:00}}
+ \put(0.9,6.4){\makebox(0,0)[r]{14: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}}
- \put(0.9,-1.6){\makebox(0,0)[r]{20:00}}
- \put(0.9,-3.2){\makebox(0,0)[r]{21:00}}
- \put(0.9,-4.8){\makebox(0,0)[r]{22:00}}
- \put(0.9,-6.4){\makebox(0,0)[r]{23:00}}
+ \put(0.9,3.2){\makebox(0,0)[r]{18:00}}
+ \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(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}}
@@ 104,16 105,16 @@
\newlength{\colwidth}
\setlength{\colwidth}{5.4\unitlength}
\newlength{\hours}
-\setlength{\hours}{0.4\unitlength}
+\setlength{\hours}{0.2\unitlength}
\newlength{\quarters}
-\setlength{\quarters}{0.1\unitlength}
+\setlength{\quarters}{0.05\unitlength}
\newlength{\minutes}
-\setlength{\minutes}{0.0266666\unitlength}
+\setlength{\minutes}{0.013333\unitlength}
\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
+ \put(#2,17.6){% ab 0:00 Uhr
\begin{minipage}[t]{\colwidth}%
\vspace*{#3\minutes}%
\def\testl{#5}%
@@ 165,6 166,20 @@
\newcommand{\Lauxlecture}{\colorbox{\Cauxlecture}{Ausweichtermin\strut}}
\newcommand{\Lpersonal}{\colorbox{\Cpersonal}{privat\strut}}
+% bab:
+\newcommand{\Cwork}{YellowOrange}
+\newcommand{\Cchore}{Yellow}
+\newcommand{\Cfamily}{SkyBlue}
+\newcommand{\Cfood}{LightBlue}
+\newcommand{\Chobby}{LightPeriwinkle}
+
+\newcommand{\Lwork}{\colorbox{\Cwork}{Arbeit\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{\legend}[1]{\put(38.7,19){\makebox(0,0)[r]{\footnotesize#1}}}
\def\lecture#1#2 #3 #4{\activity{#4}{#1}{#2}{#3}{\Clecture}}
@@ 182,4 197,10 @@
\def\auxlecture#1#2 #3 #4{\activity{#4}{#1}{#2}{#3}{\Cauxlecture}}
\def\personal#1#2 #3 #4{\activity{#4}{#1}{#2}{#3}{\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}}
+
\newenvironment{plan}[1]{\section*{#1\strut}\begin{picture}(38.8,15.2)(0,3)\drawquarters}{\drawhours\end{picture}\clearpage}
@@ 0,0 1,58 @@
+% cvhplan.tex - LaTeX Time Schedule
+% Copyright (C) 2012, 2013, 2017, 2018 Peter Gerwinski, see https://www.cvh-server.de/~pgerwinski/stundenplan/2018ws/tex/
+% Copyright (C) 2021 Arne Babenhauserheide
+%
+% This document is free software: you can redistribute it and/or
+% modify it under the terms of the GNU General Public License
+% as published by the Free Software Foundation, either version 3
+% of the License, or (at your option) any later version.
+%
+% This document is distributed in the hope that it will be useful,
+% but WITHOUT ANY WARRANTY; without even the implied warranty of
+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+% GNU General Public License for more details.
+%
+% You should have received a copy of the GNU General Public License
+% along with this document. If not, see <http://www.gnu.org/licenses/>.
+
+\documentclass{article}
+
+\usepackage{cvhplan-7days}
+
+\begin{document}
+
+
+\begin{plan}{}
+% days: \mon \tue \wed \thu \fri \sat \sun
+% entry-types:
+% \work Arbeit orange-braun
+% \chore Hausarbeit gelb
+% \family Familienspaß blau
+% \food Essen (kochen / essen) hellblau
+% \hobby Hobby
+%
+% \lecture Vorlesung blau
+% \exercises Übung grün
+% \block Blockveranstaltung dunkelgrün
+% \laboratory Praktikum rot
+% \tutorial Tutorium violett
+% \expertise Vertiefungs-Pflichtfach orange-braun
+% \optional Wahlfach gelb
+% \seminar Seminar hellorange
+% \other Sonstiges grau
+% \recreation Pause ohne Hintergrund
+% \personal privater Termin hellblau
+
+% format: \entrytype \day \startminutes-since-0:00 \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}
+
+\end{document}