I'm using this code to frame my theorems:
\documentclass[a4paper,12pt]{scrreprt}
\usepackage[table]{xcolor}
\usepackage{latexsym}
\usepackage{amsmath}
\usepackage[amsmath,thmmarks,framed]{ntheorem}
\usepackage{framed}
\newframedtheorem{beispiel}{Beispiel}[section]
\renewcommand*\FrameCommand{{\color{gray}\vrule width 3pt \hspace{15pt}}}
\begin{document}
\begin{beispiel}
[Antwortzeit]
Unter der Antwortzeit eines Dienstes versteht man den Zeitintervall zwischen dem Absenden einer Nachricht und dem Empfang der entsprechenden Antwort.
\end{beispiel}
\end{document}
I'm searching for a way to encode different theorems (example, proof, etc.) with different colors. But every time I try to create a new command I seem to "overwrite" the colors globally.
What would the best way to achieve this?
