12

Can I call references from my .bib file, but not put a huge bibliography at the end of my presentation? Or at least hide it in a bunch of slides that don't display?

I tend to think in terms of my .bib file handles and like the consistent formatting.

1
17

This is yet another reason to use biblatex -- printing the bibliography is not mandatory.

\documentclass{beamer}

\usepackage[style=authoryear]{biblatex}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@misc{A01,
  author = {Author, A.},
  year = {2001},
  title = {Alpha},
}
\end{filecontents}

\addbibresource{\jobname.bib}

\begin{document}

\begin{frame}{Frame title}
Some text \autocite{A01}.
\end{frame}

% Optional: Prints bibliography 
% \begin{frame}{References}
% \printbibliography
% \end{frame}

\end{document}

(The filecontents environment is only used to include some external files directly into the example, so that it compiles. It is not necessary for the solution.)

15

Use <beamer:0> to hide any slide from the presentation:

\begin{frame}<beamer:0>
    \bibliographystyle{ieeetr}
    \bibliography{bibliography}
\end{frame}

This simple solution worked perfectly for me.

1
  • Wow. Thanks! I still haven't made the switch to biblatex (and likely won't) so this is handy. – Richard Herron Nov 27 '12 at 17:13
3

You could try this. Put in:

\usepackage{comment}

Process the file once including the full bibliography. Then run bibtex. Now put in:

\excludecomment{thebibliography}

Run (pdf)latex again, and the bibliography will not be printed (merely treated as a "comment"). Unfortunately, you'll need to remove this (or comment this out) the next time, and then re-add it in alternation to keep things in order, but if you wait until you have your final document ready and then put it in, you should be OK.

This basic idea is stolen from this question.

(Somewhat unrelated, I find that I need to manually define \newblock to get natbib working with beamer, e.g., \newcommand{\newblock}{}.)

2

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