From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74276 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: Re: Bibliography problem Date: Thu, 02 Feb 2012 23:03:30 +0100 Message-ID: <4F2B0832.3090409@uni-bonn.de> References: <20120202042642.GS18040@rae.vm.bytemark.co.uk> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1328220223 11344 80.91.229.3 (2 Feb 2012 22:03:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 2 Feb 2012 22:03:43 +0000 (UTC) To: mailing list for ConTeXt users , pragma@wxs.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 02 23:03:42 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rt4kk-0000UO-9m for gctc-ntg-context-518@m.gmane.org; Thu, 02 Feb 2012 23:03:38 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 80372CB2A5; Thu, 2 Feb 2012 23:03:37 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id MVGxG805jrrm; Thu, 2 Feb 2012 23:03:35 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DA0DACB27C; Thu, 2 Feb 2012 23:03:34 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 30E99CB27C for ; Thu, 2 Feb 2012 23:03:34 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id qbsGTXPg3DzT for ; Thu, 2 Feb 2012 23:03:32 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 0F996CB275 for ; Thu, 2 Feb 2012 23:03:31 +0100 (CET) Original-Received: from uni-bonn.de (mail.uni-bonn.de [131.220.15.113]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q12M3UCk023462 for ; Thu, 2 Feb 2012 23:03:31 +0100 Original-Received: from [93.210.234.181] (account tschmit1@uni-bonn.de HELO [192.168.0.6]) by fe2.uni-bonn.de (CommuniGate Pro SMTP 5.4.3) with ESMTPSA id 9341458; Thu, 02 Feb 2012 23:03:30 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20120127 Thunderbird/10.0 In-Reply-To: <20120202042642.GS18040@rae.vm.bytemark.co.uk> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=131.220.15.113; country=DE; region=07; city=Bonn; latitude=50.7333; longitude=7.1000; http://maps.google.com/maps?q=50.7333,7.1000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0bGta3vbd - bdf439ca689b - 20120202 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:74276 Archived-At: 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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________