# Beamer Font Size for Footer

How can I change the font size of the footer in Beamer without modifying the font of the title (on the title page)? Also, when I try to change the title's font with \title{\fontsize{20}{25} My Title} it doesn't seem to work. Thank you.

-
Do you want to change the font for all the elements in the footline of just fot the title in the footline? – Gonzalo Medina Aug 29 '11 at 11:38
@Gonzalo Medina How do I change the font for all the elements in the footline? Because for the title I followed Marco's advice and used \title[\fontsize{10}{15}\fontselect My Title]{etc}, which changes the font size for the title. – chimil Aug 29 '11 at 15:28
@Gonzalo Medina I think I figured it out: I just have to use instead of \title \author with the same type of argument. – chimil Aug 29 '11 at 15:35

You need the command \selectfont after fontsize

\documentclass{beamer}
\usetheme{AnnArbor}
\title[My Title]{ \fontsize{20}{25}\selectfont My Title}
\begin{document}
\frame{\titlepage}
\frame{a frame}
\end{document}


Detailed information are documented in the Docmentation of LaTeX font commands

EDIT: Use the theme AnnArbor and the optional argument of \title.

-
Thanks, Marco. It makes sense. But I still have no idea if it's possible to change separately the footer's font size. I use AnnArbor theme, and when I modify the size of the font, the footer is altered too and I get several Warnings and an Overfull \hbox. – chimil Aug 29 '11 at 11:05
Awesome! I don't get any errors now. Cheers! – chimil Aug 29 '11 at 11:15

You can change the font for all the elements in the footline simply by setting the footline font using

\setbeamerfont{footline}{size=<size>}


A little example:

\documentclass{beamer}
\usetheme{AnnArbor}

\title[Short title]{Long}
\author[Short author]{Long}
\institute[Short inst.]{Long}

\setbeamerfont{footline}{size=\fontsize{9}{11}\selectfont}

\begin{document}

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

\end{document}


Of course, if the chosen font is too big, the results obtained won't be very pleasing (try using \fontsize{10}{12}\selectfont in my example code above). In this case, you will have to change the footline template. In the following example I made some changes in the spacing between the date and the page number and after the page number, to have a footline with a font size of 10pt:

\documentclass{beamer}
\usetheme{AnnArbor}

\title[Short title]{Long title}
\author[Short author]{Long author}
\institute[Short inst.]{Long institute}

\makeatletter
\setbeamertemplate{footline}
{
\leavevmode%
\hbox{\fontsize{11}{13}\selectfont%
\end{beamercolorbox}%
\end{beamercolorbox}%
\usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{1em}% original: 2ex
\end{beamercolorbox}}%
\vskip0pt%
}
\makeatother

\setbeamerfont{footline}{size=\fontsize{10}{11}\selectfont}

\begin{document}

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

\end{document}

-
Great! Thank you for your time and this useful tip. – chimil Aug 29 '11 at 18:12