From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/67599 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: MKIV: Wrong conversion for \date Date: Mon, 4 Apr 2011 12:31:24 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: multipart/mixed; boundary="===============2012670805==" X-Trace: dough.gmane.org 1301913120 27319 80.91.229.12 (4 Apr 2011 10:32:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 4 Apr 2011 10:32:00 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 04 12:31:52 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q6h4Z-0000kH-UC for gctc-ntg-context-518@m.gmane.org; Mon, 04 Apr 2011 12:31:52 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4393ACAB9C; Mon, 4 Apr 2011 12:31:51 +0200 (CEST) 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 QnBil0T3ZevU; Mon, 4 Apr 2011 12:31:45 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B44AACAB98; Mon, 4 Apr 2011 12:31:45 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 774FFCAB98 for ; Mon, 4 Apr 2011 12:31:44 +0200 (CEST) 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 PEKAhYMd4DsK for ; Mon, 4 Apr 2011 12:31:30 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 4D295CAB97 for ; Mon, 4 Apr 2011 12:31:30 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p34AVSZE028572 for ; Mon, 4 Apr 2011 12:31:29 +0200 Original-Received: by fxm18 with SMTP id 18so5412101fxm.14 for ; Mon, 04 Apr 2011 03:31:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:from:content-type:subject:date:message-id:to :mime-version:x-mailer; bh=W7T7fEWb4qXUz0VJ/mO+JqQJlhoYjd6+lC3UoMknEBM=; b=H/1IVfr5MGST2m2oMktO443o921aMPE64KBZMEJN8o/S8/fo92zTXlGfWHiG5FZk7Z 8L7xIInNlCYZINMF2FND8fZLRGrHzf3W65nU7mb0vAc3yPQMRIqpd/Zk1bu4EuYAIq7n se3O1S5Ho84FzHXk+cPj6UKWneDdbP8Hd6/LM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:content-type:subject:date:message-id:to:mime-version:x-mailer; b=COiC40XpWOvrsP/zKbKYsHsn+EswpGjhW3dGi+S12zlplpjQCO0Av3VCumH6B1t6GO 2Jxou1Qbp/1S6I9yP3OYRtxdskaFvrtb0unstQAE9YfQdjKGgByEd5P/pFe26doDD+Sp 3vmNJTfdvPOvePv7/IyxRrMsKltVE/Bhq26oA= Original-Received: by 10.223.14.137 with SMTP id g9mr660656faa.8.1301913088623; Mon, 04 Apr 2011 03:31:28 -0700 (PDT) Original-Received: from [192.168.2.31] (p5B295E4C.dip.t-dialin.net [91.41.94.76]) by mx.google.com with ESMTPS id n15sm1654266fam.36.2011.04.04.03.31.26 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 04 Apr 2011 03:31:27 -0700 (PDT) X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rErmvsey - 70925687ac6d - 20110404 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:67599 Archived-At: --===============2012670805== Content-Type: multipart/alternative; boundary=Apple-Mail-44--664145736 --Apple-Mail-44--664145736 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Hi Hans, there are a few problems with the keywords for \date in MkIV. \starttext \starttabulate[|l|l|l|] \NC keyword \NC MkII \NC MKIV \NC\NR \NC day \NC 4 \NC \currentdate[day] \NC\NR \NC day+ \NC 4 \NC \currentdate[day+] \NC\NR \NC month \NC April \NC \currentdate[month] \NC\NR \NC year \NC 2011 \NC \currentdate[year] \NC\NR \NC d \NC 4 \NC \currentdate[d] \NC\NR \NC d+ \NC 4 \NC \currentdate[d+] \NC\NR \NC m \NC April \NC \currentdate[m] \NC\NR \NC j \NC 2011 \NC \currentdate[j] \NC\NR \NC y \NC 2011 \NC \currentdate[y] \NC\NR \NC w \NC Monday \NC \currentdate[w] \NC\NR \NC dd \NC 04 \NC \currentdate[dd] \NC\NR \NC dd+ \NC 4 \NC \currentdate[dd+] \NC\NR \NC mm \NC 04 \NC \currentdate[mm] \NC\NR \NC jj \NC 11 \NC \currentdate[jj] \NC\NR \NC yy \NC 11 \NC \currentdate[yy] \NC\NR \NC weekday \NC Monday \NC \currentdate[weekday] \NC\NR \NC referral \NC 20110404 \NC \currentdate[referral] \NC\NR \stoptabulate \stoptext What i miss is also a way to get the month with a single digit, e.g.=20 \currentdate[day,.,month,.,year] print =934.April.2011=94 but i want =934.4.2011=94. Wolfgang --Apple-Mail-44--664145736 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252 Hi = Hans,

there are a few problems with the keywords for = \date in = MkIV.

\starttext

\s= tarttabulate[|l|l|l|]
\NC keyword  \NC MkII     = \NC MKIV                   = \NC\NR
\NC day      \NC 4       =  \NC \currentdate[day]      \NC\NR
\NC = day+     \NC 4        \NC = \currentdate[day+]     \NC\NR
\NC month   =  \NC April    \NC \currentdate[month]   =  \NC\NR
\NC year     \NC 2011     \NC = \currentdate[year]     \NC\NR
\NC d     =    \NC 4        \NC \currentdate[d]   =      \NC\NR
\NC d+       \NC 4 =        \NC \currentdate[d+]       = \NC\NR
\NC m        \NC April   =  \NC \currentdate[m]       =  \NC\NR
\NC j        \NC 2011   =   \NC \currentdate[j]       =  \NC\NR
\NC y        \NC 2011   =   \NC \currentdate[y]       =  \NC\NR
\NC w        \NC Monday =   \NC \currentdate[w]       =  \NC\NR
\NC dd       \NC 04     =   \NC \currentdate[dd]       \NC\NR
\NC = dd+      \NC 4        \NC = \currentdate[dd+]      \NC\NR
\NC mm   =     \NC 04       \NC \currentdate[mm]   =     \NC\NR
\NC jj       \NC 11   =     \NC \currentdate[jj]       = \NC\NR
\NC yy       \NC 11       = \NC \currentdate[yy]       \NC\NR
\NC weekday =  \NC Monday   \NC \currentdate[weekday] =  \NC\NR
\NC referral \NC 20110404 \NC = \currentdate[referral] = \NC\NR
\stoptabulate

\stoptext

What i miss is also a way to get the month with a = single digit, = e.g. 

  \currentdate[day,.,month,.= ,year]

print =934.April.2011=94= but i want = =934.4.2011=94.

Wolfgang

= --Apple-Mail-44--664145736-- --===============2012670805== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============2012670805==--