%Stylefile zum Erstellen von Klassenarbeiten
% Copyright (1992)  Werner Burkhardt
%                   Carl-Benz-Schule Mannheim
%                   Neckarpromenade 23
%                   6800 Mannheim 1
%              und  Joachim Lammarsch, Luzia Dietsche
%                   DANTE e.V.
%                   Postfach 101840
%                   6900 Heidelberg 1

\typeout {Stylefile zum Erstellen von Klassenarbeiten (Version 1.0)}
\typeout {(c) 1992 Werner Burkhardt)}
\newlength{\perheight}
\newlength{\texthoehe}
\newlength{\perheightI}
\setlength{\tabcolsep}{0cm}
\setlength{\textwidth}{18.5cm}
\setlength{\headheight}{15ex}
\setlength{\textheight}{21cm}
\setlength{\perheight}{\textheight}
\setlength{\perheightI}{\textheight}
\addtolength{\oddsidemargin}{-3cm}
\addtolength{\evensidemargin}{-3cm}
\addtolength{\topmargin}{-3cm}
\addtolength{\perheight}{26pt}
\addtolength{\perheightI}{25.211111pt}

\font\gross=cmr10 scaled \magstep4
\newcommand{\Sm}[1]{\tiny\hfil#1\hfil}
\newcommand{\bln}{ }
\newcommand{\aufgabe}[3]{%
            \parbox[t]{1cm}{#1}
            \parbox[t]{15cm}{#2}
            \setbox0=\hbox{\parbox[t]{15cm}{#2}}
            \setlength{\texthoehe}{\ht0}
            \addtolength{\texthoehe}{\dp0}
            \addtolength{\texthoehe}{-0.8\baselineskip}
            \raisebox{-\texthoehe}{\parbox[t]{0.85cm}{\hfill \raggedleft #3 \hfill}}
            \par \bigskip}
\newcommand{\kopf}[1]{\parbox[t]{16cm}{#1}\par \medskip}
\newcommand{\punktesumme}[1]{%
            \vfill
            \parbox[t]{16.39cm}{\rule{16.39cm}{0pt}}
            \parbox{1.4cm}{\rule{1.38cm}{0.4pt}\par}\par
            \parbox[t]{1cm}{\rule{1cm}{0pt}}
            \parbox[t]{15cm}{\rule{15cm}{0pt}}
            \parbox[t]{1.4cm}{\vrule height 12pt width0pt depth8pt%
                             \raggedleft #1}\par}

\def\Klasse#1{\gdef\@Klasse{#1}}
\def\Nummer#1{\gdef\@Nummer{#1}}
\def\Fach#1{\gdef\@Fach{#1}}
\def\Datum#1{\gdef\@Datum{#1}}

\def\@thehead{\vbox{\hrule width\textwidth height0pt
               \gross
               \noindent
               \@Klasse
               \hfill\@Nummer Klassenarbeit \@Fach\hfill\@Datum
               \par
               \bigskip
               \noindent
                Name:\par}}%

\def\@thefoot{\vbox{\hrule width\textwidth height0pt
               \gross
               \noindent
               Punkte: \hfil Note: \hrule width3cm height0pt\par}}

\def\@outputpage{\begingroup\catcode`\ =10
     \let\-\@dischyph \let\'\@acci \let\`\@accii \let\=\@acciii
     \shipout
     \vbox{\normalsize \baselineskip\z@ \lineskip\z@
           \let\par\@@par %% 15 Sep 87
           \vskip \topmargin \moveright\@themargin
           \vbox{\setbox\@tempboxa
                   \vbox {\vfil \hbox to\textwidth{\@thehead}}
                 \dp\@tempboxa\z@
                 \box\@tempboxa
                 \vskip \headsep
                 \vbox {\hrule\hbox{\vrule%
                 \box\@outputbox
                 \hskip-1.4cm\vrule\vbox to \perheightI{%
                 \hbox to 1.36cm{\vrule height 12pt width0pt depth8pt\hfill %
                 {\Sm Punkte}\hfill}\hrule\vfill}%
                 \vrule}%
                 \hrule}%
                 \baselineskip\footskip
                 \hbox to\textwidth{\@thefoot}}}\global\@colht\textheight
           \endgroup\stepcounter{page}\let\firstmark\botmark}
