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.

How can i use beamer commands and environments like beamercolorbox in other document classes like article or book?

Is there an alternative to beamercolorbox in another package or document class?

share|improve this question
    
possible duplicate of beamer blocks in ordinary article-style document –  percusse Mar 12 '12 at 1:22
add comment

1 Answer 1

up vote 6 down vote accepted

There is new package just released at CTAN which might be what you want. You need to properly install tcolorbox. The following MWE

%% This MWE is an extract from 
%% tcolorbox-example.tex: an example for tcolorbox
%% Contained in the tcolorbox zip file

\documentclass{article}
\usepackage{tcolorbox}
\begin{document}

\begin{tcolorbox}[colback=blue!5,colframe=blue!75!black,title=My title]
  My box with my title.
\end{tcolorbox}

\begin{tcolorbox}[colback=yellow!5,colframe=yellow!75!black,title=My title]
  I can do this also with a title.
  \tcblower
  Lower part of my box.
\end{tcolorbox}

\begin{tcolorbox}[colback=yellow!10,colframe=red!75!black,title=Here I am]
  \input{\jobname_ex.tex}
\end{tcolorbox}

Produces

Sample tcolorbox

\end{document}
share|improve this answer
add comment

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.