\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{analysis}

% ganz viele coole Pakete!
\RequirePackage[utf8]{inputenc}
\RequirePackage{ngerman, url}
\RequirePackage{hyperref}
\RequirePackage{microtype}
\RequirePackage{tikz}
\RequirePackage{amsthm}
\RequirePackage{amsmath}
\RequirePackage{amsfonts}
\RequirePackage{amssymb}
\RequirePackage{stmaryrd}
\RequirePackage{extarrows}
\RequirePackage{bbm}
\RequirePackage{enumitem}
\RequirePackage{hfoldsty}

% Theorem style
\theoremstyle{plain}
  \newtheorem{satz}{Satz}[chapter]
  \newtheorem{lem}[satz]{Lemma}
  \newtheorem{kor}[satz]{Korollar}
  \newtheorem{thm}[satz]{Theorem}
\theoremstyle{definition}
  \newtheorem{dfn}[satz]{Definition}
  \newtheorem*{dfn*}{Definition}
  \newtheorem{bsp}[satz]{Beispiel}
  \newtheorem*{bsp*}{Beispiel}
  \newtheorem{bem}[satz]{Bemerkung}
  \newtheorem*{bem*}{Bemerkung}
\renewcommand{\proofname}{Beweis}

%\renewcommand{\labelenumi}{\alph{enumi})}
\setkomafont{paragraph}{\normalfont\bfseries}

\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt}

\newcommand{\set}[1]{\ensuremath{\mathbb{#1}}}
\newcommand{\nat}[1]{\ensuremath{#1\in\set{N}}}
\newcommand{\zahl}[1]{\ensuremath{#1\in\set{Z}}}
\newcommand{\rat}[1]{\ensuremath{#1\in\set{Q}}}
\newcommand{\reell}[1]{\ensuremath{#1\in\set{R}}}
\newcommand{\kmplx}[1]{\ensuremath{#1\in\set{C}}}
\newcommand{\abg}[1]{\overline{#1}}
\newcommand{\e}{\mathrm{e}}
\renewcommand{\i}{\mathrm{i}}
\renewcommand{\L}{\ensuremath{\mathcal{L}}}

\newcommand{\ep}{\varepsilon}
\newcommand{\folgt}{\ensuremath{\implies}}
\newcommand{\gdw}{\ensuremath{\iff}}

\newcommand{\nach}[2]{\ensuremath{\DOTSB\;\stackrel{\text{#2}}{#1}\;}}
\newcommand{\wegen}[2]{\ensuremath{\DOTSB\;\stackrel{#2}{#1}\;}}
\newcommand{\folgtnach}[1]{\ensuremath{\DOTSB\;\xLongrightarrow{\text{#1}}\;}}
\newcommand{\folgtwegen}[1]{\ensuremath{\DOTSB\;\xLongrightarrow{#1}\;}}
\newcommand{\gdwnach}[1]{\ensuremath{\DOTSB\;\xLongleftrightarrow{\text{#1}}\;}}
\newcommand{\gdwwegen}[1]{\ensuremath{\DOTSB\;\xLongleftrightarrow{#1}\;}}
\newcommand{\tonach}[1]{\ensuremath{\DOTSB\;\xrightarrow{\text{#1}}\;}}
\newcommand{\towegen}[1]{\ensuremath{\DOTSB\;\xrightarrow{#1}\;}}

\newcommand{\da}{:=} %kurz fuer definiert als
\newcommand{\ad}{=:}
\newcommand{\ra}{\rightarrow}
\newcommand{\lra}{\longrightarrow}
\newcommand{\ninf}{\ensuremath{n\ra\infty}}
\newcommand{\kinf}{\ensuremath{k\ra\infty}}
\newcommand{\abs}[1]{\left\lvert#1\right\lvert}
\newcommand{\reihe}[1]{\sum_{k=0}^\infty #1}
%\newcommand{\blitz}{\lightning}
\newcommand{\ws}{\textsc{Widerspruch }}
\newcommand{\ann}{\textsc{Annahme: }}



\newcommand{\limf}[1]{\ensuremath{\displaystyle\lim_{#1\ra\infty}}}

\newcommand{\C}{\set{C}}
\newcommand{\R}{\set{R}}
\newcommand{\N}{\set{N}}
\newcommand{\Z}{\set{Z}}
\newcommand{\I}{\mathrm{I}}
\renewcommand{\d}{\mathrm{d}}
\newcommand{\mat}[4]{\left(\!\!\!\begin{array}{c c}#1&#2\\#3&#4\end{array}\!\!\!\right)}
\newcommand{\cmplx}[2]{\ensuremath\left(\!\!\!\begin{array}{c}#1\\#2\end{array}\!\!\!\right)}

\newcommand{\ls}{\varlimsup}
\newcommand{\li}{\varliminf}

\newcommand{\integral}[4]{\ensuremath{\int_{#1}^{#2}{#3}\;\d#4}}
\newcommand{\Integral}[4]{\ensuremath{\int\limits_{#1}^{#2}{#3}\;\mathrm{d}#4}}

\newcommand{\charfnkt}[1]{\ensuremath{\mathbbm{1}_{#1}}}
\newcommand{\leer}{\ensuremath{\varnothing}}

\renewcommand{\Re}[1]{\ensuremath\operatorname{Re}{#1}}
\renewcommand{\Im}[1]{\ensuremath\operatorname{Im}{#1}}
\newcommand{\id}{\ensuremath{\mathrm{id}}}
\newcommand{\dotcup}{\mathbin{\dot{\cup}}} % disjunkte Vereinigung
\newcommand{\Res}[2]{\ensuremath\mathrm{Res}\left(#1,#2\right)} % Residuum
%\newcommand{\Res}{\ensuremath\mathrm{Res}}
\newcommand{\Log}{\ensuremath\mathrm{Log}}
\newcommand{\sign}{\ensuremath\mathrm{sign}}
\newcommand{\homot}[1]{\ensuremath\underset{#1}{\sim}}


\renewcommand{\bar}[1]{\ensuremath\overline{#1}}

% zweite Aufzählungsebene sollen Zahlen sein ....
%\renewcommand{\labelenumii}{(\arabic{enumii})}
%\renewcommand{\theenumii}{\arabic{enumii})}
%\renewcommand{\theenumi}{\alph{enumi})}
% mit coolem neuen Paket :-)
\setenumerate[1]{label=$($\alph*$)$, ref=\thesatz$($\alph*$)$}
\setenumerate[2]{label=$($\arabic*$)$, ref=\theenumi$($\arabic*$)$}
\setenumerate[3]{label=$($\arabic*$)$}

\usetikzlibrary{patterns,calc,decorations.markings}

% coole eckige underbraces :-)
\newbox\brackd \newbox\bracku 
\setbox\brackd=\hbox {\vrule height 0pt depth 
3pt width 1pt}\ht\brackd=0pt\dp\brackd=1pt 
\setbox\bracku=\hbox {\vrule height 3pt depth 
0pt width 1pt}\ht\bracku=1pt\dp\bracku=0pt 
\def\downbrackfill 
{$\m@th\copy\brackd\leaders\vrule\hfill\copy\brackd$} 
\def\upbrackfill 
{$\m@th\copy\bracku\leaders\vrule\hfill\copy\bracku$}
\def\overbrack#1{\mathop{\vbox{\ialign{##\crcr\noalign{\kern3\p@} 
\downbrackfill\crcr\noalign{\kern3\p@\nointerlineskip} 
$\hfil\displaystyle{\kern1pt#1\kern1pt}\hfil$\crcr}}}\limits} 
\def\underbrack#1{\mathop{\vtop{\ialign{##\crcr 
$\hfil\displaystyle{\kern1pt#1\kern1pt}\hfil$\crcr\noalign 
{\kern3\p@\nointerlineskip} 
\upbrackfill\crcr\noalign{\kern3\p@}}}}\limits} 

\endinput
