% DOKUMENTENKLASSE einseitig (bei zweiseitig muss man oneside durch twoside ersetzen)
\documentclass[toc=flat,11pt,oneside,pointlessnumbers,a4paper]{scrartcl}
% HEADER
% Einbindungen
\usepackage{etex}							% schafft mehr Headroom für viele Pakete
\usepackage[ngerman]{babel}					% Deutsche Sprache
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}					% Input-Tastatur
\usepackage{lmodern}
\usepackage{verbatim}						% \begin{verbatim} PLAINTEXT wie im Texteditor \end{verbatim}; \texttt{} im Text verwenden
\usepackage{siunitx}							% SI-Einheiten
\usepackage{nicefrac}						% schräger Bruchstrich für Restklassen
\usepackage{tabularx}
\usepackage{tabulary}
\usepackage{hhline}							% mit \hhline{} manuelle Linien in Tabelle einfügen
\usepackage{setspace}						% Zeilenabstände
\usepackage{scrtime}							% mit \thistime kann man die aktuelle Zeit ausgeben
\usepackage{enumerate}
\usepackage[section]{placeins}
\usepackage{typearea}
\usepackage{footmisc}
\usepackage{multirow}
\usepackage{blindtext}						% \blindtext und \blinddocument
\usepackage[fleqn,tbtags]{amsmath}				% mathematische Symbole
\usepackage{mathtools}
\usepackage{amssymb}						% weitere mathematische Symbole
\usepackage{latexsym}						% \Box und \leadsto
\usepackage{mparhack}						% \marginpar auf der richtigen Seite
\usepackage{marginnote}						% marginnote falls marginpar nicht geht
\usepackage{graphicx}						% zum Einbinden von Graphik
\usepackage[all]{xy}							% kommutierende Diagramme
\usepackage{bbm}							% alternative Doppelstrichbuchstaben \mathbbm, tipp: \mathbbmtt{1}=identity
\usepackage{fancyhdr}						% Fancy-Head
\usepackage{marvosym}						% weitere Symbole - wie € und so
\usepackage{color}							% Farben
\usepackage{colortbl}							% \cellcolor{<FARBE>} für Tabellen
\usepackage{ifthen}							% If-Bedingungen
\usepackage{makeidx}						% Index erstellen
\usepackage{stmaryrd}						% Symbol
\usepackage{rotating}							% zum Drehen
\usepackage[b]{esvect}						% mit \vv{TEXT} fügt man schöne Vektoren ein
%\usepackage{mathrsfs}						% mathematische Schriftart
\usepackage{enumitem}						% enumeratation direkt ändern
%\usepackage{bm}							% fette griechische Buchstaben
\usepackage{array,longtable}					% mehrzeilige Matheumgebung
\usepackage{multicol}							% Mehrspaltigkeit im Dokument erzeugen mit \begin{multicols}{ANZAHL} ... \end{multicols}
\usepackage{cancel}							% Kürzungs-streichen
%\usepackage{subfiles}						% tex-file-Splitting
\usepackage{pdfpages}						% Pdf-einbindung
\usepackage{geometry}						% Seitenränder-Verwaltung
\usepackage{calc}							% für ToDoNotes
\usepackage{xkeyval}							% für ToDoNotes
\usepackage{xcolor}							% für ToDoNotes
\usepackage{wasysym}						% nutze \varangle für schöne Winkelzeichen in der Schule
\usepackage{dsfont}							% Schriftsatz für MENGENSYMBOLE; nutze \mathds{...}
\usepackage{pgf,tikz}							% Zeichnungen, Plots, etc.
\usepackage{pgfplots}
\usetikzlibrary{arrows}
\usetikzlibrary{patterns}
\usetikzlibrary{snakes}
%\usetikzlibrary{decorations,decorations.pathmorphing,decorations.pathreplacing}
%\usepackage{electComp}						% elektrische Schaltsymbole für Tikz
\usepackage[european]{circuitikz}				% für Schaltpläne etc.
\usepackage{guitar}							% begin{guitar} [E]Wort \end{guitar} fügt ein E über Wort ein
\usepackage{todonotes}						% ToDo Anmerkungen
\usepackage{chemfig}						%	chemische Formeln etc.
\usepackage{xargs}							% newcommandx - mehrere optionale Argumente
%\usepackage{pst-all}                          				% PSTricks
%\usepackage{pst-pdf}                           			% PSTricks im PDF
%\usepackage{pst-3dplot}                        			% PST-3d-Erweiterung
%\usepackage{pst-solides3d}                     			% PST-Mega-3d-erweiterung
%\usepackage{slashbox}						% \backslashbox{}{} in tabular-Umgebung (muss separat nachinstalliert werden)
\usepackage{pict2e}
\usepackage[hyphens]{url}						% bricht URLs an Bindestrichen um
\usepackage[colorlinks=true,citecolor=black,linkcolor=black,urlcolor=blue]{hyperref}	%Hyperlinkverknüpfung
\usepackage{bookmark}

% Abstandssetzungen
\reversemarginpar
\setlength{\marginparsep}{2ex}					% Abstand der Randnotizen
\setlength{\parindent}{0pt}						% kein Absatzeinrücken

% Formatierung des TOC
%\addtokomafont{section}{\textrm}				% serifen bei Sections
%\addtokomafont{subsection}{\textrm}				% serifen bei Subsections
%\addtokomafont{sectionentry}{\rmfamily}			% serifen bei Sections im TOC
%\KOMAoptions{toc=index}					% Index ins TOC
\addtokomafont{part}{\huge}
\addtokomafont{partnumber}{\huge}
\addtokomafont{disposition}{\boldmath}			% Mathematik in Überschriften Fett

% Color-Definitionen
\definecolor{darkgreen}{rgb}{0,0.6,0}
\definecolor{gray}{gray}{0.35}
\definecolor{dgrau}{rgb}{0.8,0.8,0.8}
\definecolor{hgrau}{rgb}{0.9,0.9,0.9}

% Formatierungen
\pagenumbering{arabic}
\makeindex
\setcounter{secnumdepth}{5}					
\setcounter{tocdepth}{3}
\renewcommand{\thesection}{\Roman{section}}       
\renewcommand{\thesubsection}{\arabic{section}.\arabic{subsection}}
\renewcommand{\thesubsubsection}{\arabic{section}.\arabic{subsection}.\arabic{subsubsection}}
\setlength{\marginparwidth}{22mm}	% Randnotiz Breite
\geometry{a4paper, top=20mm, bottom=20mm, left=30mm, right=20mm, headsep=5mm, footskip=10mm}		%Papierlayout
\renewcommand{\footrulewidth}{0.5pt}		% Strich über Fußzeile am unteren Papierrand
\setlength{\headheight}{26pt}		% Höhe der Kopfzeile

% Sicherung alter Symbole
\let\Durchmesser=\O
\let\oldRe=\Re
\let\oldIm=\Im
\let\shortmapsto=\mapsto
\let\oldrho=\rho
\let\oldphi=\phi
\let\sint=\int
\let\ocong=\cong

% MENGENSYMBOLE
\newcommand{\A}{\mathds{A}}
\newcommand{\B}{\mathds{B}}
\newcommand{\C}{\mathds{C}}
\newcommand{\D}{\mathds{D}}
\newcommand{\E}{\mathds{E}}
\newcommand{\F}{\mathds{F}}
\newcommand{\G}{\mathds{G}}
\renewcommand{\H}{\mathds{H}}				
\newcommand{\I}{\mathds{I}}
\newcommand{\J}{\mathds{J}}
\newcommand{\K}{\mathds{K}}
\renewcommand{\L}{\mathds{L}}				
\newcommand{\M}{\mathds{M}}
\newcommand{\N}{\mathds{N}}
\renewcommand{\O}{\mathds{O}}				
\renewcommand{\P}{\mathds{P}}				
\newcommand{\Q}{\mathds{Q}}
\newcommand{\R}{\mathds{R}}
\renewcommand{\S}{\mathds{S}}			
\newcommand{\T}{\mathds{T}}
\newcommand{\U}{\mathds{U}}
\newcommand{\V}{\mathds{V}}
\newcommand{\W}{\mathds{W}}
\newcommand{\X}{\mathds{X}}
\newcommand{\Y}{\mathds{Y}}
\newcommand{\Z}{\mathds{Z}}
\newcommand{\eins}{\mathds{1}}

% schlicht geschwungen
\newcommand{\cA}{\mathcal{A}}
\newcommand{\cB}{\mathcal{B}}
\newcommand{\cC}{\mathcal{C}}
\newcommand{\cD}{\mathcal{D}}
\newcommand{\cE}{\mathcal{E}}
\newcommand{\cF}{\mathcal{F}}
\newcommand{\cG}{\mathcal{G}}
\newcommand{\cH}{\mathcal{H}}				
\newcommand{\cI}{\mathcal{I}}
\newcommand{\cJ}{\mathcal{J}}
\newcommand{\cK}{\mathcal{K}}
\newcommand{\cL}{\mathcal{L}}				
\newcommand{\cM}{\mathcal{M}}
\newcommand{\cN}{\mathcal{N}}
\newcommand{\cO}{\mathcal{O}}				
\newcommand{\cP}{\mathcal{P}}				
\newcommand{\cQ}{\mathcal{Q}}
\newcommand{\cR}{\mathcal{R}}
\newcommand{\cS}{\mathcal{S}}			
\newcommand{\cT}{\mathcal{T}}
\newcommand{\cU}{\mathcal{U}}
\newcommand{\cV}{\mathcal{V}}
\newcommand{\cW}{\mathcal{W}}
\newcommand{\cX}{\mathcal{X}}
\newcommand{\cY}{\mathcal{Y}}
\newcommand{\cZ}{\mathcal{Z}}

% stark geschwungen 
\newcommand{\sA}{\mathscr{A}}
\newcommand{\sB}{\mathscr{B}}
\newcommand{\sC}{\mathscr{C}}
\newcommand{\sD}{\mathscr{D}}
\newcommand{\sE}{\mathscr{E}}
\newcommand{\sF}{\mathscr{F}}
\newcommand{\sG}{\mathscr{G}}
\newcommand{\sH}{\mathscr{H}}				
\newcommand{\sI}{\mathscr{I}}
\newcommand{\sJ}{\mathscr{J}}
\newcommand{\sK}{\mathscr{K}}
\newcommand{\sL}{\mathscr{L}}				
\newcommand{\sM}{\mathscr{M}}
\newcommand{\sN}{\mathscr{N}}
\newcommand{\sO}{\mathscr{O}}				
\newcommand{\sP}{\mathscr{P}}				
\newcommand{\sQ}{\mathscr{Q}}
\newcommand{\sR}{\mathscr{R}}
\newcommand{\sS}{\mathscr{S}}			
\newcommand{\sT}{\mathscr{T}}
\newcommand{\sU}{\mathscr{U}}
\newcommand{\sV}{\mathscr{V}}
\newcommand{\sW}{\mathscr{W}}
\newcommand{\sX}{\mathscr{X}}
\newcommand{\sY}{\mathscr{Y}}
\newcommand{\sZ}{\mathscr{Z}}

% veraltet
\newcommand{\fA}{\mathfrak{A}}
\newcommand{\fB}{\mathfrak{B}}
\newcommand{\fC}{\mathfrak{C}}
\newcommand{\fD}{\mathfrak{D}}
\newcommand{\fE}{\mathfrak{E}}
\newcommand{\fF}{\mathfrak{F}}
\newcommand{\fG}{\mathfrak{G}}
\newcommand{\fH}{\mathfrak{H}}				
\newcommand{\fI}{\mathfrak{I}}
\newcommand{\fJ}{\mathfrak{J}}
\newcommand{\fK}{\mathfrak{K}}
\newcommand{\fL}{\mathfrak{L}}				
\newcommand{\fM}{\mathfrak{M}}
\newcommand{\fN}{\mathfrak{N}}
\newcommand{\fO}{\mathfrak{O}}				
\newcommand{\fP}{\mathfrak{P}}				
\newcommand{\fQ}{\mathfrak{Q}}
\newcommand{\fR}{\mathfrak{R}}
\newcommand{\fS}{\mathfrak{S}}			
\newcommand{\fT}{\mathfrak{T}}
\newcommand{\fU}{\mathfrak{U}}
\newcommand{\fV}{\mathfrak{V}}
\newcommand{\fW}{\mathfrak{W}}
\newcommand{\fX}{\mathfrak{X}}
\newcommand{\fY}{\mathfrak{Y}}
\newcommand{\fZ}{\mathfrak{Z}}

% mit Kringel drüber
\newcommand{\Ao}{\mathring{A}}
\newcommand{\Bo}{\mathring{B}}
\newcommand{\Co}{\mathring{C}}
\newcommand{\Do}{\mathring{D}}
\newcommand{\Eo}{\mathring{E}}
\newcommand{\Fo}{\mathring{F}}
\newcommand{\Go}{\mathring{G}}
\newcommand{\Ho}{\mathring{H}}
\newcommand{\Io}{\mathring{I}}
\newcommand{\Jo}{\mathring{J}}
\newcommand{\Ko}{\mathring{K}}
\newcommand{\Lo}{\mathring{L}}
\newcommand{\Mo}{\mathring{M}}
\newcommand{\No}{\mathring{N}}
\newcommand{\Oo}{\mathring{O}}
\newcommand{\Po}{\mathring{P}}
\newcommand{\Qo}{\mathring{Q}}
\newcommand{\Ro}{\mathring{R}}
\newcommand{\So}{\mathring{S}}
\newcommand{\To}{\mathring{T}}
\newcommand{\Uo}{\mathring{U}}
\newcommand{\Vo}{\mathring{V}}
\newcommand{\Wo}{\mathring{W}}
\newcommand{\Xo}{\mathring{X}}
\newcommand{\Yo}{\mathring{Y}}
\newcommand{\Zo}{\mathring{Z}}

% Mathematische Operatoren
\DeclareMathOperator{\const}{const}
\DeclareMathOperator{\konst}{konst}
\DeclareMathOperator{\supp}{supp}
\DeclareMathOperator{\Mipo}{Mipo}
\DeclareMathOperator{\Diag}{Diag}
\DeclareMathOperator{\kgV}{kgV}
\DeclareMathOperator{\ggT}{ggT}
\DeclareMathOperator{\pr}{pr}
\DeclareMathOperator{\id}{id}
\DeclareMathOperator{\Abb}{Abb}
\DeclareMathOperator{\Gl}{Gl}
\DeclareMathOperator{\End}{End}
\DeclareMathOperator{\Bil}{Bil}
\DeclareMathOperator{\Hom}{Hom}
\DeclareMathOperator{\diam}{diam}
%\DeclareMathOperator{\Tr}{Tr}
\DeclareMathOperator{\tr}{tr}
\DeclareMathOperator{\im}{im}
\DeclareMathOperator{\rg}{rg}
\DeclareMathOperator{\ev}{ev}
\DeclareMathOperator{\grad}{grad}
\DeclareMathOperator{\Grad}{Grad}
\DeclareMathOperator{\Aut}{Aut}
\DeclareMathOperator{\sgn}{sgn}
\DeclareMathOperator{\ord}{ord}
\DeclareMathOperator{\Quot}{Quot}
\DeclareMathOperator{\Frob}{Frob}
\DeclareMathOperator{\Fr}{Fr}
\DeclareMathOperator{\Char}{char}
\DeclareMathOperator{\Gal}{Gal}
\DeclareMathOperator{\Ge}{Ge}
\DeclareMathOperator{\Kr}{Kr}
\DeclareMathOperator{\Sp}{Sp}
\DeclareMathOperator{\rot}{rot}
\DeclareMathOperator{\arcsinh}{arcsinh}
\DeclareMathOperator{\Spur}{Spur}
\DeclareMathOperator{\Span}{Span}
\DeclareMathOperator{\Graph}{Graph}
\DeclareMathOperator{\Fl}{Fl}
\DeclareMathOperator{\Arg}{Arg}
\DeclareMathOperator{\Pot}{Pot}
\DeclareMathOperator{\Stab}{Stab}
\DeclareMathOperator{\Log}{Log}
\DeclareMathOperator{\adj}{adj}
\DeclareMathOperator{\Res}{Res}
\DeclareMathOperator{\vol}{vol}
\DeclareMathOperator{\Bild}{Bild}
\DeclareMathOperator{\dist}{d}
\DeclareMathOperator{\Eig}{Eig}
\DeclareMathOperator{\li}{li}
\DeclareMathOperator{\Gr}{Gr}
\DeclareMathOperator{\add}{add}
\DeclareMathOperator{\mult}{mult}
\DeclareMathOperator{\quot}{quot}
\DeclareMathOperator{\Rd}{Rd}
\DeclareMathOperator{\Rang}{Rang}

% Komplexe Zahlen
\renewcommand{\Im}{\mathrm{Im}}
\renewcommand{\Re}{\mathrm{Re}}
\renewcommand{\i}{\mathrm{i}}

% ANPASSUNG von . und , bei Zahlen im Deutschen
\mathcode`,="013B									% entfernt im Mathemodus Abstand zwischen Komma und darauffolgendem Zeichen
%\mathcode`.="613A									% fügt im Mathemodus Abstand zwischen Punkt und darauffolgendem Zeichen ein

% SCHULE
\newcommand{\pgr}{\geqq}								% größer-gleich Zeichen
\newcommand{\pkl}{\leqq}								% kleiner-gleich Zeichen
\newcommand{\entspricht}{\stackrel{\wedge}{=}}				% = mit Dach drauf
\newcommand{\psubset}{\subseteqq}						% Teilmengenzeichen
\newcommand{\psupset}{\supseteqq}						% Teilmengenzeichen umgedreht

%Stil des Literaturverzeichnises
\bibliographystyle{alphadin}