From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/104907 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Problem of displaying a date with a macro Date: Wed, 28 Aug 2019 10:33:56 -0400 (EDT) Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="-830189494-843424545-1567002837=:30279" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="261220"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Alpine 2.21 (LNX 202 2017-01-01) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 28 16:34:40 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i2z1z-0015oO-SR for gctc-ntg-context-518@m.gmane.org; Wed, 28 Aug 2019 16:34:40 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2AA7F153A4E; Wed, 28 Aug 2019 16:34:15 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id A3E3Rq3nutR8; Wed, 28 Aug 2019 16:34:14 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 21DC9153A4F; Wed, 28 Aug 2019 16:34:14 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6023B153A4D for ; Wed, 28 Aug 2019 16:34:13 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id k6FbvzaC3_x2 for ; Wed, 28 Aug 2019 16:34:12 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=141.211.12.86; helo=tombraider.mr.itd.umich.edu; envelope-from=adityam@umich.edu; receiver= Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.12.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 4A4CF153A4A for ; Wed, 28 Aug 2019 16:34:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=relay-2016-05-12; t=1567002850; bh=RIBfTD+FstSEUO/2nwJa4fwox4c/HFuGEf6iiQ1gKq4=; h=Date:From:To:Subject:In-Reply-To:References; b=Pd+ld5t6uaTjOF8i/gYMgPY8XlIyHPB37SvQKKrwnu6QUmORJ5fu273EhWH0izvQC yw2bqCt638Q4+R1t9HIU1PgTcqB2cjOEQr6zippYarZU4tBWDXhlGSPRFDunsn/5iO rKLq+rnyDMiRY/8FvL4W7CJSyM3eCpnjxdEzPTIqRRpKcbjqni1cB+5/pKLoPuG262 431pAKUKNsJYBdTX33svNDr4IbT2fycLjXU2rk5D1lH1ThFAfMuJt5YUQ8HbFQKf7x S/Ca7aTg5FJ4y7wudi1Zp51uJtlOtBNxb888zLcQ+WbTZBijgNbDmA8bmOyVNlKXnH 238aZmGs9540A== Authentication-Results: tombraider.mr.itd.umich.edu; iprev=pass policy.iprev=132.206.74.80 (reinforce.cim.mcgill.ca); auth=pass smtp.auth=adityam Original-Received: FROM reinforce.cim.mcgill.ca (reinforce.cim.mcgill.ca [132.206.74.80]) By tombraider.mr.itd.umich.edu ID 5D6690E1.AF6F5.26415; Authuser adityam; Wed, 28 Aug 2019 10:34:09 -0400 In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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" Xref: news.gmane.org gmane.comp.tex.context:104907 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---830189494-843424545-1567002837=:30279 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Wed, 28 Aug 2019, Fabrice Couvreur wrote: > Hello, > The date display is incorrect : I get day 28 instead of day 2. > Thank you > Fabrice > > \defineframed > [headerframed] > [frame=3Doff, > height=3Dfit, > width=3Dfit] > > \definecolor[ColorA][0.8(white)] > > > \startsetups [headertext] > > \setupheadertexts > [{\startframed [headerframed] > [foregroundstyle=3Dbold,background=3Dframewithshadow] > \getvariable{headertext}{title} > n\high{o}\,\getvariable{headertext}{number} > \stopframed}] > > \setupheadertexts > [{\startframed [headerframed] > [align=3Dflushleft,foregroundstyle=3D] > Lyc=C3=A9e LA SALLE, Lille\\ > \getvariable{headertext}{location} > \stopframed}] > > [{\startframed [headerframed] > [align=3Dflushright,foregroundstyle=3D] > > \date[d=3D\getvariable{headertext}{day},m=3D\getvariable{headertext}{mont= h},y=3D\getvariable{headertext}{year}] > \stopframed}] > > \stopsetups > > \setvariable{headertext}{set}{\directsetup{headertext}} > > \startuseMPgraphic{framewithshadow} > path p; > p:=3Dorigin--(OverlayWidth,0)--(OverlayWidth,OverlayHeight)--(0,OverlayHe= ight)--cycle; > fill p shifted (2,-2); > fill p withcolor 0.8white; > draw p; > setbounds currentpicture to p; > \stopuseMPgraphic > > \defineoverlay[framewithshadow][\useMPgraphic{framewithshadow}] > > \starttext > \setvariables > [headertext] > [title=3D{Devoir maison}, > number=3D{6}, > day=3D{02}, > month=3D{09}, > year=3D{2019}, > location=3D{Seconde B}, > time=3D{}] > \input knuth > \stoptext There was a bug with the \date macro which I had reported a few days ago.= =20 This appears to be related to that. Should be fixed in the next beta. Aditya ---830189494-843424545-1567002837=:30279 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== ---830189494-843424545-1567002837=:30279--