Is there an option to vertically align the sidebar to the middle? Using the following minimal working example I can obtain this result:

I'm trying to vertically align sidebar


  \setbeamertemplate{sidebar \beamer@sidebarside}
    \advance\beamer@tempdim by -6pt%
      \usebeamercolor{normal text}%
      \llap{\usebeamertemplate***{navigation symbols}\hskip0.1cm}%

    \defbeamertemplate*{sidebar right}{sidebar theme}
      \llap{\usebeamertemplate***{navigation symbols}\hskip0.1cm}%

\title{Some title}
\institute{my workplace}

    \frametitle{Table of Contents}





\item A
\item B
\item C

\subsection{More basics}

\frametitle{something goes here}
more stuff

\section{My work}

my stuff...


I know that I could use the \vskip command, although I want to have a flexible theme that aligns the sidebar even if it has more items.

1 Answer 1


Changing the your line 10,


to this:


Will center the text vertically like so: enter image description here

  • Thank you! I have some additional related questions. What is the purpose of % at the end of the line? I thought it was only used for comments.
    – karlosos
    Commented Feb 15, 2021 at 17:36
  • 1
    You're right, the % is for comments. Sometimes you need it at the end of lines to prevent an unwanted bit of space. In this case, you really dont need it; I put it on to match the style of the rest of the code. An example of when you do need it is when putting two minipages side by side.
    – Will
    Commented Feb 15, 2021 at 17:40

You must log in to answer this question.

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