Dear Flavien,
This version works — note “dataset=document” and the “document::” in the citation. The clue is in the log:
publications > cite > non-existent entry 'batty' in ''
publications > no field 'num' for tag 'batty' in dataset ‘'
The second big “1” is because \completebtxrendering has an implicit \chapter, but seemingly no default title.
Robin
\definebtxrendering[document][dataset=document]
\definebtxdataset[document]
\usebtxdataset[document][test.bib]
\setupbtxrendering[document][numbering=yes]
\starttext
As \cite[document::batty] already indicated, bibtex is a \LATEX||centric
program.
\completebtxrendering[document]
\stoptext
> From: Flavien Lambert <petit.lepton@gmail.com>
> Subject: [NTG-context] bibliography MKiV
___________________________________________________________________________________>
> Dear all, I tried to reproduce the example of mkiv-publications.pdf, chapter 10 through:
>
> \definebtxdataset[document]
> \usebtxdataset[document][test.bib]
> \definebtxrendering[document]
> \setupbtxrendering[document][numbering=yes]
> \starttext
> \starttext
> As \cite[batty] already indicated, bibtex is a \LATEX||centric
> program.
> \completebtxrendering[document]
> \stoptext
>
> with test.bib as
>
> @article{batty,
> author = 'M. Batty',
> title = 'The size, scale, and shape of cities',
> journal = 'Science',
> volume = '319',
> number = '5864',
> pages = '769--771',
> year = '2008'
> }
>
> Unfortunately, the result is two pages, one with As [<num:batty>] already indicated, bibtex is a L A TEX--centric program. and the other with a large 1.
>
> Could you tell me what I am doing wrong? My apologies if it is really obvious...
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
___________________________________________________________________________________