1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
\newcommand{\Signatur}{FIF}
\newcommand{\Schule}{Hans-Sachs-Gymnasium Nürnberg}
\newcommand{\LogoSchule}{images/logoHansSachs.png}
\newtcolorbox{wiederholung}[1]{colback=orange!5!white,colframe=orange!75!black,fonttitle=\bfseries,title=Wiederholung: #1}
\newcommand\kariert[2][0.5cm]{%
\begin{tikzpicture}[gray,step=#1]
\pgfmathtruncatemacro\anzahl{(\linewidth-\pgflinewidth)/#1} % maximale Anzahl Kästchen pro Zeile
\draw (0,0) rectangle (\anzahl*#1,#2*#1) (0,0) grid (\anzahl*#1,#2*#1);
\end{tikzpicture}
}
\newcommand{\liniert}[2][0.5cm]{%
\begin{tikzpicture}[gray]
\path[use as bounding box](0,0)rectangle(\linewidth,-#2*#1-0.5\pgflinewidth);
\foreach \n in {1,...,#2}\draw(0 ,-#1*\n )--(\linewidth,-#1*\n );
\end{tikzpicture}
}
\newcommand{\iflehrer}[2]{\iftoggle{lehrerversion}{#1}{#2}}
\newcommand{\solution}[1]{\iftoggle{lehrerversion}{#1}{\textcolor{white}{#1}}}
\newcommand{\gap}[1]{\underLine{\solution{#1}}}
\newtheoremstyle{Aufg}% name of the style to be used
{2pt}% measure of space to leave above the theorem. E.g.: 3pt
{}% measure of space to leave below the theorem. E.g.: 3pt
{}% name of font to use in the body of the theorem
{}% measure of space to indent
{}% name of head font
{}% punctuation between head and body
{\newline }% space after theorem head; " " = normal interword space
{\textbf{\thmname{#1}\thmnumber{ #2}\thmnote{ (#3)}\ifdefined\Verteilung{}: \ \Verteilung \hfill {/}\AnzahlPunkte \ BE\fi}}
\theoremstyle{Aufg}
\newtheorem{Aufg}{Aufgabe}
\newtheoremstyle{Lsg}% name of the style to be used
{2pt}% measure of space to leave above the theorem. E.g.: 3pt
{}% measure of space to leave below the theorem. E.g.: 3pt
{}% name of font to use in the body of the theorem
{}% measure of space to indent
{}% name of head font
{}% punctuation between head and body
{\newline }% space after theorem head; " " = normal interword space
{\textbf{\thmname{#1}\thmnote{ (#3)}:}}
\theoremstyle{Lsg}
\newtheorem{Lsg}{Lösung}
\newtheoremstyle{Bearbeitung}% name of the style to be used
{0pt}% measure of space to leave above the theorem. E.g.: 3pt
{25pt}% measure of space to leave below the theorem. E.g.: 3pt
{}% name of font to use in the body of the theorem
{}% measure of space to indent
{}% name of head font
{}% punctuation between head and body
{ }% space after theorem head; " " = normal interword space
{\thmname{#1}}
\theoremstyle{Bearbeitung}
\newtheorem{Bearbeitung}{}
\newcommand{\Lehrerversion}{\excludecomment{Bearbeitung}}
\newcommand{\Schuelerversion}{\excludecomment{Lsg}}
\iftoggle{lehrerversion}{
\Lehrerversion
}{
\Schuelerversion
}
% Add new paired delimiter 'abs' using mathtools
\DeclarePairedDelimiter\abs{\lvert}{\rvert}%
\newcommand{\dist}[1]{\abs{\overline{#1}}}
|