summaryrefslogtreecommitdiff
path: root/doc/context/sources/general/manuals/publications/publications-exporting.tex
blob: b459ce1182b0c2797aeb35e8a5e7dff4e169a4c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
\environment publications-style

\startcomponent publications-exporting

\startchapter[title=Exporting datasets]

A dataset can be much more complete than necessary. Furthermore, it may be
desirable to isolate bibliography data by chapter, for example, or by any other
structural element such as part. To achieve this, it is possible to export the
entries of a dataset following certain criteria.

\cindex{savebtxdataset}

Take as an example, the bibliography of the present manual that was entered in
the source as buffers for convenience. The entries can be saved to a legitimate
\BIBTEX\ format file using:

\startTEX
\savebtxdataset
  [default]
  [mkvi-publications.bib]
  [alternative=bib,
   criterium=all]
\stopTEX

This can also be used to convert older bibliography source files (for example,
kept in the \tindex {.bbl}\MKII\ format) into the \tindex {.bib}\type {bib},
\tindex {.lua}\type {lua} or even \tindex {.xml}\type {xml} format that could be
more convenient for future manipulation.

\stopchapter

\stopcomponent