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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
|
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{test}[muhq's test class]
% etoolbox is needed for our common options
\RequirePackage{etoolbox}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}}
\newtoggle{drawborder}
\DeclareOption{drawborder}{\toggletrue{drawborder}}
\input{common_options.tex}
\LoadClass[a4paper,12pt]{scrartcl}
\RequirePackage{floatflt}
\RequirePackage{footnote}
\RequirePackage{float}
\RequirePackage[ngerman]{babel}
\RequirePackage{underscore}
\RequirePackage{comment}
\input{common_packages.tex}
\input{common.tex}
\geometry{a4paper, top=35mm, left=20mm, right=35mm, bottom=25mm, headsep=15mm, footskip=10mm}
\iftoggle{drawborder}{
\RequirePackage{everypage}
\RequirePackage{tikzpagenodes}
\usetikzlibrary{backgrounds}
\AddEverypageHook{
\ifthispageodd{
\begin{tikzpicture}[remember picture, overlay, black]
\draw (current page marginpar area.north west) -- (current page marginpar area.south west);
\end{tikzpicture}
}{
\begin{tikzpicture}[remember picture, overlay, black]
\draw (current page marginpar area.north east) -- (current page marginpar area.south east);
\end{tikzpicture}
}
}
}{}
\renewcommand{\baselinestretch}{1,5}
\newcommand{\Verteilung}{}
\newcommand{\AnzahlPunkte}{0} %%Anzahl der Punkte festlegen
\newcommand{\Datum}{\today}
\newcommand{\Klasse}{TODO}
\newcommand{\TestNummer}{1}
\newcommand{\TestArt}{Schulaufgabe}
\newcommand{\Fach}{Mathemathik}
\newcommand{\HeaderText}{\TestArt{} aus der \Fach}
%\newcommand{\KeinLogo}{} %%FALLS Kein Logo erwünscht
\newcommand{\EinleitungsSatz}{Achte auf eine korrekte Schreibweise und eine ordentliche äußere Form!}
\definecolor{testgrauRGB}{rgb}{0.9,0.9,0.9}
\definecolor{testgrauCMYK}{cmyk}{0.0,0.0,0.0,0.30}
\newcommand{\AnzahlInsgesamtPunkte}{TODO} %%Anzahl der zu erreichenden Punkte
\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)}: \ \Verteilung \hfill {/}\AnzahlPunkte \ BE}}
\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
}
\newcommand{\Intro}{
\fcolorbox{black}{testgrauRGB}{%
\parbox{14.3cm}{
\centerline{\Large \bfseries \TestNummer{}. \TestArt{} aus der \Fach{}}
\medskip
\centerline{\bfseries Klasse \Klasse}
\centerline{\bfseries -- am \Datum \ --}
}
}
\medskip
\newline
\centerline{\EinleitungsSatz}
}
\newcommand{\centeredgraphics}[2][]{\[\includegraphics[#1]{images/#2}\]}
\newcommand{\Ende}{
\ifdefined\PlatzKnapp \makebox(100,25)[c]{}
\else \vspace*{\fill}
\fi
\ifdefined\KeinKleeblatt
\else
\ifdefined\PlatzKnapp \centeredgraphics[height=1.5cm]{Kleeblatt.jpg}
\else \centeredgraphics[height=2.5cm]{Kleeblatt.jpg}
\fi
\centerline{\textbf{Viel Erfolg! \Signatur}}
\ifdefined\PlatzKnapp \makebox(1,10)[c]{}
\else \makebox(1,50)[c]{}
\fi
%%Erstellt Summenzeichen und Erreichte Punktzahl
\centerline{\Large \bfseries $\sum$ \ \ \ \ \ \ \ \ \ \ {/}\AnzahlInsgesamtPunkte \ BE}
\ifdefined\PlatzKnapp \makebox(1,10)[c]{}
\else \makebox(100,100)[c]{}
\fi
}
\makeindex
\RequirePackage{setspace}
\RequirePackage{fancyhdr}
\pagestyle{fancy}
\setlength{\headheight}{25 pt}
\fancyhf{}
\fancyhead[L]{\Schule}
\fancyhead[R]{\HeaderText}
\fancypagestyle{ErsteSeite}{%
\fancyhf{}%
\fancyhead[L]{\ifdefined\KeinLogo \else \includegraphics[width=0.3\textwidth]{\LogoSchule} \newline \fi \Schule}
\fancyhead[R]{\Large Name: \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
}
|