# Beamer: Changing the font size of the references using the shrink argument causes an error

I'm trying to change the font size of the references using the shrink of the frame argument. However, if I run this code:

\documentclass{beamer}

\usepackage[american]{babel}
\usepackage[utf8]{inputenc}
\usepackage{csquotes}
\usepackage[style=apa, backend=biber,doi,url]{biblatex}
\DeclareLanguageMapping{american}{american-apa}

\begin{filecontents}{literature.bib}
@article{foobar,
Author = {An Author},
Journal = {A Journal},
Pages = {1--2},
Title = {Some title},
Volume = {1},
Year = {1900}
}

\end{filecontents}

\begin{document}

\frame{
\textcite{foobar}
}

\frame[shrink=50]{
\frametitle{References}
\printbibliography
}

\end{document}


I get the following error:

! Arithmetic overflow.
\beamer@shrinkframebox ...\@tempdimc by\@tempcnta
\relax \ifdim \@tempdimc >...
l.32 }

?
! Emergency stop.
\beamer@shrinkframebox ...\@tempdimc by\@tempcnta
\relax \ifdim \@tempdimc >...
l.32 }


If I remove the shrink argument it works.

I'm using TexLive 2011 on Debian Squeeze and I updated all my packages ;).

-
Test with \frame[shrink=50,fragile], this often helps if you are doing complex stuff on your frame ;-) –  schlamar May 24 '12 at 11:51
Thanks for your help! With \frame[shrink=50,fragile] I get Runaway argument? ! File ended while scanning use of \next. –  deboerk May 24 '12 at 12:53
What happens if you change directly the font size, for example with \tiny? –  schlamar May 24 '12 at 13:04
The font size of the references stays the same. –  deboerk May 24 '12 at 13:22
Maybe \renewcommand*{\bibfont}{\scriptsize} will help. –  André May 24 '12 at 17:18

I think \renewcommand*{\bibfont}{\scriptsize} will help! ;)

-

I tried André's answer with no success. I found a work-around, if you need a quick solution:

1. Compile your beamer document including the bibliography (correct settings of citing/formatting style etc.).

2. open the *.bbl file and copy all its contents (\begin{thebibliography} ...\end{thebibliography}).

3. Paste it over the \bibliograpy{yourbibfile} command.

4. put a \small tag after \begin{thebibliography} for a smaller fontsize for your references!

As I said, its a quick way, if you don't want to fuss around. The downside being its complete absence of reactiveness to changes (\...cite commands) in your document.

-
Welcome to TeX.SX! I've taken the liberty of editing your answer, to keep it in line with the site's style. –  egreg Jul 9 '13 at 17:03
Welcome to TeX.SX! You can have a look on our starter guide to familiarize yourself further with our format. –  Claudio Fiandrino Jul 9 '13 at 17:24