ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Alan Braslau <braslau.list@comcast.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Benjamin Buchmuller <benjamin.buchmuller@gmail.com>
Subject: Re: Extract bib entries used in a document
Date: Thu, 15 Jul 2021 22:23:18 +0200	[thread overview]
Message-ID: <fb6ccc18-d31a-1cd6-b06a-5e91e69b050c@comcast.net> (raw)
In-Reply-To: <ACC7C86E-9F95-4402-B6EB-3C25A91EF5B8@gmail.com>

On 15/07/21 21:53, Benjamin Buchmuller wrote:
> I was wondering if there is a way to get the internal bibliography manager to write out a .bib (or XML or Lua table) containing only the entries used in a document?
> 
> Somewhat similar to BibTeX (https://tex.stackexchange.com/questions/41821/creating-bib-file-containing-only-the-cited-references-of-a-bigger-bib-file).
> 
> I guess it must be internally created, but I don't see, at least from the manual, a command like \exportbtxdataset[default][way=bytext][used_references.bib].
> 
> Two use cases:
> 
> (1) Sharing a clean bib file with someone.
> 
> (2) Merging bib files from different sources based on the document. (Or even by chapter.)
> 
> Thanks for your reply.
> 
> 
> Benjamin

\savebtxdataset [my.bib] [criterium=chapter]

for example.
-- 
Alan
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2021-07-15 20:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.723.1626371942.1143.ntg-context@ntg.nl>
2021-07-15 19:53 ` Benjamin Buchmuller
2021-07-15 20:23   ` Alan Braslau [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fb6ccc18-d31a-1cd6-b06a-5e91e69b050c@comcast.net \
    --to=braslau.list@comcast.net \
    --cc=benjamin.buchmuller@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).