From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86940 Path: news.gmane.org!not-for-mail From: Peng Zhang Newsgroups: gmane.comp.tex.context Subject: Re: Multiple bibliographies (bib-module, mkiv) Date: Mon, 07 Apr 2014 11:13:48 -0400 Message-ID: <5342C0AC.8090507@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0107918300==" X-Trace: ger.gmane.org 1396883659 22577 80.91.229.3 (7 Apr 2014 15:14:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Apr 2014 15:14:19 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 07 17:14:14 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 1WXBFW-0007lA-KE for gctc-ntg-context-518@m.gmane.org; Mon, 07 Apr 2014 17:14:14 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E77FA1021D for ; Mon, 7 Apr 2014 17:14:13 +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 xzgP87cIhqwW for ; Mon, 7 Apr 2014 17:14:13 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 4CE8810223 for ; Mon, 7 Apr 2014 17:14:10 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D6F2F101E7 for ; Mon, 7 Apr 2014 17:14:05 +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 eIHweFAb4xRR for ; Mon, 7 Apr 2014 17:14:03 +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 2E04F101E1 for ; Mon, 7 Apr 2014 17:13:53 +0200 (CEST) Original-Received: from mail-ig0-x22e.google.com (mail-ig0-x22e.google.com [IPv6:2607:f8b0:4001:c05::22e]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s37FDo0X016428 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Mon, 7 Apr 2014 17:13:51 +0200 Original-Received: by mail-ig0-f174.google.com with SMTP id h18so3729100igc.13 for ; Mon, 07 Apr 2014 08:13:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=FyVXF/1NqKAdgxZqiDS+OIporRaq1CS965SvTwOGhGE=; b=NMVFkznFY9VnaasOSduTlsfuu8sqZIBPaGAg/y+lVTyjQYjIJT6IUrX/lfdii/xCJc 5+6lIEnWsrLEzOHpMcuQ+X1tGJ4UKypd9gi8FwTT225GvomNoR+XNWGathH7YHIlMS5P tERoZ7rC4Urb3S9HmIuGAoiu/VyIvO/sqvTZG2jlyFbcBoV047G8insP1X2WHuujaLOI ID2ZQD38NATVV8ivTptlxldFslieHZQkDv+U1Gh5r/SYcv3Pg1k8eIjp4C2fREPQ32qA KsmWQnSKoQdXouBAQz/jHAv5Ix7emuHOfZ9JWXEXjY7/NhCevysUG/+QBljckaslAS/X +gJQ== X-Received: by 10.50.109.230 with SMTP id hv6mr21020772igb.9.1396883630506; Mon, 07 Apr 2014 08:13:50 -0700 (PDT) Original-Received: from [10.21.158.251] (host-232.subnet-17.med.umich.edu. [141.214.17.232]) by mx.google.com with ESMTPSA id j9sm30280248igu.10.2014.04.07.08.13.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 07 Apr 2014 08:13:49 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4001:c05::22e; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07LL3dPKX - 3b3a393b4e81 - 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:86940 Archived-At: This is a multi-part message in MIME format. --===============0107918300== Content-Type: multipart/alternative; boundary="------------070408070807020209060802" This is a multi-part message in MIME format. --------------070408070807020209060802 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi Robert, Thank you very much for this workaround! It does work. Would it be possible that I can make two fake/invisible sections? (without showing primary sources and secondary sources in your example) I am doing my CV. I just want two separate reference lists, one for journal and one for published abstracts. I am copying the CV template from wiki. \definehead[CVHEAD][subject] \setuphead[subject][style=\bfa,after={\blank[medium]}] \definehead[SUBCVHEAD][subsubject] \setuphead[subsubject][style=\bf,after={\blank[small]},before={\blank[small]}] I want something like \CVHEAD{References} \SUBCVHEAD{Pulished Journal Articles} list 1 \SUBCVHEAD{Pulished Abstracts} list 2 Could I put two fake/invisible sections within those subcvhead? Thanks, Peng On 04/07/2014 10:34 AM, Robert Blackstone wrote: > > On 7 Apr 2014, at 12:00 , Peng Zhang > 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://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=ps.bib,sort=author] > %\setupbibtex[database=ss.bib,sort=author] > > \setuppublications[alternative=apa] %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.(= 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 > \startchapter[bookmark=,label=,list=,marking=,reference=Bibliography,title={Bibliography} > \section{Primary sources} > > \input ps.bbl > \input ps-nocite.tex > \placepublications[criterium=cite] > > \section{Secundary sources} > > \input ss.bbl > \input ss-nocite.tex > \placepublications[criterium=cite] > > \stopchapter > \stoptext > +++++++++++++++++++++++++++++++++++++++++++++++ > That's all. > > I hope it works for you. > Best regards, > Robert Blackstone > > > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ --------------070408070807020209060802 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi Robert,

Thank you very much for this workaround! It does work. Would it be possible that I can make two fake/invisible sections? (without showing primary sources and secondary sources in your example)

I am doing my CV. I just want two separate reference lists, one for journal and one for published abstracts.

I am copying the CV template from wiki.

\definehead[CVHEAD][subject]

\setuphead[subject][style=\bfa,after={\blank[medium]}]


\definehead[SUBCVHEAD][subsubject]

\setuphead[subsubject][style=\bf,after={\blank[small]},before={\blank[small]}]


I want something like
\CVHEAD{References}
\SUBCVHEAD{Pulished Journal Articles}

list 1
\SUBCVHEAD{Pulished Abstracts}
list 2


Could I put two fake/invisible sections within those subcvhead?


Thanks,
Peng


On 04/07/2014 10:34 AM, Robert Blackstone wrote:

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://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=ps.bib,sort=author]
%\setupbibtex[database=ss.bib,sort=author]

\setuppublications[alternative=apa] %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.(= 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 
\startchapter[bookmark=,label=,list=,marking=,reference=Bibliography,title={Bibliography}
\section{Primary sources}

\input ps.bbl
\input ps-nocite.tex
\placepublications[criterium=cite]

\section{Secundary sources}

\input ss.bbl
\input ss-nocite.tex
\placepublications[criterium=cite]

\stopchapter
\stoptext 
+++++++++++++++++++++++++++++++++++++++++++++++
That's all.

I hope it works for you.
Best regards,
Robert Blackstone


___________________________________________________________________________________
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
___________________________________________________________________________________

--------------070408070807020209060802-- --===============0107918300== 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 ___________________________________________________________________________________ --===============0107918300==--