Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Using the beamer class: When I put the page number in the footline next to a navigation icon they align on the bottom of their bounding box. Unfortunately the navigation bounding box is bigger than my text so they end up at different heights. But I would like to align them center in order to get them on the same height. I tried to shift the sheet numbers up a bit in various ways I could think of, but I failed.

(Allmost)-minimal working example:

\documentclass{beamer}

\setbeamertemplate{navigation symbols}{}        %disable standard navigation
\setbeamercolor{footlinecolor}{fg=white,bg=black}   %set color of footline
\setbeamercolor{navigation symbols dimmed}{fg=gray}  %redefine color of dimmed aspects of navigation bar
\setbeamercolor{navigation symbols}{fg=red}     %this is ignored somehow


%define custom footline
\setbeamertemplate{footline}{
  \begin{beamercolorbox}[ht=1.6cm,wd=\paperwidth]{footlinecolor}
    \vspace{1.1cm}
    \hfill
    \fbox{
        \insertframenavigationsymbol 
        \insertsectionnavigationsymbol
    }
    \fbox{
        \tiny{\insertframenumber{} of \inserttotalframenumber}
    }
   \end{beamercolorbox}
}


\begin{document}
  \begin{frame}{Introduction}
    Lorum Ipsum
  \end{frame}
\end{document}
share|improve this question

1 Answer 1

up vote 1 down vote accepted

Ah just found the answer: Put both elements in their own minipage and give them the [c] option:

\setbeamertemplate{footline}{
  \begin{beamercolorbox}[ht=1.6cm,wd=\paperwidth]{footlinecolor}
    \vspace{1.1cm}
    \hfill
    \begin{minipage}[c]{2cm}
        \insertframenavigationsymbol 
        \insertsectionnavigationsymbol
    \end{minipage}      
    \begin{minipage}[c]{2cm}
        \tiny{\insertframenumber{} of \inserttotalframenumber}
    \end{minipage}      
   \end{beamercolorbox}
}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.