Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

ExampleBox

Is it possible? Or can I define it somehow?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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