29

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}
\addbibresource{literature.bib}

\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 ;).

deboerk
  • 1,469

3 Answers3

56

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

André
  • 1,892
25

I'm not using biblatex and André's answer did not work for me. I managed to achieve the result with the following:

\setbeamerfont{bibliography item}{size=\footnotesize}
\setbeamerfont{bibliography entry author}{size=\footnotesize}
\setbeamerfont{bibliography entry title}{size=\footnotesize}
\setbeamerfont{bibliography entry location}{size=\footnotesize}
\setbeamerfont{bibliography entry note}{size=\footnotesize}

In case it matters, I'm using the metropolis theme.

Davide
  • 393
2

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.

egreg
  • 1,121,712
Sml Ps
  • 21