BibTeX, biblatex and biberusing multiple bib files

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
hhamid
Posts: 1
Joined: Sun Mar 20, 2011 9:47 pm

using multiple bib files

Post by hhamid »

Hi folks,

I'm relatively new to the Latex and am having some issues with bibliography. I have multiple .bib files (say A.bib and B.bib) and would like to keep them separate. But it doesn't seem like I can include both using separate \bibliography commands. I also tried to use a single tag like \bibliography{A, B} but I wasn't able to reference to any items in the second bib file. I'm wondering what is the correct way of including multiple bibliography files.

Thanks,
--Hamid

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

using multiple bib files

Post by localghost »

I can't see the problem. Perhaps you can enlighten me.

Code: Select all

\begin{filecontents*}{\jobname-A.bib}
@BOOK{knuth84,
  author={Donald Ervin Knuth},
  title={The \TeX book},
  year={1984},
  publisher={Addison-Wesley}
}
\end{filecontents*}
\begin{filecontents*}{\jobname-B.bib}
@BOOK{lamport94,
  author={Leslie Lamport},
  title={\LaTeX\ -- A Document Preparation System},
  note={User's Guide and Reference Manual},
  year={1994},
  publisher={Addison-Wesley},
  edition={Second}
}
\end{filecontents*}
\documentclass[11pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\bibliographystyle{unsrt}

\begin{document}
  \cite{knuth84}, \cite{lamport94}
  \bibliography{\jobname-A,\jobname-B}
\end{document}

Best regards and welcome to the board
Thorsten
Post Reply