3

I have a small problem because I have quite a long title of my presentation so it is overflowing in footline...

Is there any way how to change portion of these 3 parts in footline? I think that 1/3 just for page number is too much in my case...

Thanks...

also I am aware of that solution:Modify footer of slides

but it is slightly different.

Without navigation symbols:

with navigation symbols:

There is amissing color change if I will not use the navigation symbols.

1 Answers1

7

Notice that you can use the optional argument for \title, as in

\title[<short version>]{<long version>}

to provide a shorter version of the title for the footline. If this is not an option, then see below.

You can place the three elements (author,title and page counting) in different beamercolorboxes and adjust their width to suit your needs (change the wd=<length> parameters making sure the three lengths add up to 1\textwidth):

\documentclass{beamer}
\usetheme{CambridgeUS}

\makeatother
\setbeamertemplate{footline}
{
  \leavevmode%
  \hbox{%
  \begin{beamercolorbox}[wd=.3\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
    \usebeamerfont{author in head/foot}\insertshortauthor
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.6\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
    \usebeamerfont{title in head/foot}\insertshorttitle
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.1\paperwidth,ht=2.25ex,dp=1ex,center]{date in head/foot}%
    \insertframenumber{} / \inserttotalframenumber\hspace*{1ex}
  \end{beamercolorbox}}%
  \vskip0pt%
}
\makeatletter
\setbeamertemplate{navigation symbols}{}

\date{date}
\title[The title is quite quite quite quite quite quite long]{The title is quite quite quite quite quite quite long}
\author{My name}
\institute{My school}

\begin{document}

\begin{frame}
\maketitle
\end{frame}

\end{document}

enter image description here

A zoomed image of the footline:

Gonzalo Medina
  • 505,128
  • Hi there, thanks for the answer is there any way that the third beamrcolorbox will have the same color as it would if it will be in navigation symbols? – Dusan Plavak Apr 08 '14 at 18:45
  • @DusanPlavak sure. The problem is just that I don't know what color are you talking about. Can you please try to describe (or better yet, give an image of) the desired color? – Gonzalo Medina Apr 08 '14 at 19:06
  • well I am using CambridgeUS template, but point is that if I put the colorcode then will have change it every time when I will changing template... anyway editing my question with img – Dusan Plavak Apr 08 '14 at 19:13
  • @DusanPlavak So you want fixed colors for the boxes? – Gonzalo Medina Apr 08 '14 at 19:17
  • nope I want to avoid the fixed colors in my code if it is possible.. – Dusan Plavak Apr 08 '14 at 19:19
  • @DusanPlavak Then my solution is what you want, I am not using fixed colors. The colors used will change if you switch themes. Perhaps then I still don't understand the color problem? – Gonzalo Medina Apr 08 '14 at 19:23
  • I just updated question with another picture where you can see color differences – Dusan Plavak Apr 08 '14 at 19:31
  • @DusanPlavak I now I think I understand. Please see my updated answer. Is it something like that what you want? – Gonzalo Medina Apr 08 '14 at 19:34