From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/27779 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Bib bug in using months Date: Tue, 9 May 2006 15:09:14 -0400 (EDT) Message-ID: References: <445F42BE.2010608@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" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1147201802 29754 80.91.229.2 (9 May 2006 19:10:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 9 May 2006 19:10:02 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue May 09 21:09:59 2006 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 1FdXaF-0001T6-AF for gctc-ntg-context-518@m.gmane.org; Tue, 09 May 2006 21:09:23 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 00E78127EB; Tue, 9 May 2006 21:09:23 +0200 (CEST) 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 13606-02-3; Tue, 9 May 2006 21:09:19 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D7BDC127E0; Tue, 9 May 2006 21:09:18 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C9C98127E0 for ; Tue, 9 May 2006 21:09:16 +0200 (CEST) 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 13606-02-2 for ; Tue, 9 May 2006 21:09:15 +0200 (CEST) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.161]) by ronja.ntg.nl (Postfix) with SMTP id 693F1127DE for ; Tue, 9 May 2006 21:09:15 +0200 (CEST) Original-Received: FROM aditya.engin.umich.edu (udhcp-wlan121.public.engin.umich.edu [141.213.120.131]) BY tombraider.mr.itd.umich.edu ID 4460E8DA.35C08.17005 ; 9 May 2006 15:09:14 -0400 Original-To: mailing list for ConTeXt users In-Reply-To: <445F42BE.2010608@elvenkind.com> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:27779 Archived-At: On Mon, 8 May 2006, Taco Hoekwater wrote: > > Hi Aditya, > > > Aditya Mahajan wrote: >> However, the bib module does not support this naming scheme. I get >> >> \month{1} >> \month{2} >> >> etc in my bbl file. Can this be corrected? > > Sure, it is just an oversight. For this to work, only a redefinition > of \insertmonth is needed (I had intented that all along, just > forgot to implement it), For now, just add this somewhere after > the loading of the bib module. > > \unprotect > \def\insertmonth#1#2#3% > {\bibdoifelse{\@@pb@month}% > {#1\doifnumberelse{\@@pb@month}% > {\@EA\doconvertmonth\@EA{\@@pb@month}}% > {\@@pb@month}#2}{#3}} > \protect > > That will give you the full month name according to the current > language labeltext for the month names. Not perfect yet, but better. Thanks. For my present project I need short month names, and the deadline is tomorrow. So, I will stick to the manual solution at the moment. > I'll ask Hans to provide true \numberconversions for month names in > short and long format, so I can extend the module officially. That will be great. Aditya -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008