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'm using a block for emphasizing different pieces of information. I'd like those pieces to be constrained to the block dimensions and to use the columns environment, but I don't know how to get the block dimensions in order to constraint the column's width.

\begin{block}
   \begin{columns}[t]
      \column{.3XXX} 
         Blah blah
      \column{.3XXX} 
         Blah blah
      \column{.3XXX} 
         Blah blah
   \end{columns}
\end{block}

How can I specify the column width based on the block width?

share|improve this question
add comment

1 Answer 1

up vote 3 down vote accepted

Add the totalwidth=\linewidth option to your columns environment. Then you can use \linewidth as reference.

example

\documentclass{beamer}
\usetheme{Rochester}
\begin{document}
\begin{frame}
  \frametitle{Columns in block}
  \begin{block}{A}
    \begin{columns}[totalwidth=\linewidth,t]
      \column{.3\linewidth} 
      Blah blah
      Blah blah
      Blah blah
      \column{.3\linewidth} 
      Blah blah
      Blah blah
      Blah blah
      Blah blah
      \column{.3\linewidth} 
      Blah blah
      Blah blah
      Blah blah
      Blah blah
    \end{columns}
  \end{block}
\end{frame}
\end{document}
share|improve this answer
    
Is there also a straightforward way to determine the height of a block? –  Andrew Uzzell Nov 3 '12 at 21:28
    
@AndrewUzzell For what purpose? –  Paul Gaborit Nov 3 '12 at 23:07
    
I want to use it to set the height of an \overlayarea. If this is non-trivial, I will ask it as a new question. –  Andrew Uzzell Nov 5 '12 at 11:24
    
@AndrewUzzell Ok. You can ask a new question because this problem is not related to the current question/answer. –  Paul Gaborit Nov 5 '12 at 13:31
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.