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 the Warsaw beamer theme and try to customize it because the section headline is way too big for my presentation (about 7 sections). I found a way to display only the section names in the headline. It looks pretty much like I want it to except the headline is not colored. The highlighting of the sections works but the colors won't. I'm not quite sure what the problem is. I use a beamercolorbox but it's just white. In the footline the exact same code produces a colored box.

The code I use for the headline:

\setbeamertemplate{headline}
{%
\begin{beamercolorbox}[wd=\paperwidth,ht=5ex,dp=3.5ex]{sec}%
    \raggedright%
    \hspace*{2em}%
    {\insertsectionnavigationhorizontal{0.7\textwidth}{}{}}%
\end{beamercolorbox}%
}

enter image description here

I'd really appreciate your help,

share|improve this question
    
Welcome to TeX.sx! No need to add thanks, simply upvote any good answers you may receive. –  Peter Jansson Feb 26 '13 at 14:03

1 Answer 1

up vote 2 down vote accepted

You have to setup the color used for the headline template

\setbeamercolor{headline}{fg=yellow,bg=red}

should draw your box with a red background and a yellow text.

share|improve this answer
    
Your answer works, but the problem still exists. The thing is the name of the beamercolorbox. It turns out you can't give it any name you want. (Old habit from programming) But your answer brought me to the solution. –  Prometheus Feb 26 '13 at 17:20
    
BTW, you won a lottery "Make a Post Number 100000 on TeX.SX" :) –  yo' Feb 27 '13 at 7:41
    
@Prometheus I don't really understand what you mean. In beamer, there are a number of named templates that do some defined job; headline is one of them. So you can't rename it "myheadline" without providing all the necessary code. –  Lionel MANSUY Feb 27 '13 at 8:22

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.