Zitat von
Oelle74
Ich hätte nun aber gerne Folgendes:
* Titel soll wie bei 3. Box attached sein
* Diese attached Titelbox soll wie beim 2. Beispiel einen Farbverlauf haben
* Diese attached Titelbox soll eine automatische Nummerierung (theorem) wie im 1. Beispiel haben.
so ich Dich recht verstanden habe, etwa
Code:
\documentclass[11pt,a4paper]{article}
\usepackage{tcolorbox}
\tcbuselibrary{theorems, skins}
\newtcbtheorem[number within=section]{bsp}{Beispiel}%
{enhanced,colframe=green!35!black,fonttitle=\bfseries,
attach boxed title to top left={yshift=-3mm,yshifttext=-1mm,xshift=1cm},
boxed title style={size=small,
interior style={left color=red!80!black, right color=blue!75!black}}%
}{th}
\begin{document}
\begin{bsp}{This is my title}{theoexample}
This is the text of the theorem. The counter is automatically assigned and,
in this example, prefixed with the section number.
\end{bsp}
\end{document}
wobei, mit dem Titel dieses Threads hat das nur noch wenig gemein...
VG
Lesezeichen