I want to reduce the font size of my beamer sidebar in the berkeley theme because is not enough for all my sections. How can I save some space to fit all my titles?

enter image description here

1 Answer 1


Corrected answer with respect to @Gonzales Medinas comment:

Just set the beamer fonts ...section in sidebar.

\setbeamerfont{section in sidebar}{size=\fontsize{2}{4}\selectfont}
\setbeamerfont{subsection in sidebar}{size=\fontsize{2}{4}\selectfont}
\setbeamerfont{subsubsection in sidebar}{size=\fontsize{2}{4}\selectfont}

With the first parameter of fontsize you can change the size of the font and with the second one the distance between the elements.

Original answer:

You have to set the beamer templates section in sidebar and section in sidebar shaded (change \fontsize{2}{2} to your liking). Probably it also makes sense to reduce the vksip between the sections. This can be done in the beamer@sidebarformat macro. I also added this to the MWE.


  \begin{beamercolorbox}[wd=\beamer@sidebarwidth,leftskip=#1,rightskip=1ex plus1fil,vmode]{#2}
    \vskip-3ex% Change vskip between section here 

\setbeamertemplate{section in sidebar}
    \beamer@sidebarformat{3pt}{section in sidebar}{\fontsize{2}{2} \selectfont \insertsectionhead}%

\setbeamertemplate{section in sidebar shaded}
    \beamer@sidebarformat{3pt}{section in sidebar shaded}{\fontsize{2}{2} \selectfont \insertsectionhead}%


\section{Section 1}
\begin{frame}{Frame 1}
    Frame 1

\section{Section 2}
\begin{frame}{Frame 2}
    Frame 2

\section{Section 3}
\begin{frame}{Frame 3}
    Frame 3

\section{Section 4}
\begin{frame}{Frame 4}
    Frame 4

\section{Section 5}
\begin{frame}{Frame 5}
    Frame 5

\section{Section 6}
\begin{frame}{Frame 6}
    Frame 6

\section{Section 7}
\begin{frame}{Frame 7}
    Frame 7

\section{Section 8}
\begin{frame}{Frame 8}
    Frame 8

\section{Section 9}
\begin{frame}{Frame 9}
    Frame 9

\section{Section 10}
\begin{frame}{Frame 10}
    Frame 10

\section{Section 11}
\begin{frame}{Frame 11}
    Frame 11

\section{Section 12}
\begin{frame}{Frame 12}
    Frame 12

\section{Section 13}
\begin{frame}{Frame 13}
    Frame 13

\section{Section 14}
\begin{frame}{Frame 14}
    Frame 14

\section{Section 15}
\begin{frame}{Frame 15}
    Frame 15

\section{Section 16}
\begin{frame}{Frame 16}
    Frame 16

\section{Section 17}
\begin{frame}{Frame 17}
    Frame 17

\section{Section 18}
\begin{frame}{Frame 18}
    Frame 18

\section{Section 19}
\begin{frame}{Frame 19}
    Frame 19

\section{Section 20}
\begin{frame}{Frame 20}
    Frame 20

  • 1
    To change the font size there's no need toredefine the whole templates, it's enough (and much shorter and intuitive, in my point of view) to just change the font templates, as in \setbeamerfont{section in sidebar}{size=\fontsize{2}{2}\selectfont} \setbeamerfont{section in sidebar shaded}{size=\fontsize{2}{2}\selectfont}. Jun 17, 2015 at 23:50
  • You are definitely right. I tried that first and totally forgot the \selectfont so it didn't work.
    – Benjamin
    Jun 17, 2015 at 23:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .