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.

Possible Duplicate:
Can I have framed blocks in beamer?

Is it possible to increase the border width of a block? I have identified the following section of code as being responsible for the block layout:

\setbeamertemplate{block begin}{ 
 \vskip.75ex
  \begin{beamercolorbox}[rounded=true,shadow=true,leftskip=1.5cm,colsep*=.75ex]{block title}%
        \usebeamerfont*{block title}\insertblocktitle
      \end{beamercolorbox}%
      {\ifbeamercolorempty[bg]{block body}{}{\nointerlineskip\vskip-0.5pt}}%
      \usebeamerfont{block body}%
      \begin{beamercolorbox}[rounded=true,shadow=true,sep=.75ex,vmode]{block body}%
    %\ifbeamercolorempty[bg]{block body}{\vskip-.25ex}{\vskip-.75ex}\vbox{}%
      }
     \setbeamertemplate{block end}{
      \end{beamercolorbox}
}

However, the only things I can seem to change is foreground and background color, and shadow. But what I want to do is make a strong, colored border around the whole block. Is this possible?

share|improve this question
1  
beamercolorbox does not have this option. The options for it are listed on pages 124-125 of the beamer manual. To get boxes with frames you can use TikZ or mdframed. –  Roelof Spijker Apr 10 '12 at 12:12
add comment

marked as duplicate by Gonzalo Medina, diabonas, Roelof Spijker, percusse, lockstep Apr 10 '12 at 16:15

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

As an example, with TikZ you could create your own block environment to look something like this:

\documentclass{beamer}
\usepackage{tikz}
\usepackage{lipsum}
\usetheme{Warsaw}
\newsavebox\blockbox
\newenvironment{myblock}{%
  \begin{lrbox}{\blockbox}%
    \begin{minipage}{.9\textwidth}
}{
    \end{minipage}
  \end{lrbox}
  \tikz\node[
    fill=green!40!blue!20,
    draw=red!30,
    line width=10pt,
    inner sep=7.5pt,
    rounded corners,
    outer sep=0pt,
  ]{\usebox\blockbox};
}
\begin{frame}
  \begin{myblock}
    \lipsum[1]
  \end{myblock}
\end{frame}
\end{document}

Which looks like this:

beamer block

You could modify the code to supply arguments to the environment that are passed on to the TikZ node that is drawn.

share|improve this answer
add comment

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