From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/103408 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Re: Macro for a header does not work as well Date: Tue, 19 Feb 2019 11:37:51 +0100 Message-ID: References: <3C162700-4CB9-4712-9663-92039266AABD@gmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3863618485526535371==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="199023"; mail-complaints-to="usenet@blaine.gmane.org" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Feb 19 11:39:29 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 1gw2oD-000pgB-4A for gctc-ntg-context-518@m.gmane.org; Tue, 19 Feb 2019 11:39:29 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2EC4CEFB0B; Tue, 19 Feb 2019 11:39:05 +0100 (CET) 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 uvUhclJFnaRO; Tue, 19 Feb 2019 11:39:03 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8215DEFB08; Tue, 19 Feb 2019 11:39:03 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 89183EFB08 for ; Tue, 19 Feb 2019 11:39:02 +0100 (CET) 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 JpWYmHMtqmmN for ; Tue, 19 Feb 2019 11:39:01 +0100 (CET) Original-Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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 B56C0EFAD3 for ; Tue, 19 Feb 2019 11:39:01 +0100 (CET) Original-Received: by mail-wm1-f41.google.com with SMTP id e74so1437806wmg.3 for ; Tue, 19 Feb 2019 02:39:01 -0800 (PST) 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=ebOH3asKLIzP1OKupME8qr/BYzIEAV+LBsNiNdonqKE=; b=FY9AUqfdd1ZnxxApdkVGl5EDYxrynA2d+3gy+LGJKGRESQ9m7pZU+A86sK+/BWoCsJ X8g7XZruHAdL5FX/YLQ+GS4m+2VhczE9zyZK8ea6K+u8d+Dxs6Hkp6ejQvyVtpoA3ixL oyxgKEXvDSuOFjCvBvCNWMCHnEjue/hDB0YLDlnZsRCGYzpnIfJdtvCzxUuDhZkI6SdL FQUBXmC074YjpwdZlYaeThrpX2eBmEMctcvH7/wV9tFuwPHfLXHDBsK8jHgu9CrCvumY 93NLzsgBqVeQka2OdzKCANRUOto7H1ca97pN4Rc7rC7Xq7krj4VZfRC0e7a4Hwty8OE6 ciug== 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=ebOH3asKLIzP1OKupME8qr/BYzIEAV+LBsNiNdonqKE=; b=qMYql55dT4On+SJo2J/0Fmf0AA50s2BdvQW0BgjpQcn9ygRPsl1O5TZ3KS5Az3yllf 9nW7thWobh5S8y5VrHrdaRZKNGaQy+IV77/Hqe6HUaPQJpmpPOwvyOuazqMtbHOy/+PQ MXODRMmB/U7B0zNgopcYvDJedp9fEBtyINrsQ9zWlUZ2O1coTqD74B5OTTvKJScA0vw3 0y7/1xNqlRTYcZGi/WWBN7hUkU2uaNXeemVQTTPf4R/hRbNSztlm0a33udgzF0M2Lbny GqnItgpwk1hb7F93JJpMHGfYx4ROX/lr8r1PdAhC+3N8UGbr8kjLotguizxOzVvWqGbE F2wg== X-Gm-Message-State: AHQUAuZaDRbMH3+E+gzsCdPIaW4QWTTicGNWpFD2mQ4p2JsDr7SEUksJ SvNe897cd4qxIQGOssc7LbjcV8M0NZMwjdl9TnIH2wDR X-Google-Smtp-Source: AHgI3Ia/hC8cDBfAJ4iZqeGRrGKrpB1pKg2D4wMXAevRX2JVUunWcvIDrE0NXpCGk2GqM6efwLiCMxPODtnCoi2UI88= X-Received: by 2002:a1c:9e4a:: with SMTP id h71mr2465209wme.82.1550572741013; Tue, 19 Feb 2019 02:39:01 -0800 (PST) In-Reply-To: <3C162700-4CB9-4712-9663-92039266AABD@gmail.com> 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:103408 Archived-At: --===============3863618485526535371== Content-Type: multipart/alternative; boundary="0000000000006d375205823cd9c2" --0000000000006d375205823cd9c2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Otared, No that's not what I want to talk about. Before I got this "27 f=C3=A9vrier 2019" and now this d =3D 27 m =3D 02 y =3D 2019. Thank you. Fabrice Le lun. 18 f=C3=A9vr. 2019 =C3=A0 14:31, Otared Kavian a= =C3=A9crit : > Hi Fabrice, > > Do you mean the fact that the date is not in the usual French format? In > that case you should add > > \mainlanguage[fr] > > to the beginning of your file. > > Best regards: OK > > > On 18 Feb 2019, at 12:04, Fabrice Couvreur > wrote: > > > > Hi, > > Aditya offered me this macro some time ago for my header. I updated > context standalone, and the display of the date I want to do the evaluati= on > (different from the current date) is no longer the same. > > Thank you. > > Fabrice > > > > \setupbackgrounds > > [header] > > [text] > > [frame=3Doff, > > topframe=3Doff, > > bottomframe=3Don, > > framecolor=3D, > > rulethickness=3D1pt] > > > > \defineframed > > [headerframed] > > [frame=3Doff, > > height=3Dfit, > > width=3Dfit] > > > > \startsetups [headertext] > > > > \setupheadertexts > > [{ > > \startframed [headerframed] [foregroundstyle=3Dbold] > > \getvariable{headertext}{title} > n\high{o}\,\getvariable{headertext}{number} > > \stopframed > > }] > > > > \setupheadertexts > > [{ > > \startframed [headerframed] > [align=3Dflushleft,foregroundstyle=3D\ssx] > > \getvariable{headertext}{location}\\ > > \getvariable{headertext}{time} > > \stopframed > > }] > > [{ > > \startframed [headerframed] > [align=3Dflushright,foregroundstyle=3D\ssx] > > Lyc=C3=A9e LA SALLE\\ > > > \date[d=3D\getvariable{headertext}{day},m=3D\getvariable{headertext}{mon= th},y=3D\getvariable{headertext}{year}] > > \stopframed > > }] > > > > \stopsetups > > > > > > \setvariable{headertext}{set}{\directsetup{headertext}} > > \setvariables > > [headertext] > > [title=3D{Devoir surveill=C3=A9 de Math=C3=A9matiques}, > > number=3D{4}, > > day=3D{27}, > > month=3D{02}, > > year=3D{2019}, > > location=3D{T\high{\tfxx ale}~ES}, > > time=3D{3 heures}] > > > > \starttext > > \input knuth > > \stoptext > > > _________________________________________________________________________= __________ > > 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 > > > _________________________________________________________________________= __________ > > > _________________________________________________________________________= __________ > 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 > > _________________________________________________________________________= __________ > --0000000000006d375205823cd9c2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Otared,
No that's not what I w= ant to talk about. Before I got this "27 f=C3= =A9vrier 2019" and now this d =3D 27 m =3D 02 y =3D 2019.
Thank you.

Fabrice<= /div>

Le=C2=A0lun. 18 f=C3=A9vr. 2019 =C3=A0=C2=A014:31, Otared Kavian <<= a href=3D"mailto:otared@gmail.com">otared@gmail.com> a =C3=A9crit=C2= =A0:
Hi Fabrice,=

Do you mean the fact that the date is not in the usual French format? In th= at case you should add

=C2=A0 =C2=A0 =C2=A0 =C2=A0 \mainlanguage[fr]

to the beginning of your file.

Best regards: OK

> On 18 Feb 2019, at 12:04, Fabrice Couvreur <fabrice1.couvreur@gmail.com&g= t; wrote:
>
> Hi,
> Aditya offered me this macro some time ago for my header. I updated co= ntext standalone, and the display of the date I want to do the evaluation (= different from the current date) is no longer the same.
> Thank you.
> Fabrice
>
> \setupbackgrounds
>=C2=A0 =C2=A0 [header]
>=C2=A0 =C2=A0 [text]
>=C2=A0 =C2=A0 [frame=3Doff,
>=C2=A0 =C2=A0 =C2=A0topframe=3Doff,
>=C2=A0 =C2=A0 =C2=A0bottomframe=3Don,
>=C2=A0 =C2=A0 =C2=A0framecolor=3D,
>=C2=A0 =C2=A0 =C2=A0rulethickness=3D1pt]
>
> \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]
>
> \startsetups [headertext]
>
> \setupheadertexts
>=C2=A0 =C2=A0 [{
>=C2=A0 =C2=A0 =C2=A0 \startframed [headerframed] [foregroundstyle=3Dbol= d]
>=C2=A0 =C2=A0 =C2=A0 \getvariable{headertext}{title} n\high{o}\,\getvar= iable{headertext}{number}
>=C2=A0 =C2=A0 =C2=A0 \stopframed
>=C2=A0 =C2=A0 }]
>
> \setupheadertexts
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[{
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\startframed [headerframed] [a= lign=3Dflushleft,foregroundstyle=3D\ssx]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\getvariable{headertext}{locat= ion}\\
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\getvariable{headertext}{time}=
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\stopframed
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0}]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[{
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\startframed [headerframed] [a= lign=3Dflushright,foregroundstyle=3D\ssx]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Lyc=C3=A9e LA SALLE\\
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\date[d=3D\getvariable{headert= ext}{day},m=3D\getvariable{headertext}{month},y=3D\getvariable{headertext}{= year}]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\stopframed
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0}]
>
>=C2=A0 =C2=A0\stopsetups
>
>
> \setvariable{headertext}{set}{\directsetup{headertext}}
> \setvariables
>=C2=A0 =C2=A0[headertext]
>=C2=A0 =C2=A0[title=3D{Devoir surveill=C3=A9 de Math=C3=A9matiques}, >=C2=A0 =C2=A0 number=3D{4},
>=C2=A0 =C2=A0 day=3D{27},
>=C2=A0 =C2=A0 month=3D{02},
>=C2=A0 =C2=A0 year=3D{2019},
>=C2=A0 =C2=A0 location=3D{T\high{\tfxx ale}~ES},
>=C2=A0 =C2=A0 time=3D{3 heures}]
>
> \starttext
>=C2=A0 =C2=A0\input knuth
> \stoptext
> ______________________________________________________________________= _____________
> 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/listin= fo/ntg-context
> webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.ne= t
> archive=C2=A0 : https://bitbucket.org/phg/cont= ext-mirror/commits/
> wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
> ______________________________________________________________________= _____________

___________________________________________________________________________= ________
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
___________________________________________________________________________= ________
--0000000000006d375205823cd9c2-- --===============3863618485526535371== 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== --===============3863618485526535371==--