4

I would like use \examplebox{}{} command from Beamer in document class Article.

ExampleBox

Is it possible? Or can I define it somehow?

4

You can use mdframed for beamer-like boxes and for quite a lot more.

\documentclass{article}
\usepackage[framemethod=tikz]{mdframed}
\usetikzlibrary{shadows}
\mdfdefinestyle{beamerlikebox}{
leftmargin=1cm,
rightmargin=1cm,
shadow=true,
roundcorner=5pt,
backgroundcolor=gray!30,
linecolor=gray!30,
shadowcolor=gray,
shadowsize=6pt
}

\begin{document}

\begin{mdframed}[style=beamerlikebox]
``Two beers or not two beers, details...''

{\hfill --- Shakes beer}
\end{mdframed}

\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.