Beamer - Customize Mini Frame Navigation - TeX - LaTeX Stack Exchange2
Beamer - Customize Mini Frame Navigation - TeX - LaTeX Stack Exchange2
I'm trying to create my own beamer theme; I want to use a mini frame navigation in headline (included by using
\insertnavigation ) but the colors not working as I want them yet.
When going forward in the presentation, the current active section is shown in black. How can I change its color to the gold I've
already used?
Also Id like to change the shading of inactive sections to get them a little brighter than they are at the moment.
=====================================================================
If you have any ideas on how to change it in the way I want it to be or suggestions / improvements to my code, please let me
know ;)
https://tex.stackexchange.com/questions/57609/customize-mini-frame-navigation 1/4
11/9/2017 beamer - Customize mini frame navigation - TeX - LaTeX Stack Exchange
diabonas JvA
19.5k 3 74 120 41 1 2
1 \insertframetitle won't be recognized inside the headline template. You need to set the
headline and frametitle templates separately. Gonzalo Medina May 28 '12 at 14:57
Well he's giving me a compile error, but basically it works ;) He inserts the frame title as asked. Could u
show me how to separate them correctly? JvA May 28 '12 at 15:42
You should use \setbeamertemplate{frametitle} as you did for the headline : you have to remove
part of the code in your actual headline and put it in the frametitle . Claudio Fiandrino May 28 '12
at 15:46
Mmmhh yeah, that works, but doesn't give the result I want ... the frame title is supposed to be only in
the headline, not on the frame itself a second time. JvA May 28 '12 at 16:02
@JvA: it is just matter of defining in a proper way the vertical spacing. I think it is perfectly possible get
your desired result with this approach. Claudio Fiandrino May 28 '12 at 16:09
1 Answer
As said in the comments, the right way to proceed is to define separately the two
templates headline and frametitle .
Here is a possible implementation (as test image I used the logo of my university):
\documentclass{beamer}
\usepackage{lmodern}
%=====================================================================
% Color definition
%=====================================================================
% Templates - headline, frametitle
\makeatletter
% Komprimiert die miniframe Kreise auf eine Linie
\beamer@compresstrue
\makeatother
https://tex.stackexchange.com/questions/57609/customize-mini-frame-navigation 2/4
11/9/2017 beamer - Customize mini frame navigation - TeX - LaTeX Stack Exchange
\begin{beamercolorbox}[sep=4pt]{section in head/foot}
\insertframetitle
\end{beamercolorbox}
}
}
\begin{document}
\section{Test 1}
\subsection{first}
\begin{frame}{A title}
hello
\end{frame}
\subsection{second}
\begin{frame}{A second title}
hello
\end{frame}
\section{Test 2}
\subsection{first}
\begin{frame}{Another title}
hello
\end{frame}
\subsection{second}
\begin{frame}{A second title}
hello
\end{frame}
\section{Test 3}
\subsection{first}
\begin{frame}{Last title}
hello
\end{frame}
\subsection{second}
\begin{frame}{A second title}
hello
\end{frame}
\subsection{second}
\begin{frame}{A third title}
hello
\end{frame}
\end{document}
https://tex.stackexchange.com/questions/57609/customize-mini-frame-navigation 3/4
11/9/2017 beamer - Customize mini frame navigation - TeX - LaTeX Stack Exchange
https://tex.stackexchange.com/questions/57609/customize-mini-frame-navigation 4/4