[beamerposter:121] border on beamercolorbox / setting width of beamercolorbox

2,362 views
Skip to first unread message

physicist

unread,
May 17, 2010, 12:46:36 PM5/17/10
to LaTeX beamerposter
Hi, I'm in the (beginning of the) process of creating a poster-style
for my group for latex. In the course of that I need to make a box at
the top with a different colored border. The solution that I have
right now is along the line

\begin{center}
\makebox[\textwidth]{ %am putting it inside a makebox for the
centering to have an effect
\begin{beamercolorbox}[sep=2pt,center, wd=\textwidth+2pt]{color1}
\begin{beamercolorbox}[center, wd=0.9\textwidth]{color2}

"stuff"

\end{beamercolorbox}
\end{beamercolorbox}
}

however, wd will not accept the extra +2pt, but instead simply writes
that next to my box. any solutions? as it is right now, both inner and
outer have the same width, so I don't get any border in the right side
(instead the inner box juts out 2 pts). if I remove the wd-part, it
spans the entire textwidth.
should I define a new width? I have also tried wd={expression}, to no
avail.

comments much appreciated.

--
You received this message because you are subscribed to the Google Groups "LaTeX beamerposter" group.
To post to this group, send email to beamer...@googlegroups.com.
To unsubscribe from this group, send email to beamerposter...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/beamerposter?hl=en.

physicist

unread,
Jun 2, 2010, 6:16:52 AM6/2/10
to LaTeX beamerposter
ok, so I solved it myself. fcolorbox{col1}{col2} will make a framed
colorbox around whatever, you jut have to put a minipage or something
similar inside of that to get the proper dimensions. I don't know if
there's a way to change the width of the frame, it's possible that
nested versions of colorbox (with minipages inside) is the only way to
get that functionality as well. I went away from using beamercolorbox
because my boxes were jumping around the page and I had very little
control over what was happening, I guess beamercolorbox is too
advanced an environment for that kind of tricks.

I have uploaded the finished product in case it solves any problems
others might have. the archive is called CFINtemplate.7z.
Reply all
Reply to author
Forward
0 new messages