From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/59454 Path: news.gmane.org!not-for-mail From: Michael Murphy Newsgroups: gmane.comp.tex.context Subject: Re: Mutiple citations doesn't work with compress=no + interaction Date: Wed, 09 Jun 2010 14:31:30 +0200 Message-ID: <4C0F89A2.5090008@uni-ulm.de> References: <4C0E6302.90904@uni-ulm.de> <4C0E9033.7090105@elvenkind.com> <4C0F5D19.7010106@uni-ulm.de> <4C0F5DBD.5080605@elvenkind.com> <4C0F6025.3010807@uni-ulm.de> <4C0F74DC.9050607@elvenkind.com> 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 1276086709 11247 80.91.229.12 (9 Jun 2010 12:31:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 Jun 2010 12:31:49 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jun 09 14:31:46 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 1OMKRe-0002RC-4H for gctc-ntg-context-518@m.gmane.org; Wed, 09 Jun 2010 14:31:46 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C2365C9BF4; Wed, 9 Jun 2010 14:31:45 +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 72wMC2Ey1DVo; Wed, 9 Jun 2010 14:31:39 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3B861C9BBC; Wed, 9 Jun 2010 14:31:39 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 560A1C9BBC for ; Wed, 9 Jun 2010 14:31:37 +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 Ry20yA-kAWi8 for ; Wed, 9 Jun 2010 14:31:32 +0200 (CEST) Original-Received: from mail.uni-ulm.de (mail.uni-ulm.de [134.60.1.11]) by balder.ntg.nl (Postfix) with ESMTP id 498BFC9BB2 for ; Wed, 9 Jun 2010 14:31:32 +0200 (CEST) Original-Received: from [134.60.83.35] (karneol3.physik.uni-ulm.de [134.60.83.35]) (authenticated bits=0) by mail.uni-ulm.de (8.14.3/8.14.2) with ESMTP id o59CVVAI027871 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 9 Jun 2010 14:31:31 +0200 (MEST) User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-GB; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4 In-Reply-To: <4C0F74DC.9050607@elvenkind.com> X-DCC-dcc.uncw.edu-Metrics: poseidon 1201; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: by amavisd-new 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:59454 Archived-At: On 09/06/10 13:02, Taco Hoekwater wrote: > Michael Murphy wrote: >> >> Thanks for the code, but that turns out not to help. The problem seems >> to be when I want to have references in footnotes (see attached >> minimal example). > > Ok, now I see. Attached is a new version of min_bib_fn.tex that fixes > citations in footnotes. However ... something totally weird happens > in the current context and beta's: the footnote appears to be repeated > inside the body text. > > For some reason I do not understand, \placepublications also seems to > process the footnote list (and because there is no proper definition > for handling them, rubbish appears on the top of the publication list). > > This problem is not caused by the \cite inside the \footnote, nor by the > redefinition of \cite, it happens without those as well. Thanks, that works a treat. I also noticed the thing with the footnote, but it doesn't happen in my main document, so I wondered if it had something to do with the minimal setup. But you're right, it seems to always happen with \placepublications. Anyway, I've now modified things slightly so that I can still use the optional forms of \cite (like \cite[authoryear]), so my file now looks like \setupinteraction[state=start] \usemodule[bib] \setuppublications[refcommand=authoryears, criterium=all] \let\NORMALcite\cite \newif\ifSEEN \unexpanded\def\cite[#1]{\strictdoifnextoptionalelse{\NORMALcite[#1]}% {\domycite[#1]}} \def\domycite#1[#2]{\SEENfalse \def\processitem##1{\ifSEEN, \else\SEENtrue \fi \NORMALcite[##1]}% (\processcommalist[#2]\processitem )} \setupcite[authoryears][compress=no,left=,right=] \setupcite[authoryear][compress=no] ... Of course, the other disadvantage of this at present is that I don't get 'and' separating the last two references when I use \domycite. But I can live with that (on screen at least, for printing I can revert to the old behaviour). -- Michael Murphy ___________________________________________________________________________________ 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 ___________________________________________________________________________________