Beamer + Bibtex

I was trying to get Beamer + Bibtex working just like I did with a regular article, just including a frame with the reference. So this is my first attempt:

\begin{frame}
  \begin{small}
    \phantomsection
    \addcontentsline{toc}{section}{\bibname}
    \bibliographystyle{plain}
    \bibliography{bibliography}
  \end{small}
\end{frame}
\end{document}

I didn’t like the size of the entries, and the fact that they only spawn a single frame, so only a few entries were visible. Some Googling and I came with an improved solution:

\begin{frame}[shrink=5,allowframebreaks]
  \begin{small}
    \phantomsection
    \addcontentsline{toc}{section}{\bibname}
    \bibliographystyle{plain}
    \bibliography{bibliography}
  \end{small}
\end{frame}
\end{document}

Then I realized that the citations weren’t included in the bibliography!. Sure, the entries were there but, which one was the “13″? Bibtex showed some nice, and pretty useless, icons instead of the citations. Further Googling unveiled an answer (may be others), using natbib+bibtex (here is a quick reference to natbib):

% before \begin{document}
\usepackage[square]{natbib}
\newcommand{\newblock}{}

Enjoy.

TwitterGoogle+FacebookRedditEmail