On 7 Apr 2014, at 12:00 , Peng Zhang <pczh...@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
___________________________________________________________________________________

Reply via email to