From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/40673 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Date with three-letter month Date: Thu, 24 Apr 2008 10:04:41 -0400 (EDT) Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1209046034 29341 80.91.229.12 (24 Apr 2008 14:07:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Apr 2008 14:07:14 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 24 16:07:48 2008 connect(): Connection refused 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 lo.gmane.org with esmtp (Exim 4.50) id 1Jp25R-0003gL-FN for gctc-ntg-context-518@m.gmane.org; Thu, 24 Apr 2008 16:06:09 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AF9C11FBD4; Thu, 24 Apr 2008 16:05:27 +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 09033-03-2; Thu, 24 Apr 2008 16:04:47 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AC6D81FBB9; Thu, 24 Apr 2008 16:04:47 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 967ED1FBA8 for ; Thu, 24 Apr 2008 16:04:46 +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 08648-09-2 for ; Thu, 24 Apr 2008 16:04:08 +0200 (CEST) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by ronja.ntg.nl (Postfix) with ESMTP id CCB6F1FBCB for ; Thu, 24 Apr 2008 16:04:07 +0200 (CEST) Original-Received: FROM adi-laptop.local (c-68-40-40-75.hsd1.mi.comcast.net [68.40.40.75]) BY hellskitchen.mr.itd.umich.edu ID 48109353.F049B.1062 ; 24 Apr 2008 10:04:04 -0400 In-Reply-To: User-Agent: Alpine 1.00 (DEB 882 2007-12-20) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:40673 Archived-At: On Thu, 24 Apr 2008, richard.stephens@converteam.com wrote: >>> I have consulted the manuals and even the source (core-con.tex) but I >>> cannot find a way of getting a three-letter month using the \date > command. >>> For example, I would like to display today's date as 23-Apr-08. This >>> gives a short display suitable for use in a margin, but avoids the >>> confusion of American (04-23-08) vs English (23-04-08) ordering when > using >>> numbers. >>> Can anyone help? >> >> These are available (sort of) >> >> \currentdate[day,--,{\monthshort\normalmonth},--,year] % lowercase >> >> or >> >> \currentdate[day,--,{\MONTHSHORT\normalmonth},--,year] % uppercase >> >> Best wishes, >> Taco > > Thanks Taco. This does the job. All I need now is a version (\Monthshort > ??) which puts the first > letter in uppercase, Jan , Feb, etc. See if this works (untested) \unprotect \setuplabeltext [\s!en] [\v!january :\s!mnem=Jan.] \setuplabeltext [\s!en] [\v!february :\s!mnem=Feb.] \setuplabeltext [\s!en] [\v!march :\s!mnem=Mar.] \setuplabeltext [\s!en] [\v!april :\s!mnem=Apr.] \setuplabeltext [\s!en] [\v!may :\s!mnem=May] \setuplabeltext [\s!en] [\v!june :\s!mnem=Jun.] \setuplabeltext [\s!en] [\v!july :\s!mnem=Jul.] \setuplabeltext [\s!en] [\v!august :\s!mnem=Aug.] \setuplabeltext [\s!en] [\v!september:\s!mnem=Sep.] \setuplabeltext [\s!en] [\v!october :\s!mnem=Oct.] \setuplabeltext [\s!en] [\v!november :\s!mnem=Nov.] \setuplabeltext [\s!en] [\v!december :\s!mnem=Dec.] \protect ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________