ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Multiple bibliographies (bib-module, mkiv)
       [not found] <mailman.75.1396883646.18755.ntg-context@ntg.nl>
@ 2014-04-07 16:39 ` Robert Blackstone
  2014-04-07 18:40   ` Peng Zhang
  0 siblings, 1 reply; 10+ messages in thread
From: Robert Blackstone @ 2014-04-07 16:39 UTC (permalink / raw)
  To: ntg-context


On 7 Apr 2014, at 17:14 , Peng Zhang <pczhang@gmail.com 
<mailto:pczhang@gmail.com>> wrote
> 
> 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

Hi Peng, 
I'm not quite sure I fully understand what you want, so I just tried making separate lists.
Now for some reason that I don't understand no list appears in a subsubject. However if you use instead SUBCVHEAD as an unnumbered section  with

\definehead[SUBCVHEAD][section]
\setuphead[section][header=empty,number=no,style=\bf,after={\blank[small]},before={\blank[small]}] 

and if  you add \page after
\placepublications[criterium=cite], 

then you get separate lists with unnumbered titles.

I hope this is what you want. If not, maybe someone les on this list can help you.

Best regards,
Robert


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Multiple bibliographies (bib-module, mkiv)
  2014-04-07 16:39 ` Multiple bibliographies (bib-module, mkiv) Robert Blackstone
@ 2014-04-07 18:40   ` Peng Zhang
  0 siblings, 0 replies; 10+ messages in thread
From: Peng Zhang @ 2014-04-07 18:40 UTC (permalink / raw)
  To: ntg-context

Thank you very much! That is exactly what I want. Changing subsubject to 
unnumbered section does the trick.

Best,
Peng

On 04/07/2014 12:39 PM, Robert Blackstone wrote:
> On 7 Apr 2014, at 17:14 , Peng Zhang <pczhang@gmail.com
> <mailto:pczhang@gmail.com>> wrote
>> 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
> Hi Peng,
> I'm not quite sure I fully understand what you want, so I just tried making separate lists.
> Now for some reason that I don't understand no list appears in a subsubject. However if you use instead SUBCVHEAD as an unnumbered section  with
>
> \definehead[SUBCVHEAD][section]
> \setuphead[section][header=empty,number=no,style=\bf,after={\blank[small]},before={\blank[small]}]
>
> and if  you add \page after
> \placepublications[criterium=cite],
>
> then you get separate lists with unnumbered titles.
>
> I hope this is what you want. If not, maybe someone les on this list can help you.
>
> Best regards,
> Robert
>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Multiple bibliographies (bib-module, mkiv)
  2014-04-07 14:34 ` Robert Blackstone
@ 2014-04-07 15:13   ` Peng Zhang
  0 siblings, 0 replies; 10+ messages in thread
From: Peng Zhang @ 2014-04-07 15:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 3592 bytes --]

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


[-- Attachment #1.2: Type: text/html, Size: 8289 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Multiple bibliographies (bib-module, mkiv)
       [not found] <mailman.1.1396864802.26251.ntg-context@ntg.nl>
@ 2014-04-07 14:34 ` Robert Blackstone
  2014-04-07 15:13   ` Peng Zhang
  0 siblings, 1 reply; 10+ messages in thread
From: Robert Blackstone @ 2014-04-07 14:34 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 2177 bytes --]


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

[-- Attachment #1.2: Type: text/html, Size: 3681 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Multiple bibliographies (bib-module, mkiv)
@ 2014-04-06  4:26 Peng Zhang
  0 siblings, 0 replies; 10+ messages in thread
From: Peng Zhang @ 2014-04-06  4:26 UTC (permalink / raw)
  To: ntg-context

Dear all,

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,


I need two bibliographies for my document, »Primary sources« and
»Secondary sources«.

Two bibliographies was created and loaded with
\setupbibtex[database={prim,sec}].

But for the last step in my intention I’m looking for something to the
effect that

\placepublications[database=prim]

or in a similar manner to

\nocite{*}

for every bib-database.

Is there any solution or workaround?


Thanks
Markus



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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Multiple bibliographies (bib-module, mkiv)
  2010-03-31 18:31 marfin
  2010-04-01  6:37 ` Taco Hoekwater
@ 2010-04-08 21:26 ` Philipp Gesang
  1 sibling, 0 replies; 10+ messages in thread
From: Philipp Gesang @ 2010-04-08 21:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2213 bytes --]

On 2010-03-31 <20:31:48>, marfin wrote:
> I need two bibliographies for my document, »Primary sources« and
> »Secondary sources«.
> 
> Two bibliographies was created and loaded with
> \setupbibtex[database={prim,sec}].
> 
> But for the last step in my intention I’m looking for something to the
> effect that
> 
> \placepublications[database=prim]
> 
> or in a similar manner to
> 
> \nocite{*}
> 
> for every bib-database.
> 
> Is there any solution or workaround?
Hi,

sorry for the late reply, I was absent from the list for a week.  I'd
suggest you'd give the librarian module a try that was announced to this
list by Aditya earlier.

If you have the time I recommend waiting for a solution by Taco.

Else if neither librarian nor waiting are an option for you, you might
want to have a look at this:
http://i40.tinypic.com/debiaf.jpg
it is using a “keyword” field to typeset multible bibliographies by
keywords so your problem could be solved by a short sed script and cat.
Various citation modes are already implemented as well as support for
all publication types that I need myself -- i.e. book, article and
inbook.  Everything is done in lua (the bibtex.load() function be
praised) so no struggling with bibtex anymore.  As I was used to
biblatex I mainly imitated its approach to things like crossref'ing and
the “address” field.

This is by no means ready for release so please mail me off-list if
you're interested, maybe I could extend it to fit your needs.

Best regards,


Philipp

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

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Multiple bibliographies (bib-module, mkiv)
  2010-03-31 18:31 marfin
@ 2010-04-01  6:37 ` Taco Hoekwater
  2010-04-08 21:26 ` Philipp Gesang
  1 sibling, 0 replies; 10+ messages in thread
From: Taco Hoekwater @ 2010-04-01  6:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Hi Markus,

marfin wrote:
> Hello,
> 
> 
> I need two bibliographies for my document, »Primary sources« and
> »Secondary sources«.
> 
> Two bibliographies was created and loaded with
> \setupbibtex[database={prim,sec}].
> 
> But for the last step in my intention I’m looking for something to the
> effect that
> 
> \placepublications[database=prim]
> 
> or in a similar manner to
> 
> \nocite{*}
> 
> for every bib-database.
> 
> Is there any solution or workaround?

There is no current solution, nor is there a simple workaround.

But I know this is on many people's wishlist so I will try to add a
feature like this. However I have no time to hack something in right
now, so someone please remind me in a week or two.

Best wishes,
Taco


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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Multiple bibliographies (bib-module, mkiv)
@ 2010-03-31 18:31 marfin
  2010-04-01  6:37 ` Taco Hoekwater
  2010-04-08 21:26 ` Philipp Gesang
  0 siblings, 2 replies; 10+ messages in thread
From: marfin @ 2010-03-31 18:31 UTC (permalink / raw)
  To: ntg-context

Hello,


I need two bibliographies for my document, »Primary sources« and
»Secondary sources«.

Two bibliographies was created and loaded with
\setupbibtex[database={prim,sec}].

But for the last step in my intention I’m looking for something to the
effect that

\placepublications[database=prim]

or in a similar manner to

\nocite{*}

for every bib-database.

Is there any solution or workaround?


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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Multiple bibliographies (bib-module, mkiv)
@ 2010-03-31 18:23 marfin
  0 siblings, 0 replies; 10+ messages in thread
From: marfin @ 2010-03-31 18:23 UTC (permalink / raw)
  To: ntg-context

Hello,


I need two bibliographies for my document, »Primary sources« and
»Secondary sources«.

Two bibliographies was created and loaded with
\setupbibtex[database={prim,sec}].

But for the last step in my intention I’m looking for something to the
effect that

\placepublications[database=prim]

or in a similar manner to

\nocite{*}

for every bib-database.

Is there any solution or workaround?


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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Multiple bibliographies (bib-module, mkiv)
@ 2010-03-31 13:53 marfin
  0 siblings, 0 replies; 10+ messages in thread
From: marfin @ 2010-03-31 13:53 UTC (permalink / raw)
  To: ntg-context

Hello,

I need two bibliographies for my document, »Primary sources« and
»Secondary sources«.

So two bibliographies was created and loaded with
\setupbibtex[database={prim,sec}].

But for the last step in my intention I’m looking for something to the
effect that
\placepublications[database=prim]
or in a similar manner to
\nocite{*}
for every bib-database.

Is there any solution or workaround?

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-04-07 18:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.75.1396883646.18755.ntg-context@ntg.nl>
2014-04-07 16:39 ` Multiple bibliographies (bib-module, mkiv) Robert Blackstone
2014-04-07 18:40   ` Peng Zhang
     [not found] <mailman.1.1396864802.26251.ntg-context@ntg.nl>
2014-04-07 14:34 ` Robert Blackstone
2014-04-07 15:13   ` Peng Zhang
2014-04-06  4:26 Peng Zhang
  -- strict thread matches above, loose matches on Subject: below --
2010-03-31 18:31 marfin
2010-04-01  6:37 ` Taco Hoekwater
2010-04-08 21:26 ` Philipp Gesang
2010-03-31 18:23 marfin
2010-03-31 13:53 marfin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).