From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24846 Path: news.gmane.org!not-for-mail From: =?ISO-8859-15?Q?Peter_M=FCnster?= Newsgroups: gmane.comp.tex.context Subject: Re: 2 m-bib questions Date: Thu, 29 Dec 2005 23:51:23 +0100 (CET) Message-ID: References: <20040809102432.2339ead9@glenlivet.elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1135936137 27197 80.91.229.2 (30 Dec 2005 09:48:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 30 Dec 2005 09:48:57 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 30 10:48:55 2005 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1EsGsT-0001lS-5i for gctc-ntg-context-518@m.gmane.org; Fri, 30 Dec 2005 10:48:49 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3061B127FE; Fri, 30 Dec 2005 10:48:48 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 24411-05; Fri, 30 Dec 2005 10:48:42 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B2636127C0; Fri, 30 Dec 2005 10:48:41 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 36CB6127C0 for ; Fri, 30 Dec 2005 10:48:40 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 24510-03 for ; Fri, 30 Dec 2005 10:48:39 +0100 (CET) Original-Received: from smtp6-g19.free.fr (smtp6-g19.free.fr [212.27.42.36]) by ronja.ntg.nl (Postfix) with SMTP id 42AD4127BD for ; Fri, 30 Dec 2005 10:48:39 +0100 (CET) Original-Received: from gaston.free.fr (c5850-a3-2-62-147-21-192.dial.proxad.net [62.147.21.192]) by smtp6-g19.free.fr (Postfix) with ESMTP id 5C20217ED5 for ; Fri, 30 Dec 2005 10:48:38 +0100 (CET) Original-Received: by gaston.free.fr (Postfix, from userid 500) id 9759313C062; Thu, 29 Dec 2005 23:51:23 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by gaston.free.fr (Postfix) with ESMTP id 8C292148132 for ; Thu, 29 Dec 2005 23:51:23 +0100 (CET) X-X-Sender: peter@gaston.free.fr Original-To: mailing list for ConTeXt users In-Reply-To: <20040809102432.2339ead9@glenlivet.elvenkind.com> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:24846 Archived-At: On Mon, 9 Aug 2004, Taco Hoekwater wrote: > On Sun, 8 Aug 2004 19:25:27 +0200 (CEST), Peter wrote: > > > * The lost space after \cite[...], is it a bug or a feature? > > It is unintentional, and I will try to fix that behaviour in the future. Hello Taco, it seems that the bug is still there. After quite some time of investigation, here comes my workaround: \usemodule[bib] \let\citeO\cite% original cite command \unprotect \def\cite{\bgroup \def\inspectnextcharacter{% removed treatment of blanks \ifx\nexttoken\charactertoken \@EAEAEA\!!stringa \else \@EAEAEA\!!stringb \fi}% \dodoubleempty\doMyCite} \def\doMyCite[#1][#2]{% \ifsecondargument\gdef\@SecondArgument{y}\else\gdef\@SecondArgument{n}\fi \egroup \doifelse\@SecondArgument{y}{\citeO[#1][#2]}{\citeO[#1]\relax}} \protect \starttext bla \cite[options][key1] bla \cite[key2] bla \placepublications \stoptext I think there are other commands with that behaviour, but I don't remember which ones... Cheers, Peter -- http://pmrb.free.fr/contact/