2

In the example below, the color of the navigation bullets seems to be uncontrollable. The active section should be in red while the unactive sections should be in blue (with empty bullets). As you can see on the top right of the slide, while I would like the "ring" (empty bullet) to be in blue, it is instead a mix of red and blue (red being the color of the active section).

\documentclass{beamer}
\useoutertheme[subsection=false]{miniframes}
\setbeamercolor*{mini frame}{fg=red,bg=blue}
\setbeamercolor{section in head/foot}{parent=palette tertiary,fg=red}
\setbeamertemplate{section in head/foot shaded}{\color{blue}\usebeamertemplate{section in head/foot}}
\begin{document}
\section{Titre section}
\subsection{Titre sous-section}
\begin{frame}[t]{Titre planche} 
\begin{block}{Titre bloc}
\begin{itemize}
\item Un
\item Deux
\end{itemize}
\end{block}
\end{frame}
\section{Titre section}
\subsection{Titre sous-section}
\begin{frame}[t]{Titre planche} 
\begin{block}{Titre bloc}
\begin{itemize}
\item Un
\item Deux
\end{itemize}
\end{block}
\end{frame}
\end{document}

enter image description here

  • Won't changing \setbeamercolor*{mini frame}{fg=red,bg=blue} to \setbeamercolor*{mini frame}{fg=blue} produce what you want? – erik Nov 18 '15 at 0:28
  • @erik Yes. But the other one will turn blue, too. – cfr Nov 18 '15 at 0:48
  • Perhaps the OP can clarify the desired outcome. Should the bullet of the active frame be red or blue? Should the bullet of the inactive frame be solid blue or just a blue ring? – erik Nov 18 '15 at 0:59
  • @erik I want the bullets to be of the same color as the section titles. – pluton Nov 18 '15 at 1:11
  • @erik doesn't the big orange arrow and circle help clarify things? – cfr Nov 18 '15 at 1:12
2

I take it you want something like this:

blue other subsection unfilled circle

This is covered on page 69 of the manual.

\documentclass{beamer}
\useoutertheme[subsection=false]{miniframes}
\setbeamercolor*{mini frame}{fg=red,bg=blue}
\setbeamertemplate{mini frame in other section}[default][0]
\setbeamertemplate{mini frame in other subsection}[default][0]
\setbeamercolor{section in head/foot}{parent=palette tertiary,fg=red}
\setbeamertemplate{section in head/foot shaded}{\color{blue}\usebeamertemplate{section in head/foot}}
\begin{document}
\section{Titre section}
\subsection{Titre sous-section}
\begin{frame}[t]{Titre planche}
  \begin{block}{Titre bloc}
    \begin{itemize}
      \item Un
      \item Deux
    \end{itemize}
  \end{block}
\end{frame}
\section{Titre section}
\subsection{Titre sous-section}
\begin{frame}[t]{Titre planche}
  \begin{block}{Titre bloc}
    \begin{itemize}
      \item Un
      \item Deux
    \end{itemize}
  \end{block}
\end{frame}
\end{document}
  • It works. Thanks. Don't you think it should be easier to control? I have to confess that I was not aware of the \usebeamertemplate{mini frame in current section} command. – pluton Nov 18 '15 at 1:22
  • @pluton There may be a simpler way. The template is defined with an optional argument controlling the balance of fg to bg colour. However, this was easier than figuring out how to use that apparatus. But a Beamer expert would no doubt do better and simpler. I'd never heard of that command either. I just found it in Beamer's source code ;). – cfr Nov 18 '15 at 1:31
  • @pluton OK. I read the documentation instead. I've edited my answer accordingly. – cfr Nov 18 '15 at 1:37
  • It looks like your first solution better suits my needs. – pluton Nov 18 '15 at 1:53
  • @pluton Why? They should give identical output. They did for me. – cfr Nov 18 '15 at 2:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.