Danke für den Tipp.
Zu tcolorbox habe ich folgenden Code erstell:
Code:
\documentclass[11pt,a4paper]{article}
\usepackage{tcolorbox}
\tcbuselibrary{theorems, skins}
\begin{document}
\newtcbtheorem[number within=section]{bsp}{Beispiel}%
{colback=green!5,colframe=green!35!black,fonttitle=\bfseries}{th}
\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}
%\tcbset{colback=red!5!white,fonttitle=\bfseries}
\begin{tcolorbox}[enhanced,title=My title,
frame style={left color=black!75,
right color=black!15}]
This is a \textbf{tcolorbox}.
\end{tcolorbox}
\begin{tcolorbox}[enhanced,title=My title,
attach boxed title to top left=
{yshift=-3mm,yshifttext=-1mm,xshift=1cm},
boxed title style={size=small,colback=blue}]
This is a \textbf{tcolorbox}.
\end{tcolorbox}
\end{document}
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.
Ist dies möglich?
PS: Im anderen Forum hats nicht funktioniert...
Lesezeichen