0

When using Beamer with theme having sidebars and hiding inactive subsections, there is an unnecessary distance (looks like \baselineskip) between the already passed section and the next section. It looks like Beamer hides the subsection names, but not the vertical space used below the subsection names, and this wastes a lot of valuable space when I have several sections, say for a plenary talk. How can I omit that space? (I think the indentation separates enough the sections and subsections optically, so actually no need to make further separation, a normal line distance would be enough.)

\documentclass{beamer}
\usetheme[hideothersubsections] {Goettingen}
\usecolortheme{spruce}

\begin{document}

\section{Sec one}
\subsection{OneOne}
\begin{frame}{Frame Number 1}{Frame 1}
{1}
\end{frame}
\subsection{OneTwo}
\begin{frame}{Frame Number 2}{Frame 2}
{2}
\end{frame}
\section{Sec two}
\subsection{TwoOne}
\begin{frame}{Frame Number 3}{Frame 3}
{3}
\end{frame}
\end{document}
2

The default templates section in sidebar and section in sidebar shaded add a vertical space of 1ex. You can re-define those 2 templates to remove it.

\makeatletter
\setbeamertemplate{section in sidebar}{\vbox{%
    \beamer@sidebarformat{3pt}{section in sidebar}{\insertsectionhead}}}
\setbeamertemplate{section in sidebar shaded}{\vbox{%
    \beamer@sidebarformat{3pt}{section in sidebar shaded}{\insertsectionhead}}}
\makeatother

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.