Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

This question already has an answer here:

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.

share|improve this question

marked as duplicate by Marco Daniel, Kurt, Thorsten, Claudio Fiandrino, Qrrbrbirlbel Mar 31 '13 at 16:08

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    

3 Answers 3

up vote 16 down vote accepted

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

share|improve this answer

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.

share|improve this answer
    
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

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}{}.)

share|improve this answer
    
Thanks! I think in this case the biblatex answer is best for me, but your's is good for my toolbox. –  Richard Herron Feb 9 '11 at 16:07
    
see tex.stackexchange.com/questions/1969/beamer-and-natbib for the natbib/beamer problem –  naught101 Apr 29 '12 at 7:44

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