* [NTG-context] Bibliography: separating different kinds of literature OR Sectioning bibliography by type
@ 2024-06-04 13:20 Ben Moon via ntg-context
2024-06-09 12:37 ` [NTG-context] " Alan Braslau via ntg-context
0 siblings, 1 reply; 3+ messages in thread
From: Ben Moon via ntg-context @ 2024-06-04 13:20 UTC (permalink / raw)
To: ntg-context; +Cc: Ben Moon
[-- Attachment #1.1: Type: text/plain, Size: 1158 bytes --]
Hey there,
I would like to place a list of bibliography according to types (article, book, in proceedings) in my document. Similar like here:
https://tex.stackexchange.com/questions/112874/sectioning-bibliography-by-type-with-multiple-types-per-section
Sectioning bibliography by type (with multiple types per section)
tex.stackexchange.com
and here:
https://www.mail-archive.com/ntg-context@ntg.nl/msg77056.html
The example provided by Hans doesn’t seem to properly work any more, and I cannot make the suggestion work of using two different datasets work as suggested in the same thread.
So this is where I’m stuck:
\definebtxdataset[main]
\usebtxdataset[main][maindata.buffer]
\definebtxdataset[images]
\usebtxdataset[images][imagedata.buffer]
\usebtxdefinitions[mycustom, aps]
\setupbtx[dataset=main]
\definebtxrendering[bibrendering][mycustom, aps][dataset=main]
\definebtxrendering[bibimgrendering][mycustom, aps][dataset=images]
\placelistofpublications[bibrendering]
\placelistofpublications[bibimgrendering]
It would be much appreciated if someone could provide a working example?
Thank you very much
Ben
[-- Attachment #1.2.1: Type: text/html, Size: 6935 bytes --]
[-- Attachment #1.2.2: apple-touch-icon@2.png --]
[-- Type: image/png, Size: 14214 bytes --]
[-- Attachment #1.2.3: apple-touch-icon-114x114.png --]
[-- Type: image/png, Size: 4011 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: Bibliography: separating different kinds of literature OR Sectioning bibliography by type
2024-06-04 13:20 [NTG-context] Bibliography: separating different kinds of literature OR Sectioning bibliography by type Ben Moon via ntg-context
@ 2024-06-09 12:37 ` Alan Braslau via ntg-context
2024-06-09 14:16 ` Ben Moon via ntg-context
0 siblings, 1 reply; 3+ messages in thread
From: Alan Braslau via ntg-context @ 2024-06-09 12:37 UTC (permalink / raw)
To: Ben Moon via ntg-context; +Cc: Ben Moon, Alan Braslau
Try something like:
\flushbtxrendering [bibrendering]
[method=dataset,
sorttype=index,
filter=match(category:article)]
I have used the filtering mechanism to select fields, such as filter=match(year:2023).
Alan
On Tue, 4 Jun 2024 15:20:14 +0200
Ben Moon via ntg-context <ntg-context@ntg.nl> wrote:
> Hey there,
> I would like to place a list of bibliography according to types
> (article, book, in proceedings) in my document. Similar like here:
> https://tex.stackexchange.com/questions/112874/sectioning-bibliography-by-type-with-multiple-types-per-section
> Sectioning bibliography by type (with multiple types per section)
> tex.stackexchange.com
>
> and here:
> https://www.mail-archive.com/ntg-context@ntg.nl/msg77056.html
> The example provided by Hans doesn’t seem to properly work any more,
> and I cannot make the suggestion work of using two different datasets
> work as suggested in the same thread. So this is where I’m stuck:
>
> \definebtxdataset[main]
> \usebtxdataset[main][maindata.buffer]
> \definebtxdataset[images]
> \usebtxdataset[images][imagedata.buffer]
> \usebtxdefinitions[mycustom, aps]
> \setupbtx[dataset=main]
> \definebtxrendering[bibrendering][mycustom, aps][dataset=main]
> \definebtxrendering[bibimgrendering][mycustom, aps][dataset=images]
>
> \placelistofpublications[bibrendering]
> \placelistofpublications[bibimgrendering]
>
> It would be much appreciated if someone could provide a working
> example?
>
> Thank you very much
>
> Ben
___________________________________________________________________________________
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: Bibliography: separating different kinds of literature OR Sectioning bibliography by type
2024-06-09 12:37 ` [NTG-context] " Alan Braslau via ntg-context
@ 2024-06-09 14:16 ` Ben Moon via ntg-context
0 siblings, 0 replies; 3+ messages in thread
From: Ben Moon via ntg-context @ 2024-06-09 14:16 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Ben Moon
[-- Attachment #1.1: Type: text/plain, Size: 4345 bytes --]
Dear Alan,
Thank you very much for your reply. Unfortunately, I don’t get this working. Also, I don’t find the documentation for flushbtxrendering.
Here’s a minimal working example I’m trying:
\startbtxrenderingdefinitions[mybib]
\definebtx
[mybib]
[default=default,
specification=mybib]
\definebtxrendering
[mybib]
[specification=mybib,
numbering=yes]
\stopbtxrenderingdefinitions
\startsetups btx:mybib:list:link
\btxdoifelse {title} {\btxflush{title}:\space} {No Title}
\btxdoifelse {url} {\btxflush{url};\space} {}
\btxdoifelse {date} {abgerufen \btxflush{date}.} {}
\removeunwantedspaces
\stopsetups
\startsetups btx:mybib:list:imagelink
\btxdoifelse {url} {\btxflush{url};\space} {}
\btxdoifelse {date} {abgerufen \btxflush{date}.} {}
\removeunwantedspaces
\stopsetups
\startbuffer[maindata]
@link{herbariumathome,
title={Herbarium At Home: A Beginner's Guide},
url={https://youtu.be/2kEbCaTe8XM},
date={04.04.2024}},
@imagelink{zooniverse_logo,
url={https://www.sciencelearn.org.nz/images/3873-zooniverse-logo},
date={04.06.2024}}
\stopbuffer
% enable tracing
\enabletrackers[publications, publications.crossref, publications.details, publications.cite, publications.strings]
\definebtxdataset[main]
\usebtxdataset[main][maindata.buffer]
%\definebtxdataset[bilder]
%\usebtxdataset[bilder][imagedata.buffer]
\usebtxdefinitions[mybib, aps] % aps for stuff which isn’t a link or image
\setupbtx[dataset=main]
\definebtxrendering[bibrendering][mybib, aps][dataset=main]
\starttext
\cite[herbariumathome]
\cite[zooniverse_logo]
\section{Quellen: Bilder}
%\placelistofpublications[bibrendering]
\flushbtxrendering [bibrendering]
[method=dataset,
sorttype=index,
filter=match(category:imagelink)]
\section{Quellen: Webseiten}
\flushbtxrendering [bibrendering]
[method=dataset,
sorttype=index,
filter=match(category:link)]
\stoptext
I would very much appreciate more ideas.
Thank you very much and kind regards
Ben
> On 9 Jun 2024, at 14:37, Alan Braslau via ntg-context <ntg-context@ntg.nl> wrote:
>
> Try something like:
>
> \flushbtxrendering [bibrendering]
> [method=dataset,
> sorttype=index,
> filter=match(category:article)]
>
> I have used the filtering mechanism to select fields, such as filter=match(year:2023).
>
> Alan
>
>
>
>
> On Tue, 4 Jun 2024 15:20:14 +0200
> Ben Moon via ntg-context <ntg-context@ntg.nl> wrote:
>
>> Hey there,
>> I would like to place a list of bibliography according to types
>> (article, book, in proceedings) in my document. Similar like here:
>> https://tex.stackexchange.com/questions/112874/sectioning-bibliography-by-type-with-multiple-types-per-section
>> Sectioning bibliography by type (with multiple types per section)
>> tex.stackexchange.com
>>
>> and here:
>> https://www.mail-archive.com/ntg-context@ntg.nl/msg77056.html
>> The example provided by Hans doesn’t seem to properly work any more,
>> and I cannot make the suggestion work of using two different datasets
>> work as suggested in the same thread. So this is where I’m stuck:
>>
>> \definebtxdataset[main]
>> \usebtxdataset[main][maindata.buffer]
>> \definebtxdataset[images]
>> \usebtxdataset[images][imagedata.buffer]
>> \usebtxdefinitions[mycustom, aps]
>> \setupbtx[dataset=main]
>> \definebtxrendering[bibrendering][mycustom, aps][dataset=main]
>> \definebtxrendering[bibimgrendering][mycustom, aps][dataset=images]
>>
>> \placelistofpublications[bibrendering]
>> \placelistofpublications[bibimgrendering]
>>
>> It would be much appreciated if someone could provide a working
>> example?
>>
>> Thank you very much
>>
>> Ben
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 7526 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-06-09 14:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-04 13:20 [NTG-context] Bibliography: separating different kinds of literature OR Sectioning bibliography by type Ben Moon via ntg-context
2024-06-09 12:37 ` [NTG-context] " Alan Braslau via ntg-context
2024-06-09 14:16 ` Ben Moon 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).