78

In Beamer, bibliography is displayed in the way that authors, title and journals are in three lines. Here is an example.

Since I have many references, I am wondering, whether we can put them in one line to save some space? Another option is whether we can split the references into several slides?

2
  • 2
    How are you loading your bibliography? On my slides (where I use bibtex and \bibliographystyle{amsalpha}, there is no such splitting of lines. Oct 4, 2011 at 12:02
  • 1
    Thanks Willie Wong, I am using \bibliographystyle{apalike}, after changing to amsalpha, there is no such splitting of lines. :-)
    – Anand
    Oct 4, 2011 at 12:17

1 Answer 1

83

For splitting the references up into several slides, use the allowframebreaks option, as in:

\begin{frame}[allowframebreaks]
        \frametitle{References}
        \bibliographystyle{amsalpha}
        \bibliography{../bib_files/jabrefmaster.bib}
\end{frame}

For the "three line splitting", this is because you either composed a bibliography list with the \newblock command built-in, or are using a \bibliographystyle that inserts the \newblock command. Your choices are to either drop the \newblocks (either edit them out or using a different style), or modify how beamer handle's the command.

From the link, setting the following in the preamble should work:

\setbeamertemplate{bibliography entry title}{}
\setbeamertemplate{bibliography entry location}{}
\setbeamertemplate{bibliography entry note}{}
7
  • 1
    Thanks Willie Wong, your codes work perfectly on my system. Thanks a lot! :-)
    – Anand
    Oct 4, 2011 at 12:19
  • 3
    You cannot use \bibliography outside the preamble.
    – Bakuriu
    Oct 13, 2014 at 18:25
  • @Bakuriu What in the world are you talking about? See the BibTeX user guide. Oct 14, 2014 at 7:20
  • 6
    In particular, your mention of \printbibliography seems to indicate that you are using biblatex instead of bibtex? The answer above is based on the assumption that bibtex is used (see the comments on the OP). Oct 15, 2014 at 7:32
  • 1
    @Bakuriu for biblatex, in the preamble load the bib file \makeatletter\@ifpackageloaded{biblatex}{\addbibresource{references.bib}}{\bibliography{references}}\makeatother and in the frame use [allowframebreaks] as stated in the answer to split the bibliography up into multiple frames. Then include using \printbibliography. Works like a charm.
    – kap
    Mar 17, 2016 at 22:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.