Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Multiple .bib files

1,190 views
Skip to first unread message

C.G.Senthilkumar.

unread,
Sep 1, 2004, 4:46:33 PM9/1/04
to
I have 4 different .bib files from which I refer to articles in my report.
I use

\bibliography{db1.bib, 2.bib, .....}

When I try to compile it with
$ latex quals.tex; bibtex quals

I get the following error:
Illegal, another \bibdata command---line 291 of file quals.aux
: \bibdata
: {db2}
I'm skipping whatever remains of this command


Thanks in advance.

Lars Madsen

unread,
Sep 1, 2004, 5:13:28 PM9/1/04
to

have you tried without the .bib extensions? as in

\bibliography{db1,db2, .....}

--
/daleif (remove RTFSIGNATURE from email address)

LaTeX FAQ: http://www.tex.ac.uk/faq
AMSMATH Intro: http://www.ams.org/tex/short-math-guide.html
LaTeX Intro: http://people.ee.ethz.ch/~oetiker/lshort/lshort.pdf
Graphics Intro: http://www.ctan.org/tex-archive/info/epslatex.pdf
Superb Class:
http://www.ctan.org/tex-archive/help/Catalogue/entries/memoir.html
Remember to post minimal working examples.

C.G.Senthilkumar.

unread,
Sep 2, 2004, 1:43:03 AM9/2/04
to
> have you tried without the .bib extensions? as in
> \bibliography{db1,db2, .....}
Yes, I did that. It doens't work.
It complains that there are more than one \bibdata{}
in the .aux file.

Ofcourse, a workaround is to throw all the .bib files
into one big.bib and use that. But I'm sure there is
a neater solution.

Should I include any special package to use more than
one .bib file in one document?

Thanks in advance.

George Varsamopoulos

unread,
Sep 2, 2004, 3:20:43 AM9/2/04
to

Did you try to delete the .aux, .blg and .bbl files and try again ?

Wilhelm Meier

unread,
Sep 2, 2004, 4:11:13 AM9/2/04
to
"C.G.Senthilkumar." <chee...@pc49.cs.ucdavis.edu> wrote in
news:ch5cf9$9l4$1...@skeeter.ucdavis.edu:

> I have 4 different .bib files from which I refer to articles in
> my report. I use
>
> \bibliography{db1.bib, 2.bib, .....}

[...]


What about the package multibib or the uk faq
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=multbib

Dan Luecking

unread,
Sep 2, 2004, 1:48:54 PM9/2/04
to
On Wed, 1 Sep 2004 20:46:33 +0000 (UTC), "C.G.Senthilkumar."
<chee...@pc49.cs.ucdavis.edu> wrote:

The above error message means one of two things:
- there is another command \bibliography{db2} in your file (or some
other command that issues that command).
- Some package has grossly redefined \bibliography.

Only someone with access to your files can determine which.


Dan

--
Dan Luecking Department of Mathematical Sciences
University of Arkansas Fayetteville, Arkansas 72701
To reply by email, change Look-In-Sig to luecking

Dan Luecking

unread,
Sep 2, 2004, 1:54:05 PM9/2/04
to
On Thu, 2 Sep 2004 05:43:03 +0000 (UTC), "C.G.Senthilkumar."
<chee...@pc44.cs.ucdavis.edu> wrote:

>> have you tried without the .bib extensions? as in
>> \bibliography{db1,db2, .....}
>Yes, I did that. It doens't work.
>It complains that there are more than one \bibdata{}
>in the .aux file.
>
>Ofcourse, a workaround is to throw all the .bib files
>into one big.bib and use that. But I'm sure there is
>a neater solution.

That wouldn't work. One \bibdata command is writen to the .aux file
by each \bibliography command. If you change the contents to
\bibliography{big} or you don't it makes no difference. And bibtex
doesn't care how many .bib files are mentioned in the \bibdata{}
command. It is the number of _commands_ that it is complaining about.

C.G.Senthilkumar.

unread,
Sep 3, 2004, 12:39:14 AM9/3/04
to
> What about the package multibib or the uk faq
> http://www.tex.ac.uk/cgi-bin/texfaq2html?label=multbib

Looks like, I have got to use the *bibtopic* package; given
at the same link as above.

With this, the references from each .bib file are listed in
separate sections though they are numbered sequentially.
This appears to be the closest I can get to my desired result,
with a little deviation from norms to avoid section headings.
But the inter - section spacing is still produced though not
very obvious.

If there is any better solution, that would be great.

Thansks for all your help.

0 new messages