On 02/02/2012 05:26 AM, Pontus Lurcock wrote:
ere's a long-standing problem I have with BibTeX databases in ConTeXt Mk IV (I'm currently using version 2011.10.01). If there are multiple publications with the same authors and year, they get suffixes a, b, etc. as is usually expected in bibliographies. Unfortunately these suffixes appear even if only one of the works is actually cited. Minimal example:
==> test.bib<== @book{book2, title = {The second book}, author = {Ann Author}, year = {2000}, }
@book{book1, title = {The first book}, author = {Ann Author}, year = {2000}, }
==> test.tex<== \setupbibtex[database={test},sort=author] \setuppublications[sorttype=bbl,refcommand=authoryear] \starttext % \cite[book1] % uncomment to demonstrate ordering problem \cite[book2] \placepublications[criterium=text] \stoptext
This gives a citation of Author (2000a) despite there being no Author (2000b). A related problem is that even when both suffixes are used, they are applied in the order of the original .bib file rather than in the order of the typeset bibliography. So if \cite[book1] is uncommented in the above example, the bibliography contains Author (2000b) followed by Author (2000a).
I'm guessing that problem is that the whole BibTeX file is processed into ConTeXt's \startpublication...stoppublication syntax, not just the cited works. I can't see a way around the this, other than creating a custom .bib file for each document with the problematic entries removed or re-ordered. Does anyone have any suggestions?
You're right, there is a bug in here. For the publication list, you can use the option \setuppublicationlist[maybeyear=off] which will switch off the 2000a in the publication list, but not in the citation itself, so this becomes inconsistent. Hans, this should be fixed if you have the time: 1. Suffix should only be added if there is more than one identical combination author-year (and it should only be added if an authoryear cite command is used, it doesn't make sense for other citation styles). 2. Suffixes should be added according to the order in the publication list, not according to the order of citation. 3. At one point, it would be good if context could write a bbl file which contains only the cited items, not the entire bib file. Thomas