\clubpenalty=4500 %   Weniger Schusterjungen
\widowpenalty=10000 % Keine Hurenkinder
\parindent=0pt                                % nicht einr{\"u}cken
\parskip=3pt                                 % Abstand bei Abs{\"a}tzen

\setlength{\textheight}{22.5 cm}
\setlength{\textwidth}{14 cm}
\setlength{\evensidemargin} {0cm}
\setlength{\oddsidemargin} {0cm}%1cm
\setlength{\topmargin} {1cm}


%Index in IT
\newcommand*{\indexbf}[1]{\index{#1}{\bf #1}}
\DeclareMathOperator{\LT}{\text{\textsc{lt}}}
\DeclareMathOperator{\LC}{\text{\textsc{lc}}}
\DeclareMathOperator{\LM}{\text{\textsc{lm}}}

\DeclareMathOperator{\Vfunc}{\text{\textbf{\textsc{v}}}}
\DeclareMathOperator{\Ifunc}{\text{\textbf{\textsc{i}}}}

\newcommand*{\abs}[1]{\ensuremath{\left\arrowvert#1\right\arrowvert}}
\newcommand*{\absover}[1]{\ensuremath{\left\arrowvert\overline{#1}\right\arrowvert}}
\newcommand*{\anf}[1]{{\glqq}#1{\grqq}}

% Z{\"a}hler f{\"u}r die enumerate-Umgebung
\renewcommand{\labelenumi}{(\roman{enumi})}
\renewcommand{\labelenumiii}{\arabic{enumiii}.}

%Z{\"a}hler f{\"u}r Equations einstellig
\renewcommand{\theequation}{\arabic{equation}}
%\numberwithin{equation}{section}



\newtheoremstyle{plainvm}% name
  {3pt}%      Space above
  {3pt}%      Space below
  {\itshape}%         Body font
  {}%         Indent amount (empty = no indent, \parindent = para indent)
  {\bf}% Thm head font
  {}%        Punctuation after thm head
  {\newline}%     Space after thm head: " " = normal interword space;
        %       \newline = linebreak
  {}%         Thm head spec (can be left empty, meaning `normal')

\newtheoremstyle{beispielvm}% name
  {3pt}%      Space above
  {1pt}%      Space below
  {}%         Body font
  {}%         Indent amount (empty = no indent, \parindent = para indent)
  {\bf}% Thm head font
  {}%        Punctuation after thm head
  {\newline}%     Space after thm head: " " = normal interword space;
        %       \newline = linebreak
  {}%         Thm head spec (can be left empty, meaning `normal')

\theoremstyle{plainvm}

\newtheorem{satz}{Satz}[chapter]%
\newtheorem{lemma}[satz]{Lemma}%
\newtheorem{korollar}[satz]{Korollar}%
\newtheorem{definition}[satz]{Definition}%

\theoremstyle{beispielvm}%remark}
\newtheorem{beispiel}[satz]{Beispiel}

\theoremstyle{plainvm}
\newtheorem{bemerkung}[satz]{Bemerkung}
\newtheorem{proposition}[satz]{Proposition}
\newtheorem{vermutung}[satz]{Vermutung}
\newtheorem{algorithmus}[satz]{Algorithmus}

%\newenvironment{beweis}{{\noindent \bf Beweis \\}}{{\hfill$\Box$\par\smallbreak}}
%\newenvironment{beweis}[1][Beweis]
%  {\pushQED{\qed}%
%  \normalfont% \topsep6\p@\@plus6\p@\relax
  %\trivlist
  %\item[
  %\hskip\labelsep
 %       \textbf{#1}%]
  %      \newline
    %\item%\ignorespaces
%}{%
%  \popQED\par%\endtrivlist%\@endpefalse
%}
\renewcommand{\proofname}{Beweis}

\newcommand {\Algo}[5]
            {{\goodbreak\topsep0pt\partopsep0pt
            \begin{algorithmus} \label{#1}
                {\em (#2)} %\vspace{-9pt}
                \begin{list}{}{\leftmargin2.0cm\def\makelabel##1{{\em \underline{##1}:\hfill}}
                    \labelwidth1.8cm\labelsep.2cm\itemsep.2cm}
                    \item[Input] #3 \item[Output] #4 \vspace{6pt} #5
                \end{list}
            \end{algorithmus}
            \goodbreak}}
%end von J{\"u}rgens


%Doppelpunkt auf Mitte zentrieren, f{\"u}r " := " -Zeichen
\mathchardef\ordinarycolon\mathcode`\:
  \mathcode`\:=\string"8000
  \begingroup \catcode`\:=\active
    \gdef:{\mathrel{\mathop\ordinarycolon}}
  \endgroup

% Abk{\"u}rzungen
\newcommand*{\cmenge}{\ensuremath{\mathbb{C}}}%
\newcommand*{\nmenge}{\ensuremath{\mathbb{N}}}%
\newcommand*{\qmenge}{\ensuremath{\mathbb{Q}}}%
\newcommand*{\rmenge}{\ensuremath{\mathbb{R}}}%
\newcommand*{\zmenge}{\ensuremath{\mathbb{Z}}}%
\newcommand*{\zmengen}{\ensuremath{\zmenge^n_{\ge0}}}%
\newcommand*{\nmengen}{\ensuremath{\nmenge^n}}%
\newcommand*{\cmengen}{\ensuremath{\cmenge^n}}%

\newcommand*{\rmengex}{\ensuremath{\rmenge[\overline{x}]}}%
\newcommand*{\Punkte}{\ensuremath{\goP}}%
\newcommand*{\Geraden}{\ensuremath{\goG}}%
\newcommand*{\Kreise}{\ensuremath{\goK}}%
\newcommand*{\Geradenwinkel}{\ensuremath{\goW}}%
\newcommand*{\ma}{\textsl{Mathematica}}%
%Macros
\newcommand*\gb[0]{{Gr{\"o}bnerbasis}}%
\newcommand*\gbn[0]{Gr{\"o}bnerbasen}%
\newcommand*\gbm[0]{Gr{\"o}bnerbasismethode}%

\newcommand*\nlvm[0]{\hfill\newline}%
\newcommand*\urlvm[1]{\texttt{#1}}%

%\renewcommand*{\noalign}[1]{}
\newcommand*{\IndentingNewLine}{}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Im Draftmode werden die Bilder nur als Rahmen dargestellt,
%% und alle Fixmes sind sichtbar (Im Text und im Index)
%% Diese Zeile steht jetzt in der Datei draft.tex, da dies
%% ein bedingtes kompilieren erm{\"o}glicht.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\newboolean{draft}
%\input{draft}
%\newcommand{\draftfoot}{\ifthenelse%
%  {\boolean{draft}}%
%  {\Large\textcolor{red}{\textbf{Entwurfsversion}}}%
%  {}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Draftmode
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\newcommand*{\draftmode}{\ifthenelse{\boolean{draft}}{\psdraft}{}}
%\newcommand*{\draftmodeoff}{\ifthenelse{\boolean{draft}}{\psfull}{}}
