From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17253 Path: main.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: m-bib, \cite and no year? Date: Wed, 24 Nov 2004 13:58:31 +0100 Organization: Elvenkind Message-ID: <20041124135831.0ae7eaff.taco@elvenkind.com> References: <41A332BA.2090509@creutzig.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1101301218 12635 80.91.229.6 (24 Nov 2004 13:00:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 24 Nov 2004 13:00:18 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 24 14:00:02 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CWwkc-0007bs-00 for ; Wed, 24 Nov 2004 14:00:02 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4EDD112799; Wed, 24 Nov 2004 14:00:01 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31768-02; Wed, 24 Nov 2004 13:59:57 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id ADF3A12778; Wed, 24 Nov 2004 13:59:57 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D086212778 for ; Wed, 24 Nov 2004 13:59:55 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31690-04 for ; Wed, 24 Nov 2004 13:59:55 +0100 (CET) Original-Received: from post-24.mail.nl.demon.net (unknown [194.159.73.194]) by ronja.ntg.nl (Postfix) with ESMTP id 2414A1276F for ; Wed, 24 Nov 2004 13:59:55 +0100 (CET) Original-Received: from boo.demon.nl ([82.161.175.147]:38758) by post-24.mail.nl.demon.net with smtp (Exim 4.34) id 1CWwkR-0002lP-0K for ntg-context@ntg.nl; Wed, 24 Nov 2004 12:59:51 +0000 Original-To: ntg-context@ntg.nl In-Reply-To: <41A332BA.2090509@creutzig.de> X-Mailer: Sylpheed version 0.8.5 (GTK+ 1.2.10; i586-mandrake-linux-gnu) X-Virus-Scanned: by 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: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:17253 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17253 Hi, Christopher Creutzig wrote: > with no year entry, and this comes out as "Wikipedia ()". I think the > parens should only be used if the year is nonempty. In authoryear styles, year entries are usually required, so I am going to keep this as it is now. You can either use \cite[author] for this case, or you could build your own \cite command, in a similar way to Tobias' answer: \setupcite[author,year][left={},right={}] \def\mycite[#1]{% \setbox\scratchbox\hbox{\cite[year][#1]}% \ifdim \wd\scratchbox > 0pt \cite[author][#1]~(\cite[year][#]1)% \else \cite[author][#1]% \fi} (untested code) > Second, I getempty entries in my list of references, which do get a > number. Also, the first 20 numbers are printed in red, while the > subsequent entries are in black. I know this is a vague description, I > haven't been able to analyze it in more detail yet. Just wanted to let > you know. Too vague for a diagnosis, actually. You'd need to supply me with a minimal complete file that recreates the error. There is nothing I can do with your information right now. > Third, I have entries in my bibliography where the authors are listed > with their family names only. This causes spurious commas in the list > of references. I'll probably add initials and/or chrisitan names where > I know them, but I think m-bib should support these entries. I really should, i agree. Added to the todo list. Greetings, Taco