* [NTG-context] How to create a second bibliography?
[not found] <737602581.1723189.1721556806534.ref@mail.yahoo.com>
@ 2024-07-21 10:13 ` Joel via ntg-context
2024-07-21 19:08 ` [NTG-context] " Aditya Mahajan
0 siblings, 1 reply; 3+ messages in thread
From: Joel via ntg-context @ 2024-07-21 10:13 UTC (permalink / raw)
To: ntg-context; +Cc: Joel
[-- Attachment #1.1: Type: text/plain, Size: 792 bytes --]
My copy editor wants me to create a second bibliography for photo/illustration references.
I'm using basic code to make a bibliography:
\usemodule[publ-imp-sbl]
\usebtxdataset[default][~/Commons/sources.bib]
\setupbtx[dataset=default]
\usebtxdefinitions[sbl]
\setupbtx[sbl]
\starttext \input knuth
\cite[authoryear]
\startchapter[title=Bibliography]
\placelistofpublications
\stopchapter\stoptext
I know how to create custom lists and indexes, but not a bibliography list.
How do I point the image references to go to a different list, but still its a bibliography?
\startchapter[title=Image Credits] \placelistofcredits \stopchapter
--Joel
[-- Attachment #1.2: Type: text/html, Size: 2026 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* [NTG-context] Re: How to create a second bibliography?
2024-07-21 10:13 ` [NTG-context] How to create a second bibliography? Joel via ntg-context
@ 2024-07-21 19:08 ` Aditya Mahajan
2024-07-22 7:24 ` Joel via ntg-context
0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan @ 2024-07-21 19:08 UTC (permalink / raw)
To: Joel via ntg-context
[-- Attachment #1: Type: text/plain, Size: 1885 bytes --]
On Sun, 21 Jul 2024, Joel via ntg-context wrote:
> My copy editor wants me to create a second bibliography for photo/illustration references.
> I'm using basic code to make a bibliography:
> \usemodule[publ-imp-sbl]
>
> \usebtxdataset[default][~/Commons/sources.bib]
>
> \setupbtx[dataset=default]
> \usebtxdefinitions[sbl]
> \setupbtx[sbl]
>
> \starttext \input knuth
> \cite[authoryear]
>
> \startchapter[title=Bibliography]
> \placelistofpublications
> \stopchapter\stoptext
>
> I know how to create custom lists and indexes, but not a bibliography list.
>
> How do I point the image references to go to a different list, but still its a bibliography?
>
> \startchapter[title=Image Credits] \placelistofcredits \stopchapter
Here is one way to do it:
\startbuffer[dataset-1]
@Article{tag1,
author = {A Author},
title = {The title},
year = {2024},
}
\stopbuffer
\startbuffer[dataset-2]
@Article{tag2,
author = {B Author},
title = {The second title},
year = {2024},
}
\stopbuffer
\usebtxdataset[default][dataset-1.buffer]
\usebtxdataset[credits][dataset-2.buffer]
\usebtxdefinitions[aps]
\setupbtx[dataset=default]
\definebtxrendering[credits][aps][dataset=credits]
\starttext
\startsection[title=Test]
Here is a fancy article \cite[tag1].
Image credited to \cite[credits::tag2].
\stopsection
\startsection[title=References]
\placelistofpublications
\stopsection
\startsection[title=Image credits]
\placelistofpublications[credits]
\stopsection
\stoptext
If you want credits to have a separate numbering, use:
\definebtxrendering[credits][aps][dataset=credits,group=credits]
(all renderings with the same group share the same numbering).
Aditya
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* [NTG-context] Re: How to create a second bibliography?
2024-07-21 19:08 ` [NTG-context] " Aditya Mahajan
@ 2024-07-22 7:24 ` Joel via ntg-context
0 siblings, 0 replies; 3+ messages in thread
From: Joel via ntg-context @ 2024-07-22 7:24 UTC (permalink / raw)
To: Joel via ntg-context, Aditya Mahajan; +Cc: Joel
[-- Attachment #1.1: Type: text/plain, Size: 2064 bytes --]
Thank you! Works perfectly! --Joel
On Sunday, July 21, 2024 at 01:08:54 PM MDT, Aditya Mahajan <adityam@umich.edu> wrote:
On Sun, 21 Jul 2024, Joel via ntg-context wrote:
> My copy editor wants me to create a second bibliography for photo/illustration references.
> I'm using basic code to make a bibliography:
> \usemodule[publ-imp-sbl]
>
> \usebtxdataset[default][~/Commons/sources.bib]
>
> \setupbtx[dataset=default]
> \usebtxdefinitions[sbl]
> \setupbtx[sbl]
>
> \starttext \input knuth
> \cite[authoryear]
>
> \startchapter[title=Bibliography]
> \placelistofpublications
> \stopchapter\stoptext
>
> I know how to create custom lists and indexes, but not a bibliography list.
>
> How do I point the image references to go to a different list, but still its a bibliography?
>
> \startchapter[title=Image Credits] \placelistofcredits \stopchapter
Here is one way to do it:
\startbuffer[dataset-1]
@Article{tag1,
author = {A Author},
title = {The title},
year = {2024},
}
\stopbuffer
\startbuffer[dataset-2]
@Article{tag2,
author = {B Author},
title = {The second title},
year = {2024},
}
\stopbuffer
\usebtxdataset[default][dataset-1.buffer]
\usebtxdataset[credits][dataset-2.buffer]
\usebtxdefinitions[aps]
\setupbtx[dataset=default]
\definebtxrendering[credits][aps][dataset=credits]
\starttext
\startsection[title=Test]
Here is a fancy article \cite[tag1].
Image credited to \cite[credits::tag2].
\stopsection
\startsection[title=References]
\placelistofpublications
\stopsection
\startsection[title=Image credits]
\placelistofpublications[credits]
\stopsection
\stoptext
If you want credits to have a separate numbering, use:
\definebtxrendering[credits][aps][dataset=credits,group=credits]
(all renderings with the same group share the same numbering).
Aditya
[-- Attachment #1.2: Type: text/html, Size: 4425 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-07-22 7:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <737602581.1723189.1721556806534.ref@mail.yahoo.com>
2024-07-21 10:13 ` [NTG-context] How to create a second bibliography? Joel via ntg-context
2024-07-21 19:08 ` [NTG-context] " Aditya Mahajan
2024-07-22 7:24 ` Joel via ntg-context
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).