\NeedsTeXFormat{LaTeX2e} \ProvidesClass{test}[muhq's test class] \renewcommand{\baselinestretch}{1,5} \LoadClass[a4paper,12pt]{scrartcl} \RequirePackage{floatflt} \RequirePackage{footnote} \RequirePackage{float} \RequirePackage[ngerman]{babel} \RequirePackage{underscore} \RequirePackage{comment} \input{common_packages.tex} \input{common_options.tex} \input{common.tex} \geometry{a4paper, top=35mm, left=20mm, right=35mm, bottom=25mm, headsep=15mm, footskip=10mm} \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 Mathematik} \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 %\makebox(100,50)[c]{} \centeredgraphics[height=2.5cm]{Kleeblatt.jpg} \centerline{\textbf{Viel Erfolg! \Signatur}} \newline \makebox(1,50)[c]{} %%Erstellt Summenzeichen und Erreichte Punktzahl \centerline{\Large \bfseries $\sum$ \ \ \ \ \ \ \ \ \ \ {/}\AnzahlInsgesamtPunkte \ BE} \makebox(1,25)[c]{} \newline \ifdefined\PlatzKnapp \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: \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ } }