I'm trying to adjust ntheorem such that I get my theorems as in the attachment. I haven't succeeded at this because \theoremframecommand only take one argument and not two. (In my code, Theorem 1 is below the statement of the theorem)
Here is my preamble
Code: Select all
\usepackage[utf8x]{inputenc}
\usepackage[dutch]{babel}
\usepackage{graphicx,textpos, a4wide}
\usepackage[svgnames]{xcolor}
\usepackage{helvet, amssymb}
\usepackage{tikz}
\usetikzlibrary{shadows}
\usetikzlibrary{shapes}
\usetikzlibrary{decorations}
\usepackage{framed}
\usepackage[framed, amsthm]{ntheorem}
\theoremclass{Theorem}
\theoremstyle{empty}
\newcommand{\thmbox}[1]{
\tikzstyle{thmbox} = [rectangle, rounded corners, draw=black, fill=Gray!20, inner sep=15pt, drop shadow={fill=black, opacity=.5}]%
\tikzstyle{fancytitle} =[fill=white, text=black, rectangle, rounded corners, draw= black]%
\noindent%
\begin{tikzpicture}%
\node [thmbox] (box){%
\begin{minipage}{.91\textwidth}%
\textit{#1}%
\end{minipage}%
};%
\node[fancytitle, right=10pt] at (box.north west) {\textbf{Theorem 1}%
};%
\end{tikzpicture}}
\def\theoremframecommand{\thmbox}
\newshadedtheorem{theorem}{Theorem}
And also, why do I need to use a newshadedtheorem statement for my framedtheorem instead of newframedtheorem. It doesn't seem right...
Greetz,
Elfangor