I need to use framed theorem environments the way they are made in Make an Example and shaded box like in the book.
The realization with \usepackage[framemethod=TikZ]{mdframed}
is working fine.
But now, I have to implement this in a ready written script being made with \documentclass{article}
and \usepackage{beamerarticle}
.
The predefined theorem environments in german language Satz
, Beispiel
and so on are used. I already tried using \setbeamertemplate{theorem begin}{...}
and \setbeamertemplate{theorem end}{...}
for inserting those boxing commands for example with
\setbeamertemplate{theorem begin}{\begin{mdframed}%
[linecolor=yellow,outerlinewidth=3pt,backgroundcolor=red!10,roundcorner=15pt,%
skipabove=\baselineskip,skipbelow=\baselineskip]}%
\setbeamertemplate{theorem end}{\end{mdframed}}
but it is not working.
Are there other ways, as I do not want to rename all used environment and make new ones?
I found a solution
\usepackage{etoolbox}
\BeforeBeginEnvironment{Satz}{\begin{mdframed}[linecolor=yellow,outerlinewidth=3pt,backgroundcolor=red!10,roundcorner=15pt,%
skipabove=\baselineskip,skipbelow=\baselineskip]\vspace{-0.5cm}}
\AfterEndEnvironment{Satz}{\end{mdframed}}
but others are still welcome.
notheorems
option to beamerarticle and define the environments Satz,... entirely yourself. Not nice, but at least you won't have to go though the entire source. – Ulrich Schwarz Dec 20 '11 at 11:43etoolbox
-way.. or another better one - which might come soon here, hopefully. Thanks. – Bastian Ebeling Dec 20 '11 at 19:48