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
BibTeX, biblatex and biber ⇒ using multiple bib files
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
I can't see the problem. Perhaps you can enlighten me.
Best regards and welcome to the board
Thorsten
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
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10