From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/81248 Path: news.gmane.org!not-for-mail From: "Meer H. van der" Newsgroups: gmane.comp.tex.context Subject: Re: date problem Date: Wed, 20 Mar 2013 15:29:42 +0100 Message-ID: <9C45DD42-66CC-44D5-97F0-E008E1834D96@uva.nl> References: <5BD5774E-29BF-4620-88DF-202671B4EE87@uva.nl> <4451C3C4-3D71-45E0-A57D-4C2E0F14E45D@gmail.com> <12DBBD2C-ABF6-4DA6-A5BE-42624E20FDC2@uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1363789788 24504 80.91.229.3 (20 Mar 2013 14:29:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Mar 2013 14:29:48 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 20 15:30:12 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UIK1r-0000S1-71 for gctc-ntg-context-518@m.gmane.org; Wed, 20 Mar 2013 15:30:11 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BE55B10209; Wed, 20 Mar 2013 15:29:47 +0100 (CET) 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 yZQ9oYnLOaZu; Wed, 20 Mar 2013 15:29:46 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id ECA97101EF; Wed, 20 Mar 2013 15:29:45 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 71611101EF for ; Wed, 20 Mar 2013 15:29:45 +0100 (CET) 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 Fj9Kv+0Nk0YJ for ; Wed, 20 Mar 2013 15:29:44 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 10CAC101EE for ; Wed, 20 Mar 2013 15:29:43 +0100 (CET) Original-Received: from ezel.ic.uva.nl (ezel.ic.uva.nl [146.50.108.158]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r2KETgtc026067 for ; Wed, 20 Mar 2013 15:29:43 +0100 Original-Received: from elhalyn-ethernet.fritz.box (a82-95-102-36.adsl.xs4all.nl [82.95.102.36]) (authenticated bits=0) by ezel.ic.uva.nl (8.13.8/8.13.8) with ESMTP id r2KETgqM012155 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Wed, 20 Mar 2013 15:29:42 +0100 In-Reply-To: X-Mailer: Apple Mail (2.1503) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=146.50.108.158; country=NL; region=07; city=Amsterdam; latitude=52.3500; longitude=4.9167; http://maps.google.com/maps?q=52.3500,4.9167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TJdOtH0z - d1f4ed466a54 - 20130320 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:81248 Archived-At: I see. But this is not working too. Following your suggestion I now get: \edef\thisdate{\ctxcommand{currentdate("month, ,day, , year","\currentlan= guage")}}\writestatus{***}{\meaning\thisdate} *** > macro:->\labeltext {march} 20 2013 The problem is essentially the same. I am most unhappy with this, because fixing the current date in some macro = shouldn't be impossible. = And why all those extra ,s in month, ,day, , year? I would suggest that besides \currentdate one should be able to also use \c= urrentdate[month][day][year][language], \currentdate[day][mont][year][langu= age],etc. And then be able to store the expansion in a macro. Is it possibl= e to incorporate this in the next beta? By the way, the \time and \currenttime pose the same problem, here even \ra= wtime seems nonexistent. Hans van der Meer On 20 mrt. 2013, at 15:11, Wolfgang Schuster wrote: > = > Am 20.03.2013 um 14:52 schrieb Meer H. van der : > = >> One step further, thanks. >> But why does >> \edef\thedate{\rawdate[]}\writestatus{***}{\meaning\thedate} >> result in >> ** > macro:->unknown march 2013 >> instead of 20 march 2013? > = > Provide a *working* minimal example because when I run this example > = > \starttext > \rawdate[] > \stoptext > = > I get =93march unknown, 2013=94 as output. > = > = > When I use now (instead of \currentlanguage you can also use a language t= ag, e.g. "nl") > = > \starttext > \ctxcommand{currentdate("month, ,day, , year","\currentlanguage")} > \stoptext > = > I get as output =93March 20 2013=94. The problem with \rawdate is that no= language is passed > and context doesn=92t convert the labels for the month/years and also the= day results in > a default string, i.e. it produces the =93unknown=94 string. > = > Wolfgang > _________________________________________________________________________= __________ > 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-co= ntext > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > _________________________________________________________________________= __________ ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________