From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/59440 Path: news.gmane.org!not-for-mail From: taco Newsgroups: gmane.comp.tex.context Subject: Re: Mutiple citations doesn't work with compress=no + interaction Date: Tue, 08 Jun 2010 20:47:15 +0200 Message-ID: <4C0E9033.7090105@elvenkind.com> References: <4C0E6302.90904@uni-ulm.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1276022854 5191 80.91.229.12 (8 Jun 2010 18:47:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 8 Jun 2010 18:47:34 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jun 08 20:47:33 2010 connect(): No such file or directory Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OM3pk-00015U-SE for gctc-ntg-context-518@m.gmane.org; Tue, 08 Jun 2010 20:47:32 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3143FC9BBC; Tue, 8 Jun 2010 20:47:32 +0200 (CEST) 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 eQEBdjbvFijd; Tue, 8 Jun 2010 20:47:31 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 13CE2C9BC1; Tue, 8 Jun 2010 20:47:29 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 92039C9BBC for ; Tue, 8 Jun 2010 20:47:27 +0200 (CEST) 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 glGdbzjlxtcm for ; Tue, 8 Jun 2010 20:47:16 +0200 (CEST) Original-Received: from server5.aanhet.net (server5.aanhet.net [195.12.62.5]) by balder.ntg.nl (Postfix) with ESMTP id 397BFC9BC1 for ; Tue, 8 Jun 2010 20:47:16 +0200 (CEST) Original-Received: from [192.168.178.28] (boo.demon.nl [83.163.247.99]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server5.aanhet.net (Postfix) with ESMTPSA id E6D6C2000240 for ; Tue, 8 Jun 2010 20:47:15 +0200 (CEST) User-Agent: Thunderbird 2.0.0.19 (X11/20090114) In-Reply-To: <4C0E6302.90904@uni-ulm.de> 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:59440 Archived-At: Michael Murphy wrote: > I know that if I want to have clickable hyperlinks for citations, I need > to turn off 'compress' for the citation type: > > \setupcite[authoryears][compress=no] > > The problem is that this doesn't seem to work: I get an 'unknown > reference' error. > > references : unknown reference [][Balachandran2008 > references : unknown reference [][Balachandran2008 > references : unknown reference [][Balachandran2008 > > Strangely, this only happens when I want to refer to multiple authors, > e.g. \cite[ref1, ref2, ref3], and everything works fine if I just do > \cite[ref1]. > > I've attached a minimal example. Where am I going wrong? It also only happens in mkiv, something is broken there. As is usual in the mkiv version of the bib module, I can't figure it out :( However, here is a workaround: %%%%%%%% \setupinteraction[state=start] \usemodule[bib] \let\NORMALcite\cite \newif\ifSEEN \def\cite#1[#2]{\SEENfalse \def\processitem##1{\ifSEEN, \else\SEENtrue \fi \NORMALcite[##1]}% (\processcommalist[#2]\processitem )} \setuppublications[refcommand=authoryears] \setupcite[authoryears][compress=no,left=,right=] \starttext .. %%%%%%%% Best wishes, Taco ___________________________________________________________________________________ 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 ___________________________________________________________________________________