Du stellst doch ganz explizit ein, dass die Darstellung des Zählers das Wort Beispiel enthält. Und nun willst du das nicht mehr? Versteh ich nicht.
Code:
\documentclass[12pt,a4paper]{scrbook}
\usepackage{amsfonts, amsmath, amssymb, latexsym, amscd}
\usepackage[framemethod=tikz]{mdframed}
\newcounter{theorem}
\renewcommand\thetheorem{\thechapter.\arabic{theorem}}
\makeatletter
\mdf@dolist{\mdf@do@stringoption}{%
{theoremtitle=={}}%
}
\renewrobustcmd\mdfcreateextratikz{%
\node[anchor=west,rounded corners,draw,thick,shading=axis,left color=gray!20,xshift=0.5cm,minimum height=.7cm,minimum width=2cm] at (P-|O)
{~\mdf@frametitlefont{Beispiel~\thetheorem}%
\ifdefempty{\mdf@theoremtitle}%
{~}%
{:~\mdf@theoremtitle~}%
};
}
\makeatother
\mdfdefinestyle{theoremstyle}{%
outerlinewidth=1pt,
innerlinewidth=0pt,
roundcorner=5pt,
linecolor=black,
shadow=false,
splittopskip=1cm, % THIS IS THE REQUIRED OPTION FOR SPACE ABOVE THE SPLIT ON THE SECOND PAGE
splitbottomskip=1cm, % THIS IS THE REQUIRED OPTION FOR SPACE BELOW THE SPLIT ON THE FIRST PAGE
innertopmargin=1.2\baselineskip,
skipabove={\dimexpr0.5\baselineskip+\topskip\relax},
needspace=3\baselineskip,
frametitlefont=\sffamily\bfseries,
settings={\global\refstepcounter{theorem}},
}
\newenvironment{bsp}[1][]
{\begin{mdframed}[style=theoremstyle,theoremtitle={#1}]
\relax}{
\end{mdframed}
}
\begin{document}
\chapter{Start}
\begin{bsp}\label{bsp1}
Bsp 1
\end{bsp}
\begin{bsp}\label{bsp2}
Bsp 2
\end{bsp}
\begin{bsp}\label{bsp3}
Bsp 3
\end{bsp}
\ref{bsp1} und \ref{bsp2} und \ref{bsp3}
\end{document}
Lesezeichen