BibTeX, biblatex and biberSingle bibtex file for all documents

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
dabd
Posts: 5
Joined: Sun Nov 09, 2008 12:49 pm

Single bibtex file for all documents

Post by dabd »

Is it possible to have a single bibtex database that is used for all documents, and instruct LaTex to include only the cited references from that database, and ignore the other references.
It would be similar to what the \nocite{*} command does, except that it would include only the cited references.

Thanks.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

php1ic
Posts: 192
Joined: Wed Jan 28, 2009 8:17 pm

Single bibtex file for all documents

Post by php1ic »

That's exactly what bibtex does. It you don't cite it in your document, it wont appear in the bibliography.

Compile the MWE below.

mwe.tex

Code: Select all

\documentclass{article}

\begin{document}

Blah Blah Blah~\cite{one}.

\bibliographystyle{plain}
\bibliography{mwe}

\end{document}
mwe.bib

Code: Select all

@ARTICLE{one,
    author  ="A. N. Other",
    journal ="Latex",
    number  ="1",
    pages   ="0--90",
    volume  ="100",
    year    ="2010",
  }

@ARTICLE{two,
    author  ="D. Knuth",
    journal ="Latex for beginners",
    number  ="5",
    pages   ="890--1430",
    volume  ="123",
    year    ="2001",
  }
Post Reply