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.

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.

share|improve this question
    
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

2 Answers 2

up vote 4 down vote accepted

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.

share|improve this answer
    
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}

enter image description here

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%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{author in head/foot}%
    \usebeamerfont{author in head/foot}\insertshortauthor~~\beamer@ifempty{\insertshortinstitute}{}{(\insertshortinstitute)}
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,center]{title in head/foot}%
    \usebeamerfont{title in head/foot}\insertshorttitle
  \end{beamercolorbox}%
  \begin{beamercolorbox}[wd=.333333\paperwidth,ht=2.25ex,dp=1ex,right]{date in head/foot}%
    \usebeamerfont{date in head/foot}\insertshortdate{}\hspace*{1em}% original: 2ex
    \insertframenumber{} / \inserttotalframenumber\hspace*{1ex}% original: 2ex
  \end{beamercolorbox}}%
  \vskip0pt%
}
\makeatother

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

\begin{document}

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

\end{document}
share|improve this answer
    
Great! Thank you for your time and this useful tip. –  chimil Aug 29 '11 at 18:12

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.