logbuch/schuleModul/GENordLogbuch/code.tex

261 lines
5.9 KiB
TeX
Raw Normal View History

2016-10-27 17:03:15 +02:00
\renewcommand{\maketitle}[1][top=6cm,bottom=4cm,inner=1.5cm,outer=1.5cm]{%
\begin{titlepage}
\newgeometry{#1}
\begin{center}
\Huge{\bfseries\Title}
\vspace{3em}
\begin{minipage}{0.7\textwidth}
\Large{Name:} \luecke{8cm}
\vspace{2em}
\Large{Klasse:} \luecke{4cm}
\end{minipage}
\vspace{2em}
\Large{Schuljahr \Schuljahr}
\end{center}
\vfil
\hrule
\vspace{2em}
\begin{minipage}{0.5\textwidth}
\includegraphics[width=\textwidth]{\LogoFront}
\end{minipage}
\hfil
\begin{minipage}{0.45\textwidth}
2016-11-25 18:56:00 +01:00
\huge{\bfseries \GenordForm\linebreak \GenordName}
2016-10-27 17:03:15 +02:00
\end{minipage}
\end{titlepage}
\restoregeometry
}
\providecommand{\addchap}[2][]{%
\addcontentsline{toc}{chapter}{#2}
\huge{\bfseries #2}
}
\providecommand{\front}{%
\frontmatter
\chead{}
\ihead{\chaptermark}
\ohead{\normalfont\Title}
\cfoot{}
}
\providecommand{\hauptteil}{%
%\clearpage
{
\let\cleardoublepage\relax
\let\clearpage\relax
\mainmatter
}
2016-10-27 17:03:15 +02:00
}
\providecommand{\anhang}{%
\clearpage
\appendix
}
\providecommand{\wochen}[2][]{%
%\clearpage
2016-10-27 17:03:15 +02:00
\addcontentsline{toc}{chapter}{Wochenübersichten}
\input{#2}
}
2016-10-27 18:59:50 +02:00
\ProvideDocumentCommand{\mkUrl}{O{} m o}{%
2016-11-25 18:56:00 +01:00
\url{#1#2} \marginpar{%
\qrcode[height=4em,nolinks]{#1#2}
\IfNoValueF{#3}{
\tiny #3
}
}
}
\WithSuffix\providecommand\mkUrl*[2][]{%
\hyperlink{#1#2}{#2}
}
\ProvideDocumentCommand{\mkUrlCode}{O{} m o}{%
2016-11-25 18:56:00 +01:00
\begin{minipage}{5em}
\centering
\qrcode[height=4em,nolinks]{#1#2}
\IfNoValueF{#3}{
\tiny #3
}
\end{minipage}
}
% **********************************************************************
% Macros für Wochenübersicht
2016-11-25 18:56:00 +01:00
% **********************************************************************
\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:}
2016-10-27 18:59:50 +02:00
\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
}{}
}
}
2016-10-27 18:59:50 +02:00
2016-11-25 18:56:00 +01:00
% **********************************************************************
% Macros für den Kalendar
% **********************************************************************
2016-10-27 18:59:50 +02:00
\providecommand{\ferien}{}
\providecommand{\feiertage}{}
\providecommand{\termine}{}
\newenvironment{schulkalendar}[2][top=0.5cm,bottom=0.5cm,outer=1.5cm]{%
\newgeometry{#1}
\pagestyle{empty}
\addcontentsline{toc}{chapter}{#2}
\newboolean{schulkalendarSeiteOne}
\setboolean{schulkalendarSeiteOne}{true}
\newcommand{\calName}{}
}{%
\restoregeometry
\pagestyle{scrheadings}
}
\providecommand{\schulkal}[3][0.96]{%
\rotatebox{90}{%
\scalebox{#1}{%
\begin{tikzpicture}[every day/.style={anchor = north}]
\ifthenelse{\boolean{schulkalendarSeiteOne}}{%
\renewcommand{\calName}{first}
}{%
\renewcommand{\calName}{scnd}
}
\calendar[%
dates=#2,
name=\calName,
day yshift = 3em,
day code=
{
\node[name=\pgfcalendarsuggestedname,every day,shape=rectangle,
minimum height= .53cm, text width = 4.4cm, draw = gray]{\tikzdaytext};
\draw (-1.8cm, -.1ex) node[anchor = west]{\footnotesize%
\pgfcalendarweekdayshortname{\pgfcalendarcurrentweekday}};
},
execute before day scope=
{
\ifdate{day of month=1}
{
% Shift right
\pgftransformxshift{4.8cm}
% Print month name
\draw (0,0)node [shape=rectangle, minimum height= .53cm,
text width = 4.4cm, fill = red, text= white, draw = red, text centered]
{\textbf{\pgfcalendarmonthname{\pgfcalendarcurrentmonth}}};
}{}
\ifdate{workday}
{
\ferien
}{}
\ifdate{Saturday}{\tikzset{every day/.style={fill=red!10}}}{}
\ifdate{Sunday}{\tikzset{every day/.style={fill=red!20}}}{}
\feiertage
},
execute at begin day scope=
{
% each day is shifted down according to the day of month
\pgftransformyshift{-.53*\pgfcalendarcurrentday cm}
}
];
\termine
\end{tikzpicture}
}
}
\setboolean{schulkalendarSeiteOne}{false}
\clearpage
}
% Names of Holidays are inserted by employing this macro
\providecommand{\termin}[3][]{
\ifthenelse{\boolean{schulkalendarSeiteOne}}{%
\node [anchor=north west, text width= 3.4cm] at
($(first-#2.north west)+(3em, 0em)$) {\tiny{#3}};
}{%
\node [anchor=north west, text width= 3.4cm] at
($(scnd-#2.north west)+(3em, 0em)$) {\tiny{#3}};
}
}