From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/105005 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Re: Problem of displaying a date with a macro Date: Mon, 9 Sep 2019 15:24:17 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2996687788688550059==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="142554"; mail-complaints-to="usenet@blaine.gmane.org" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Sep 09 15:25:07 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 1i7JfG-000ave-78 for gctc-ntg-context-518@m.gmane.org; Mon, 09 Sep 2019 15:25:06 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 5429F160B38; Mon, 9 Sep 2019 15:24:52 +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 FO9ODzAoKOWf; Mon, 9 Sep 2019 15:24:51 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6CDD6160B3B; Mon, 9 Sep 2019 15:24:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7C9D1160B38 for ; Mon, 9 Sep 2019 15:24:49 +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 8F937VmhaCMj for ; Mon, 9 Sep 2019 15:24:48 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.128.48; helo=mail-wm1-f48.google.com; envelope-from=fabrice1.couvreur@gmail.com; receiver= Original-Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 98005160B07 for ; Mon, 9 Sep 2019 15:24:48 +0200 (CEST) Original-Received: by mail-wm1-f48.google.com with SMTP id t9so14657750wmi.5 for ; Mon, 09 Sep 2019 06:24:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=Yl1SnGgapt5d7UxGk9wMbwZ9X56/nXAPNi5wa7AWOrA=; b=UFBfEvtrZSV+uUnKtL+b/gxl2hWdZiJlyrrZt1Z0Q54Wrr83OkmcOIaLa3x1chilu8 SvOsEfd4RF5vhrslEhtgswTH0DO5Iiq4xu+Hiah8LJKZEPHWOONnZpFsHKLwluIDzFSv lTyuHus6p5OYJwQeRFkD8i6yA0inD352TeYBq8delhIG6/2HIabCHbhvF5dud6vXH8Kn d13Rr3hu8YyzYhoGs+wXolkRoFsat04Xsdo3jC06xqudDFAuCYUiVOMxRek94dcpZe2b 8obL7jX8589QIkiZG5lk8ejjE19sMBulFE6xHyK3VOKbEXxYk7BXZFY+E47oGnaegbCl idnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=Yl1SnGgapt5d7UxGk9wMbwZ9X56/nXAPNi5wa7AWOrA=; b=BFduDTCamKqXPwP04TZiAbNb4ZxGKssCCXDeWoxAagOmUGZmzUM5qdM14QQ14saq5p R5ubKZwvrZ1uBb7hQysdeXB+alIt5xLlJTZYxPsnV5fnj8SLsJCwx16ZC/9j5rZi1nPX bpuNQUqRpvUleJb5M6KmjayOF87urPJ/X1zei/V/6WNy4T4wx/i1al5H8tH6fmdjwo5U DjWASCmmyCLtR+r+uZqLx3xtt3dMEG7I7zvagccENNlcSAURLj8PxaKehBoYM5ilgrXI ri2QDEaceBAwk8YOZth9TDmMingKfDe0yR6aM0OyD8sj7CCKspLmCyEnCfQZzuEUE+oh YfDw== X-Gm-Message-State: APjAAAWtDW3hdHv3ZBMBrpl7xgwJJ9IVy94cpHwflRIww0RPEW1gv8Me ju8VrFMXvP+h/E3Qoi2Jj4yS7+l3GjVfvKIcIGxS1DLci4Y= X-Google-Smtp-Source: APXvYqxfCeFHJfvJpbIOJWnRkJCgpdeevT+g14kPFiY+0h6pHg+bPXYvgAzDT/obeB3m/9tAT6Thxv15huvccIdwODk= X-Received: by 2002:a1c:ed06:: with SMTP id l6mr18511781wmh.167.1568035487874; Mon, 09 Sep 2019 06:24:47 -0700 (PDT) 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:105005 Archived-At: --===============2996687788688550059== Content-Type: multipart/alternative; boundary="00000000000040020e05921eb627" --00000000000040020e05921eb627 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, I just updated my version of ConTeXt and the bug is still present. Can you confirm ? Thank you. Fabrice Le mer. 28 ao=C3=BBt 2019 =C3=A0 16:34, Aditya Mahajan = a =C3=A9crit : > 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. > This appears to be related to that. Should be fixed in the next beta. > > > Aditya___________________________________________________________________= ________________ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > _________________________________________________________________________= __________ > --00000000000040020e05921eb627 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,
I just updated m= y version of ConTeXt and the bug is still present.
Can you confirm ?
Thank you.
Fabrice

=
Le=C2=A0mer. 28 ao=C3=BBt 2019 =C3=A0= =C2=A016:34, Aditya Mahajan <aditya= m@umich.edu> a =C3=A9crit=C2=A0:
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
>=C2=A0 =C2=A0 [headerframed]
>=C2=A0 =C2=A0 [frame=3Doff,
>=C2=A0 =C2=A0 =C2=A0height=3Dfit,
>=C2=A0 =C2=A0 =C2=A0width=3Dfit]
>
>=C2=A0 \definecolor[ColorA][0.8(white)]
>
>
>=C2=A0 \startsetups [headertext]
>
>=C2=A0 =C2=A0 \setupheadertexts
>=C2=A0 =C2=A0 =C2=A0 [{\startframed [headerframed]
>=C2=A0 =C2=A0 =C2=A0 [foregroundstyle=3Dbold,background=3Dframewithshad= ow]
>=C2=A0 =C2=A0 =C2=A0 \getvariable{headertext}{title}
> n\high{o}\,\getvariable{headertext}{number}
>=C2=A0 =C2=A0 =C2=A0 \stopframed}]
>
>=C2=A0 =C2=A0 \setupheadertexts
>=C2=A0 =C2=A0 =C2=A0 [{\startframed [headerframed]
>=C2=A0 =C2=A0 =C2=A0 [align=3Dflushleft,foregroundstyle=3D]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0Lyc=C3=A9e LA SALLE, Lille\\
>=C2=A0 =C2=A0 =C2=A0 =C2=A0\getvariable{headertext}{location}
>=C2=A0 =C2=A0 =C2=A0 =C2=A0\stopframed}]
>
>=C2=A0 =C2=A0 =C2=A0 [{\startframed [headerframed]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [align=3Dflushright,foregroundstyle= =3D]
>
> \date[d=3D\getvariable{headertext}{day},m=3D\getvariable{headertext}{m= onth},y=3D\getvariable{headertext}{year}]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 \stopframed}]
>
>=C2=A0 \stopsetups
>
>=C2=A0 \setvariable{headertext}{set}{\directsetup{headertext}}
>
> \startuseMPgraphic{framewithshadow}
> path p;
> p:=3Dorigin--(OverlayWidth,0)--(OverlayWidth,OverlayHeight)--(0,Overla= yHeight)--cycle;
> fill p shifted (2,-2);
> fill p withcolor 0.8white;
> draw p;
> setbounds currentpicture to p;
> \stopuseMPgraphic
>
> \defineoverlay[framewithshadow][\useMPgraphic{framewithshadow}]
>
> \starttext
> \setvariables
>=C2=A0 =C2=A0[headertext]
>=C2=A0 =C2=A0[title=3D{Devoir maison},
>=C2=A0 =C2=A0 number=3D{6},
>=C2=A0 =C2=A0 day=3D{02},
>=C2=A0 =C2=A0 month=3D{09},
>=C2=A0 =C2=A0 year=3D{2019},
>=C2=A0 =C2=A0 location=3D{Seconde B},
>=C2=A0 =C2=A0 time=3D{}]
> \input knuth
> \stoptext

There was a bug with the \date macro which I had reported a few days ago. <= br> This appears to be related to that. Should be fixed in the next beta.

Aditya_____________________________________________________________________= ______________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--00000000000040020e05921eb627-- --===============2996687788688550059== 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== --===============2996687788688550059==--