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

Pointing LaTeX to a BibTeX database

5 views
Skip to first unread message

brownh

unread,
Nov 26, 2009, 10:18:38 PM11/26/09
to
I've got a set of BibTeX databases that I've built up to hold citation
information, etc.

Now I want to build a .bib file based on the citations of a current
document being marked up. I gather LaTeX needs to be told where the
BibTeX databases are located, but I've not been able to find of how to
do it.

I have citations (bib keys) pointing to a half dozen BibTeX databases,
and many will have few or no citations for them.

Haines Brown

Christoph Bersch

unread,
Nov 27, 2009, 2:47:20 AM11/27/09
to
brownh schrieb:

> I've got a set of BibTeX databases that I've built up to hold citation
> information, etc.
>
> Now I want to build a .bib file based on the citations of a current
> document being marked up. I gather LaTeX needs to be told where the
> BibTeX databases are located, but I've not been able to find of how to
> do it.

If I got you right, you can use bibtool to build a .bib file from the
.aux file of your document.

Christoph

brownh

unread,
Nov 27, 2009, 8:39:35 AM11/27/09
to
Christoph Bersch <use...@bersch.net> writes:

Thanks, Chrisoph, but I did not express the problem clearly
enough. The issue is the presence of multiple BibTeX databases.

In .tex file I have this: \bibliography{/home/brownh/jabref/philos}

As a result in my .aux file there is this:
\bibdata{/home/brownh/jabref/philos}

I could use bibtools to look at the .aux file and find this database and
build a suitable .bib file that contains the book cited from this
philos databased.

The problem is that philos is only one of half a dozen BibTeX
databases. In an article, there are other BibTeX databases holding
citation information such as natsci, socsci, etc.

Can I simply multiply lines in the .tex file such as:

\bibdata{/home/brownh/jabref/philos}
\bibdata{/home/brownh/jabref/natsci}
\bibdata{/home/brownh/jabref/socsci}

to get in .aux

\bibdata{/home/brownh/jabref/philos}
\bibdata{/home/brownh/jabref/natsci}
\bibdata{/home/brownh/jabref/socsci}

Would bibtools then look into the three databases to find the
citations listed in the .aux file?

Perhaps a symlink from each database to the TeX working directory?

Haines

Joost Kremers

unread,
Nov 27, 2009, 8:57:05 AM11/27/09
to
brownh wrote:

> Christoph Bersch <use...@bersch.net> writes:
> In .tex file I have this: \bibliography{/home/brownh/jabref/philos}
[...]

> The problem is that philos is only one of half a dozen BibTeX
> databases. In an article, there are other BibTeX databases holding
> citation information such as natsci, socsci, etc.

\bibliography{/home/brownh/jabref/philos,/home/brownh/jabref/natsci,/home/brownh/jabref/socsci}

should work.


--
Joost Kremers joostk...@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)

brownh

unread,
Dec 2, 2009, 5:51:20 AM12/2/09
to
Joost Kremers <joostk...@yahoo.com> writes:

> brownh wrote:
>> Christoph Bersch <use...@bersch.net> writes: In .tex file I have
>> this: \bibliography{/home/brownh/jabref/philos}
> [...]
>> The problem is that philos is only one of half a dozen BibTeX
>> databases. In an article, there are other BibTeX databases holding
>> citation information such as natsci, socsci, etc.
>
> \bibliography{/home/brownh/jabref/philos,/home/brownh/jabref/natsci,/home/brownh/jabref/socsci}
>
> should work.

I did not want to leave this thread dangling. The problem was that
when I created my bibliographic databases with jabref, for some reason
I failed to do it with a .bib extension. When I appended this
extension to the jabref databases, BibTeX had no problem accessing
them.

Thank you.

Haines Brown

0 new messages