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 use beamer together with \usetheme{Frankfurt}. My slides look like this:

enter image description here

Is that possible to change the color of the bullet in the header?

\documentclass[compress]{beamer}

\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\usepackage{lmodern}


\usetheme{Frankfurt}
\useinnertheme{default}
\useoutertheme{default}
\usecolortheme{default}       
\usefonttheme{professionalfonts}  

\setbeamercolor{title}{bg=white, fg=red}
\setbeamercolor{frametitle}{bg=white, fg=red}
\setbeamercolor{section in head/foot}{fg=black, bg=white}

\begin{document}

\section{Section 1}
\stepcounter{subsection}
\begin{frame}
\frametitle{Slide 1}
\end{frame}

\begin{frame}
\frametitle{Slide 2}
\end{frame}

\end{document}
share|improve this question
    
Please add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. –  Marco Daniel Feb 16 '13 at 19:00
    
Which color do you want to change exactly? Only the circles? Only the section title? Both? Only those in the current section? Subsection? Other (sub-)section? If you want to change the color of the whole head, you can use \setbeamercolor{section in head/foot}{fg=<foreground>, bg=<background>} as you did in your example. If you want to change the color of only a part of the head, I guess we need to patch a few mini frames templates. By the way, the theme Frankfurt calls internally a set of inner, outer and color theme. Is this intentionally? –  Qrrbrbirlbel Feb 16 '13 at 22:59
    
@Qrrbrbirlbel: I'd like to change the color of the current bullet only. By default, the current bullet is filled with black. I'd like it to be... red, say. I do not get your last question regarding the inner, outer, and color themes... Thanks! –  user7064 Feb 17 '13 at 7:13

1 Answer 1

up vote 4 down vote accepted

You can change the PGF code that is used to draw the circle. The filled circle is drawn in the beamer template mini frame.

By adding

\pgfsetcolor{<color>}

or

\pgfsetfillcolor{<color>}

to the PGF picture code one can set the <color> to be used for the whole circle or only the filling. (There’s also \pgfsetstrokecolor.)

I have used an additional color bullet that is let to red.

The starred version of \defbeamertemplate also activated the defined template so the second argument (Frankfurt) can be anything (except default).

I’m sure one can exploit all the possibilities a beamer template offers after reading the section 16.3 “Changing the Templates Used for Different Elements of a Presentation” of the beamer manual


The Frankfurt theme loads internally

\useoutertheme[subsection=false]{smoothbars}
\useinnertheme[shadow=true]{rounded}
\usecolortheme{orchid}
\usecolortheme{whale}

I do not see the point of additionally loading the default inner, outer and color theme. The output does not change anyway.

Code

\documentclass[compress]{beamer}

\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\usepackage{lmodern}


\usetheme{Frankfurt}
\usefonttheme{professionalfonts}  

\setbeamercolor{title}{bg=white, fg=red}
\setbeamercolor{frametitle}{bg=white, fg=red}
\setbeamercolor{section in head/foot}{fg=black, bg=white}
\colorlet{bullet}{red}
\defbeamertemplate*{mini frame}{Frankfurt}
{%
  \begin{pgfpicture}{0pt}{0pt}{0.1cm}{0.1cm}
%    \pgfsetcolor{bullet}% draw and fill in red
    \pgfsetfillcolor{bullet}% only fill in red
    \pgfpathcircle{\pgfpoint{0.05cm}{0.05cm}}{0.05cm}
    \pgfusepath{fill,stroke}
  \end{pgfpicture}%
}
[action]
{ \setbeamersize{mini frame size=.14cm,mini frame offset=.03cm} }

\begin{document}

\section{Section 1}
\stepcounter{subsection}
\begin{frame}
\frametitle{Slide 1}
\end{frame}

\begin{frame}
\frametitle{Slide 2}
\end{frame}
\end{document}

Output

enter image description here

share|improve this answer
    
Niiice :-) thank you! –  user7064 Feb 17 '13 at 8:01

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.