From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86939 Path: news.gmane.org!not-for-mail From: Robert Blackstone Newsgroups: gmane.comp.tex.context Subject: Re: Multiple bibliographies (bib-module, mkiv) Date: Mon, 7 Apr 2014 16:34:13 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Content-Type: multipart/mixed; boundary="===============0604082680==" X-Trace: ger.gmane.org 1396881283 11077 80.91.229.3 (7 Apr 2014 14:34:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Apr 2014 14:34:43 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 07 16:34:38 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WXAdC-0003RH-Dt for gctc-ntg-context-518@m.gmane.org; Mon, 07 Apr 2014 16:34:38 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F162C1023F for ; Mon, 7 Apr 2014 16:34:37 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 9pawsjPdW7uR for ; Mon, 7 Apr 2014 16:34:37 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 0C4B0101E9 for ; Mon, 7 Apr 2014 16:34:33 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 650AA101E7 for ; Mon, 7 Apr 2014 16:34:29 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id nFYxyo-p9SQd for ; Mon, 7 Apr 2014 16:34:27 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id B8E62101E1 for ; Mon, 7 Apr 2014 16:34:17 +0200 (CEST) Original-Received: from mail-ee0-x22d.google.com (mail-ee0-x22d.google.com [IPv6:2a00:1450:4013:c00::22d]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s37EYGUf009993 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Mon, 7 Apr 2014 16:34:16 +0200 Original-Received: by mail-ee0-f45.google.com with SMTP id d17so705513eek.18 for ; Mon, 07 Apr 2014 07:34:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:message-id :references:to; bh=pb/Hzn9Oooa2wt8ZmSw8iONGA4P8NMgnehXWVoiqBRc=; b=ydMhL/Pdp4tc+Wq1SjoAXYgS5OzxfJEW3bBF3gqKsF7JG08Vq/WGjYY94vB3geUitS 1dygVw63D5BNvCr00vReVf2bzVdHAooYM4IvSKD+3Tk79blGb07Z0h7OX2i15H6uEsXt ZDiTvALBwXRK569RChmAJshmqY9JGxAMrZXZjVFXTltFtiG8+PeQSocAPjg/C8B0uNlO w2UMyC04+1jqtM8/KDdSTwNnvfT4LGR/7vI/tSrqVuLPgIJU328Y2t90ueCWKS5lxl+b O3lY0f388vsEcXlu7FTVoUCOOOjsS4KAn/AYzlNpBCnPtlpAHOJsBY8+ridzoc7oIg2b 2GjA== X-Received: by 10.14.225.73 with SMTP id y49mr3252123eep.43.1396881256544; Mon, 07 Apr 2014 07:34:16 -0700 (PDT) Original-Received: from [10.0.1.5] (ip51cc7044.adsl-surfen.hetnet.nl. [81.204.112.68]) by mx.google.com with ESMTPSA id u46sm42153692eel.1.2014.04.07.07.34.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 07 Apr 2014 07:34:15 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1510) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:4013:c00::22d; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07LL2ygfA - c254be2f2c38 - 20140407 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:86939 Archived-At: --===============0604082680== Content-Type: multipart/alternative; boundary="Apple-Mail=_E7C9F894-C4E7-440B-8977-CD592AA799FF" --Apple-Mail=_E7C9F894-C4E7-440B-8977-CD592AA799FF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 7 Apr 2014, at 12:00 , Peng Zhang wrote > I am searching for a solution where I can use two different sources of=20= > bib files separately. I found that the same question was asked before = at=20 > this mail list. Since it was few years old, could I ask if there is = any=20 > new work done towards it? >=20 > Thanks! > Peng >=20 > http://www.ntg.nl/pipermail/ntg-context/2010/048290.html Hello Peng, For a Bibliography with separate sections you can use the following = work-around: Suppose you want a section "primary sources", for which you have the = bibfile, say, ps.bib, and a section "secundary sources", for which have = the bibfile ss.bib. The first step is tro to make for each of them a .bbl-file with, what I = would call, a "bbl-generator.tex": ++++++++++++++++++++++++++++++++++++ \setupbibtex[database=3Dps.bib,sort=3Dauthor] %\setupbibtex[database=3Dss.bib,sort=3Dauthor] \setuppublications[alternative=3Dapa] %or any other style \starttext=20 \stoptext=20 ++++++++++++++++++++++++++++++++++++++ This can be processed with mkii or mkiv. It generates a lot of auxiliary = files, including an empty pdf, but the only important one is = "bbl-generator.bbl", which you rename to ps.bbl or ss.bbl according to = which of the two bib-files you used.(=3D did not comment out) The other files you need are two .tex-files with the complete set of = \nocite[]'s of the two databases. Personally I never used \nocite{*}. If = you use a Mac with BibDesk it is quite easy to make such a file. It = gives you some extra flexibility. You can then generate the sectioned bibliography with: ++++++++++++++++++++++++++++++++++++++++++ \input(Your setups, including those for your Bibliography setup) \starttext=20 = \startchapter[bookmark=3D,label=3D,list=3D,marking=3D,reference=3DBibliogr= aphy,title=3D{Bibliography} \section{Primary sources} \input ps.bbl \input ps-nocite.tex \placepublications[criterium=3Dcite] \section{Secundary sources} \input ss.bbl \input ss-nocite.tex \placepublications[criterium=3Dcite] \stopchapter \stoptext=20 +++++++++++++++++++++++++++++++++++++++++++++++ That's all. I hope it works for you. Best regards, Robert Blackstone= --Apple-Mail=_E7C9F894-C4E7-440B-8977-CD592AA799FF Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
On 7 = Apr 2014, at 12:00 , Peng Zhang <pczhang@gmail.com> = wrote

I am searching for a solution = where I can use two different sources of
bib files separately. I = found that the same question was asked before at
this mail list. = Since it was few years old, could I ask if there is any
new work = done towards it?

Thanks!
Peng

http://w= ww.ntg.nl/pipermail/ntg-context/2010/048290.html

Hello = Peng,
For a Bibliography with =  separate sections you can use the following work-around:
Suppose you want a section "primary = sources", for which you have the bibfile, say, ps.bib, and a section = "secundary sources", for which have the bibfile ss.bib.
The first step is tro to make for each of = them a .bbl-file with, what I would call, a =  "bbl-generator.tex":
\setupbibtex[database=3Dps.bib,sort=3Dauthor]
%\setupbibt= ex[database=3Dss.bib,sort=3Dauthor]

\setuppublica= tions[alternative=3Dapa] %or any other = style

\starttext 

\= stoptext 
This can be processed with mkii or mkiv. It generates a lot of = auxiliary files, including an empty pdf, but the only important one is = "bbl-generator.bbl", which you rename to ps.bbl or ss.bbl according = to which of the two bib-files you used.(=3D did not comment = out)

The other files you need are two .tex-files = with the complete set of \nocite[]'s of the two databases. Personally I = never used \nocite{*}. If you use a Mac with BibDesk it is quite easy to = make such a file. It gives you some extra flexibility.

\input(Your setups, including those for your Bibliography = setup)
That's all.

I hope it works for = you.
Best regards,
Robert Blackstone
= --Apple-Mail=_E7C9F894-C4E7-440B-8977-CD592AA799FF-- --===============0604082680== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0604082680==--