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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I create a custom beamer style where my header contains only the title of the slide, and my footer - the smoothbars "dots" style of how far the presentation has progressed, i.e.

(((TITLE)))

Frame content

(((what you get above the title if you use \useoutertheme[subsection=false]{smoothbars}, but I want it in the footer)))

I'm using Madrid as my basis style at the moment, but I'm happy to use another style if it can't be customized.

share|improve this question

migrated from stackoverflow.com Jul 14 '12 at 21:07

This question came from our site for professional and enthusiast programmers.

Starting from the Madrid theme, one could redefine the footline template (taking immediately into account to suppress the subsections, as it is possible to see from \useoutertheme[subsection=false]{smoothbars}).

Code:

\documentclass[compress]{beamer}
\usepackage{lmodern}
\usetheme{Madrid}

\setbeamercolor{section in head/foot}{parent=palette quaternary}

\makeatletter
\setbeamertemplate{footline}
{%
\vskip-9ex%
\begin{beamercolorbox}{}
\hfill\usebeamercolor[fg]{navigation symbols dimmed}%
    \insertslidenavigationsymbol
    \insertframenavigationsymbol
    \insertsubsectionnavigationsymbol
    \insertsectionnavigationsymbol
    \insertdocnavigationsymbol
    \insertbackfindforwardnavigationsymbol
  \end{beamercolorbox}%    
  \begin{beamercolorbox}[ht=3ex,dp=4ex]{section in head/foot}%
    \insertnavigation{\paperwidth}
  \end{beamercolorbox}%
}%
\makeatother

\title{My title}
\author{My name}
\institute{My institute}

\begin{document}
\section{First section}
\subsection{a}
\begin{frame}{Title}
hello
\end{frame}
\subsection{b}
\begin{frame}{Another title}
hello
\end{frame}

\section{Second section}
\subsection{a}
\begin{frame}{Title}
hello
\end{frame}
\subsection{b}
\begin{frame}{Another title}
hello
\end{frame}
\end{document}

which gives:

enter image description here

share|improve this answer

Your Answer

 
discard

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