%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% defenv.tex
% definitions of environments and counters
%
% author:          K.H. Hofmann
% e-mail:          karlheinrich.hofmann@hs-rm.de
% created:         10.02.1995
% last revision:   27.02.2013, 17.11.2009
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% environments
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% BEISPIEL
\newcounter{beispiel}[chapter]        % Z"ahler f"ur die Beispielumgebung
\setcounter{beispiel}{0}
\renewcommand{\thebeispiel}{\arabic{chapter}.\arabic{beispiel}}
\newenvironment{beispiel}[1]%
{\begin{quote}{\large \sc Beispiel} \refstepcounter{beispiel}
                             \thebeispiel :
                             {\bf #1} \\}%
{\bspende \end{quote}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% EXAMPLE
\newcounter{example}[chapter]               % counter example environment
\setcounter{example}{0}
\renewcommand{\theexample}{\arabic{chapter}.\arabic{example}}
\newenvironment{example}[1]%
{\begin{quote}{\large \sc Example} \refstepcounter{example}
                             \theexample :
                             {\bf #1} \\}%
{\bspende \end{quote}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% AUFGABE
\newcounter{aufgabe}[section]
\setcounter{aufgabe}{0}
\renewcommand{\theaufgabe}{\arabic{section}.\arabic{aufgabe}}
\newenvironment{aufgabe}[0]%
{\par\noindent {\large \bf Aufgabe} 
 \refstepcounter{aufgabe}{\bf \theaufgabe  }
 \\}{}
% L"osung
\newcounter{loesung}[section]
\setcounter{loesung}{0}
\renewcommand{\theloesung}{\arabic{section}.\arabic{loesung}}
\newenvironment{loesung}[0]%
{\par\noindent{\large \bf L\"osung Aufgabe}
 \refstepcounter{loesung}{\bf \theloesung }
 \\}{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Ventry, S.64, Goosens et al., Der Latex Begleiter
\newenvironment{Ventry}[1]%
{\begin{list}{}{\renewcommand{\makelabel}[1]{\textbf{##1}\hfil}%
  \settowidth{\labelwidth}{\textbf{#1}}%
  \setlength{\leftmargin}{\labelwidth+\labelsep}}}%
{\end{list}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Counter
\newcounter{roemziff}                 % fuer roemische Ziffern
\newcommand{\bspende}{\rule{1.2ex}{1.2ex}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


