[Tex/LaTex] Make bibliography “invisible” (with bibtex)

bibliographiesbibtex

While working on a long LateX document I would like the citations to be displayed correctly, but the bibliography itself not being added to the document.

Is it possible to make the bibliography being compiled, but not producing output? (Maybe it's not even difficult, and I am just being stupid…)

Best Answer

The simplest way is to use \include and \includeonly:

\documentclass{book}
...
% \includeonly{}
\begin{document}
...<the document>...

\include{biblio}
\end{document}

The file biblio.tex will contain the commands to produce the bibliography: the thebibliography environment or the \bibliography command if you use the traditional method with BibTeX.

When you are sure about the correctness of the references, uncomment the \includeonly line.

As lockstep says, with biblatex it's sufficient not to use \printbibliography.