# Add index to top of Simple Beamer theme

I want to add index (similar to Darmstadt theme) to top of Simple Beamer theme.

What is the approach to do this? Do I need to modify sty file of Simple or I need another approach?

Update: I add sty file and a minimum demo to use it at the end of this question.

beamerthemesimple.sty

% Copyright 2015 by Facundo Muñoz
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%

\ProvidesPackage{beamerthemesimple}

%\def\beamer@simplecolor{gris}
%\DeclareOptionBeamer{color}{\beamer@simplecolor=#1}
%\ExecuteOptionsBeamer{gris}
%\ProcessOptionsBeamer

\usepackage{tikz}

\input xkeyval

\newcommand<>{\includeoverlaygraphics}[2][]
{
\begin{tikzpicture}
\alt#3{\node[opacity=1] {\includegraphics[#1]{#2}};}
{\node[opacity=.15] {\includegraphics[#1]{#2}};}
\end{tikzpicture}
}

% These define macros \KV@setwatermark@hoffset that take one argument
% which is processed by the last piece of codes into braces
\def\@hos{}
\def\@vos{}
\def\@alpha{} % This one does not work. Why?
\define@key{setwatermark}{hoffset}[\def\@hos{.}]{\def\@hos{\hspace*{#1}}}
\define@key{setwatermark}{voffset}[\def\@vos{.}]{\def\@vos{\vspace*{#1}}}
\define@key{setwatermark}{alpha}[\def\@alpha{0.7}]{\def\@alpha{#1}}

\def\setwatermark{\@ifnextchar[\@setwatermark{\@setwatermark[]}}
\def\@setwatermark[#1]#2{%
\setkeys{setwatermark}{#1}%
\def\@watermark{#2}
}
% \newcommand{\setwatermark}[1]{\def\@watermark{#1}}
\setwatermark{}   % Empty initialization

\mode<presentation>

% http://www.colorcombos.com/color-scheme-275.html
\definecolor{normal}{HTML}{797979}  % gris medio
\definecolor{fondo}{HTML}{e6e6e6}  % gris claro

\setbeamercolor{normal text}{bg=white,fg=normal}
\setbeamercolor*{block body}{bg=fondo,fg=normal}

\usetheme{default}
%  \usecolortheme[named=gris]{structure}
\usefonttheme{structurebold}

% overlays semitransparentes
\setbeamercovered{transparent}

% incluir el contador de diapos
\setbeamertemplate{footline}[frame number]

% eliminar íconos de nav.

% bloques

% especificación global para listas

% márgenes
\setbeamersize{text margin left=0.4cm,text margin right=0.4cm}

\setbeamertemplate{background}{
\parbox[c][\paperheight]{\paperwidth}{%
\vfill \hfill
\begin{tikzpicture}
%\node[opacity=\@alpha]  % not working. why?
\node[opacity=.07]
{
\@watermark
};
\end{tikzpicture}
\@hos

\@vos
}
}

\mode
<all>


demo.tex

\documentclass{beamer}

\usetheme{simple}

\usepackage{lmodern}
\usepackage[scale=2]{ccicons}

\title{A simple beamer theme}
\subtitle{}
\date{\today}
\author{Facundo Mu\~noz}
\institute{\url{http://github.com/famuvie}}

\begin{document}

\maketitle

\begin{frame}{simple}
\framesubtitle{A beamer theme}

\texttt{simple} is a minimalist Beamer theme that features

\begin{columns}
\column{.5\textwidth}
\begin{itemize}
\item a \alert{watermark} logo in the background
\end{itemize}

\column{.5\textwidth}
\begin{block}{And of course...}
blocks, columns, and all Beamer power
\end{block}
\end{columns}

\end{frame}
\end{document}

• I am adding a screenshot Feb 8 '17 at 9:33
• Can you also add a MWE? Feb 8 '17 at 9:36
• Now the question is updated. Feb 8 '17 at 9:47
• My question is about where how to implement index of Darmstad template. Where can I find the code? Feb 8 '17 at 9:52
• Thank you very much for the bounty! That was really nice of you! Feb 20 '17 at 16:53

The headline used by the Darmstadt theme comes from the smoothbars outer theme:

\documentclass{beamer}

\usetheme{simple}
\useoutertheme{smoothbars}

\usepackage{lmodern}
\usepackage[scale=2]{ccicons}

\title{A simple beamer theme}
\subtitle{}
\date{\today}
\author{Facundo Mu\~noz}
\institute{\url{http://github.com/famuvie}}

\begin{document}

\maketitle

\section{test}
\subsection{test2}
\begin{frame}{simple}
\framesubtitle{A beamer theme}

\texttt{simple} is a minimalist Beamer theme that features

\begin{columns}
\column{.5\textwidth}
\begin{itemize}
\item a \alert{watermark} logo in the background
\end{itemize}

\column{.5\textwidth}
\begin{block}{And of course...}
blocks, columns, and all Beamer power
\end{block}
\end{columns}

\end{frame}
\end{document}


Edit:

To remove the subsection name, use \useoutertheme[subsection=false]{smoothbars} instead.

• I am very happy with your answer, how can I give you some reputation as a "big thank you" :-) ? Feb 8 '17 at 10:04
• Do you know how can I hide the subsection name? Feb 8 '17 at 15:49
• @Woeitg Easy :) see the edit Feb 8 '17 at 15:52
• tnx for quick answer! I get this error LaTeX Error: Option clash for package beamerouterthemesmoothbars.. I tried the solution here but it doesn't remove any subsection. Feb 8 '17 at 16:06
• @Woeitg Seems like you are trying to load the theme multiple times? Just do it once. Feb 8 '17 at 16:08