1

I am currently writing a simple beamer template and have defined the footline and frametitle templates accordingly.

What I would like to add is a very simple sidebar (aligned to the right), showing the presentation title (bold) and a list of sections (current one black font, others gray).

Is there a simple way to achieve this without relying on themes like e.g. Marburg? My frametitle and footline templates span the whole paperwidth, using background images (with tikz) each. Marburg would overlap with my frametitle and footline, which is why I am not to keen on using it.

Minimal example:

\documentclass{beamer}
\usepackage{graphicx}
\usepackage{tikz}
%\usepackage{roboto}

\setlength{\unitlength}{1cm}
\beamertemplatenavigationsymbolsempty
\setbeamersize{sidebar width right=0.1\paperwidth}


\definecolor{sectioncol}{rgb}{0.99608,0.89412,0.75197}
\usebackgroundtemplate{
    \tikz[overlay, inner sep=0]
    \node[anchor=north west] {
        %\includegraphics[width=\paperwidth]{figures/header}
    };
}

\setbeamertemplate{frametitle}
{
    \leavevmode%
    \vskip 10pt
    \hskip 20pt
    \mbox{
        \textcolor{sectioncol}{\Large{\insertframetitle}}
    }
    \vskip 5pt
    \hskip 20pt
    \mbox{
        \textcolor{white}{\insertframesubtitle}
    }
}

\setbeamertemplate{footline}
{
    \leavevmode%
    \hbox{
        \parbox{20pt}{
            \hfill
        }
    }
    \hbox{
        \parbox{0.4\paperwidth}{
            test \\~\\
            \copyright test
        }
    }
    \hbox{
        \parbox{0.2\paperwidth}{
            slide <\insertpagenumber> 
        }
    }
    \hbox{
        \parbox{0.3\paperwidth}{
            \hfill
            %\includegraphics[height=0.1\paperheight]{figures/logo}
        }
    }
}

\begin{document}
\section{Graph Concepts}
\subsection{Test}
\begin{frame}
test
\end{frame}
\end{document}
0

Probably the simplest way to get what you want is \useoutertheme[right]{sidebar}. You can also set the width by passing the option width=<dimension> to sidebar, so you won't need \setbeamersize{sidebar width right=0.1\paperwidth}, but the title does not seem to auto-wrap to fit.

\documentclass{beamer}
\useoutertheme[right,width=0.1\paperwidth]{sidebar}
\usecolortheme{dove}
\usepackage{graphicx}
\usepackage{tikz}
%\usepackage{roboto}

\setlength{\unitlength}{1cm}
\beamertemplatenavigationsymbolsempty
%\setbeamersize{sidebar width right=0.1\paperwidth}


\definecolor{sectioncol}{rgb}{0.99608,0.89412,0.75197}
\usebackgroundtemplate{
    \tikz[overlay, inner sep=0]
    \node[anchor=north west] {
        %\includegraphics[width=\paperwidth]{figures/header}
    };
}

\setbeamertemplate{frametitle}
{
    \leavevmode%
    \vskip 10pt
    \hskip 20pt
    \mbox{
        \textcolor{sectioncol}{\Large{\insertframetitle}}
    }
    \vskip 5pt
    \hskip 20pt
    \mbox{
        \textcolor{white}{\insertframesubtitle}
    }
}

\setbeamertemplate{footline}
{
    \leavevmode%
    \hbox{
        \parbox{20pt}{
            \hfill
        }
    }
    \hbox{
        \parbox{0.4\paperwidth}{
            test \\~\\
            \copyright test
        }
    }
    \hbox{
        \parbox{0.2\paperwidth}{
            slide <\insertpagenumber> 
        }
    }
    \hbox{
        \parbox{0.3\paperwidth}{
            \hfill
            %\includegraphics[height=0.1\paperheight]{figures/logo}
        }
    }
}
\title{Presentation Title}
\begin{document}
\section{Graph Concepts}
\subsection{Test}
\begin{frame}
test
\end{frame}
\end{document}

Result: enter image description here

See Angle brackets in non-math-mode text regarding the angle brackets.

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.