From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74264 Path: news.gmane.org!not-for-mail From: Pontus Lurcock Newsgroups: gmane.comp.tex.context Subject: Bibliography problem Date: Thu, 2 Feb 2012 17:26:42 +1300 Message-ID: <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" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1328156823 5901 80.91.229.3 (2 Feb 2012 04:27:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 2 Feb 2012 04:27:03 +0000 (UTC) To: ConTeXt list Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 02 05:27:02 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 1RsoGC-0008L2-LJ for gctc-ntg-context-518@m.gmane.org; Thu, 02 Feb 2012 05:27:00 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D4A3DCB29B; Thu, 2 Feb 2012 05:26:59 +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 LPHooclFZG+4; Thu, 2 Feb 2012 05:26:57 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2758ECB297; Thu, 2 Feb 2012 05:26:57 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A9B91CB297 for ; Thu, 2 Feb 2012 05:26:55 +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 4MeMsjy0-uX2 for ; Thu, 2 Feb 2012 05:26:44 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 5D73DCB28C for ; Thu, 2 Feb 2012 05:26:44 +0100 (CET) Original-Received: from rae.vm.bytemark.co.uk (rae.talvi.net [89.16.174.99]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q124QhW4005048 for ; Thu, 2 Feb 2012 05:26:43 +0100 Original-Received: from pont by rae.vm.bytemark.co.uk with local (Exim 4.72) (envelope-from ) id 1RsoFu-0004NO-Vd for ntg-context@ntg.nl; Thu, 02 Feb 2012 04:26:42 +0000 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=89.16.174.99; country=GB; latitude=54.0000; longitude=-2.0000; http://maps.google.com/maps?q=54.0000,-2.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 05GsQqHbk - 0113ba4aa182 - 20120202 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:74264 Archived-At: Hello, Here'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? Thanks, Pont ___________________________________________________________________________________ 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 ___________________________________________________________________________________