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}
|
|
|
|
\huge{\bfseries \GenordName}
|
|
|
|
\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
|
|
|
|
\mainmatter
|
|
|
|
}
|
|
|
|
\providecommand{\anhang}{%
|
|
|
|
\clearpage
|
|
|
|
\appendix
|
|
|
|
}
|
|
|
|
|
|
|
|
\providecommand{\wochen}[2][]{%
|
|
|
|
\clearpage
|
|
|
|
\addcontentsline{toc}{chapter}{Wochenübersichten}
|
|
|
|
\input{#2}
|
|
|
|
}
|
2016-10-27 18:59:50 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
% User defined
|
|
|
|
\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}};
|
|
|
|
}
|
|
|
|
}
|