BibTeX, biblatex and biberHaving several .bib files

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
quimnuss
Posts: 2
Joined: Sat Dec 11, 2010 4:27 pm

Having several .bib files

Post by quimnuss »

Hello!

I'm using Mendeley which creates automatically a bibtex file. On the current document I cite websites and other stuff that I don't want to include in this mendeley file.

So I'm trying to have two separate bib files, is it possible to do so? Most searches return how to have sections within the bibliography and other stuff, but I couldn't find having the bibliography in two different files.

The obvious solution is to copy paste the mendeley bib file to the other one, but since the first one is changing, I'd like to find a more permanent solution.

A MWE:

Code: Select all

\documentclass[a4paper,10pt]{article}
\usepackage[utf8x]{inputenc}

%opening
\title{aa}
\author{bb}

\begin{document}

\maketitle

\section{A}

First cite\cite{aa}.

\section{B}

Second cite\cite{bb}.

\bibliographystyle{acm}
\bibliography{aa.bib}
\bibliography{bb.bib}

\end{document}
And two bib files aa.bib and bb.bib

Code: Select all

@article{bb,
  title    = {flat},
  journal  = {What the heaven},
  volume   = {56},
  number   = {1},
  pages    = {29 - 45},
  year     = {2008},
  author   = {Joan Sola and Marti Pol},
}

Code: Select all

@article{aa,
  title    = {Cliffs},
  journal  = {What the hell},
  volume   = {56},
  number   = {1},
  pages    = {29 - 45},
  year     = {2008},
  author   = {Anthony Cooper and Jaques Cousteau},
}
Thanks!

Quim

Recommended reading 2024:

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

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

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Having several .bib files

Post by frabjous »

Use a single line separated by commas:

Code: Select all

\bibliography{aa.bib,bb.bib}
quimnuss
Posts: 2
Joined: Sat Dec 11, 2010 4:27 pm

Re: Having several .bib files

Post by quimnuss »

Awesome, solved in five minutes!
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Having several .bib files

Post by localghost »

Now that the problem is solved, please be so kind and mark the topic accordingly as written in Section 3 of the Board Rules (to be read before posting). Please keep that in mind for the future so that further reminders will not be necessary.


Best regards and welcome to the board
Thorsten
Post Reply