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 trying to modify a Beamer template in order to have at the same time: 1) rounded boxes 2) shadows around the box 3) a defined line (without shading) between block title and block body (as in innertheme default)

First two points are easy (\useinnertheme[shadow=true]{rounded}), does anybody know how to solve the third problem?

Thanks

share|improve this question
    
My default inner theme doesn't have this line. Is there another example you're looking at? –  Matthew Leingang Nov 18 '10 at 15:50
    
May this question is something for you: tex.stackexchange.com/questions/52123/… –  Jörg Jul 3 '12 at 16:47
add comment

2 Answers 2

Something like this?

\documentclass{beamer}
\usecolortheme{rose}

\setbeamertemplate{blocks}[rounded][shadow=true]

% Disable shading between block title and block content
\makeatletter
\pgfdeclareverticalshading[lower.bg,upper.bg]{bmb@transition}{200cm}{color(0pt)=(lower.bg); color(4pt)=(lower.bg); color(4pt)=(upper.bg)}
\makeatother


\begin{document}

\begin{frame}
  \begin{block}{Title without shading}
  Block stuff, and shadow is still shaded!
  \end{block}
\end{frame}

\end{document}

enter image description here

share|improve this answer
    
@ricky13: Is this what you have been looking for? Otherwise, could you please provide more details on what you try to achieve? –  Daniel Jul 5 '12 at 20:27
    
Thanks, this was helpful. Could you explain a little what that command actually does. And any pitfalls of putting it into a custom theme file. –  set_kwr Jun 5 '13 at 21:26
add comment

Try this:

\addtobeamertemplate{block begin}{}{%
   {\usebeamercolor[fg]{block title}{\rule{\textwidth}{0.4pt}}}
}
share|improve this answer
add comment

Your Answer

 
discard

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