Automatisierte Wochenübersicht begonnen

This commit is contained in:
André Hilbig 2016-11-26 01:41:54 +01:00
parent 1f08436526
commit c1f563d981
5 changed files with 125 additions and 8 deletions

Binary file not shown.

View file

@ -1,4 +1,4 @@
\documentclass[a4paper,11pt,titlepage,ngerman]{scrbook} \documentclass[a4paper,11pt,titlepage,ngerman,openany]{scrbook}
\usepackage[T1]{fontenc} \usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc} \usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel} \usepackage[ngerman]{babel}
@ -22,7 +22,7 @@
%seitenzahlen=autoGesamt, %seitenzahlen=autoGesamt,
%loesungen=seite, %loesungen=seite,
%fach={}, %fach={},
module={Kuerzel,Symbole,GENord,GENordLogbuch}, module={Kuerzel,Symbole,Aufgaben,Papiertypen,GENord,GENordLogbuch},
%lerngruppe={Lernbüro 5}, %lerngruppe={Lernbüro 5},
farbig farbig
]{schule} ]{schule}

View file

@ -48,8 +48,12 @@
\cfoot{} \cfoot{}
} }
\providecommand{\hauptteil}{% \providecommand{\hauptteil}{%
\clearpage %\clearpage
\mainmatter {
\let\cleardoublepage\relax
\let\clearpage\relax
\mainmatter
}
} }
\providecommand{\anhang}{% \providecommand{\anhang}{%
\clearpage \clearpage
@ -57,12 +61,12 @@
} }
\providecommand{\wochen}[2][]{% \providecommand{\wochen}[2][]{%
\clearpage %\clearpage
\addcontentsline{toc}{chapter}{Wochenübersichten} \addcontentsline{toc}{chapter}{Wochenübersichten}
\input{#2} \input{#2}
} }
\ProvideDocumentCommand{\mkUrl}{o m o}{% \ProvideDocumentCommand{\mkUrl}{O{} m o}{%
\url{#1#2} \marginpar{% \url{#1#2} \marginpar{%
\qrcode[height=4em,nolinks]{#1#2} \qrcode[height=4em,nolinks]{#1#2}
\IfNoValueF{#3}{ \IfNoValueF{#3}{
@ -74,7 +78,7 @@
\WithSuffix\providecommand\mkUrl*[2][]{% \WithSuffix\providecommand\mkUrl*[2][]{%
\hyperlink{#1#2}{#2} \hyperlink{#1#2}{#2}
} }
\ProvideDocumentCommand{\mkUrlCode}{o m o}{% \ProvideDocumentCommand{\mkUrlCode}{O{} m o}{%
\begin{minipage}{5em} \begin{minipage}{5em}
\centering \centering
\qrcode[height=4em,nolinks]{#1#2} \qrcode[height=4em,nolinks]{#1#2}
@ -85,9 +89,94 @@
} }
% ********************************************************************** % **********************************************************************
% Macros für Kontakt % Macros für Wochenübersicht
% ********************************************************************** % **********************************************************************
\providecommand{\printLogbuchTag}[2][]{%
\begin{minipage}{0.32\textwidth}
\centering
\begin{logbuchTag}{#2}
\faecher
\end{logbuchTag}
\end{minipage}
}
\providecommand{\printLogbuchTagDi}[2][]{%
\begin{minipage}{0.32\textwidth}
\centering
\begin{logbuchTag}{#2}
\faecher[4]
\end{logbuchTag}
\begin{logbuchZusatz}{Extras}
something awesome will appear here
\vspace{6.5cm}
\end{logbuchZusatz}
\end{minipage}
}
\providecommand{\printLogbuchSpalte}[2][6]{%
\begin{minipage}{0.32\textwidth}
\centering
\begin{logbuchTag}{#2}
something awesome will appear here
\vspace{0.9\textheight}
\end{logbuchTag}
\end{minipage}
}
\newtcolorbox{logbuchZusatz}[1]{%
colback=white!98!black,%
left=1mm,
right=1mm,
fonttitle=\bfseries,
title={#1},
}
\newtcolorbox{logbuchTag}[1]{%
colback=white!98!black,%
left=1mm,
right=1mm,
fonttitle=\bfseries,
title={#1},
}
\newtcolorbox{logbuchFach}[1]{%
enhanced,
attach boxed title to top left = {xshift=2mm,yshift=-2mm},
sharp corners=downhill,
colback=white!93!black,
left=1mm,
right=1mm,
top=4mm,
skin=bicolor,
colbacklower=white!85!black,
halign lower=center,
leftlower=4mm,
rightlower=4mm,
title=#1,
}
\providecommand{\faecher}[1][6]{%
\foreach\n in {1,...,#1}{%
\begin{logbuchFach}{\n.\,Stunde}
\textbf{Fach:}
\feldLin[0.6cm]{2}
\tcblower
\usym{1F641} \hfil \usym{1F610} \hfil \usym{1F642} \hfil \usym{1F603}
\end{logbuchFach}
}
}
\providecommand{\logbuchWoche}[6][3]{%
\newcounter{logbuchTagNummer}
\setcounter{logbuchTagNummer}{0}
\foreach\name in {#2,#3,#4,#5,#6}{%
\refstepcounter{logbuchTagNummer}
\begin{minipage}{0.32\textwidth}
\centering
\begin{logbuchTag}{\name}
\faecher
\end{logbuchTag}
\end{minipage}
\ifthenelse{\value{logbuchTagNummer}<#1\OR\(\value{logbuchTagNummer}>#1\AND\value{logbuchTagNummer}<5\)}{%
\hfil
}{}
}
}
% ********************************************************************** % **********************************************************************
% Macros für den Kalendar % Macros für den Kalendar

View file

@ -16,3 +16,5 @@
% wegen listings % wegen listings
\RequirePackage{scrhack} \RequirePackage{scrhack}
\RequirePackage[calc]{datetime2}

View file

@ -0,0 +1,26 @@
\newgeometry{%includefoot,includehead,
top=0.75cm,
bottom=0.75cm,
inner=1.5cm,
outer=1cm,
}
\pagestyle{empty}
%\printLogbuchWoche{\jahrEins-09-04}{\jahrEins-09-09}
\pgfcalendar{}{\jahrEins-09-04}{\jahrEins-09-16}
{\ifdate{workday}{\ifdate{Tuesday}{\printLogbuchTagDi{%
\pgfcalendarweekdayname{\pgfcalendarcurrentweekday},%
\pgfcalendarcurrentday.\pgfcalendarcurrentmonth%
}
}{\printLogbuchTag{%
\pgfcalendarweekdayname{\pgfcalendarcurrentweekday},%
\pgfcalendarcurrentday.\pgfcalendarcurrentmonth%
}%
}\ifdate{Wednesday}{\pagebreak}{\hfil}%
}{}%
\ifdate{Friday}{\printLogbuchSpalte{Rest}\pagebreak}{}%
}
\clearpage
\pagestyle{scrheadings}
\restoregeometry