79

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?

Anand
  • 3,696
  • 2
    How are you loading your bibliography? On my slides (where I use bibtex and \bibliographystyle{amsalpha}, there is no such splitting of lines. – Willie Wong Oct 04 '11 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 04 '11 at 12:17

1 Answers1

85

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}{}
Willie Wong
  • 24,733
  • 8
  • 74
  • 106
  • 1
    Thanks Willie Wong, your codes work perfectly on my system. Thanks a lot! :-) – Anand Oct 04 '11 at 12:19
  • 3
    You cannot use \bibliography outside the preamble. – Bakuriu Oct 13 '14 at 18:25
  • @Bakuriu What in the world are you talking about? See the BibTeX user guide. – Willie Wong Oct 14 '14 at 07:20
  • @WillieWong I have just tried to put your code and that's the error I get. Using \printbibliography works. – Bakuriu Oct 14 '14 at 16:03
  • @Bakuriu: please ask a new question. In the question include a full MWE, indicate how you compile the file, and give the exact error. (I am pretty sure the sentence "You cannot use \bibliography outside the preamble" is not the actual error shown to you.) – Willie Wong Oct 15 '14 at 07:28
  • 7
    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). – Willie Wong Oct 15 '14 at 07: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 '16 at 22:42