From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/103386 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Macro for a header does not work as well Date: Mon, 18 Feb 2019 12:04:12 +0100 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0316022481665521621==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="133500"; mail-complaints-to="usenet@blaine.gmane.org" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Feb 18 12:06:51 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 1gvgl8-000Ybb-Hr for gctc-ntg-context-518@m.gmane.org; Mon, 18 Feb 2019 12:06:50 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B317CEEE64; Mon, 18 Feb 2019 12:05:28 +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 K3sGlKinfpBD; Mon, 18 Feb 2019 12:05:23 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 54717EEE62; Mon, 18 Feb 2019 12:05:23 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DD9A1EEE62 for ; Mon, 18 Feb 2019 12:05:22 +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 ALjbB7PBNmGL for ; Mon, 18 Feb 2019 12:05:22 +0100 (CET) Original-Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (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 56079EED59 for ; Mon, 18 Feb 2019 12:05:22 +0100 (CET) Original-Received: by mail-wr1-f51.google.com with SMTP id t18so17911042wrx.2 for ; Mon, 18 Feb 2019 03:05:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=KM7VJ3ovUYQfWchyynnRJmdT7ZbpZsQWkrw+dxxtCaM=; b=nnbaIPFVhmVTD0I63jPMNcQgCBgIEGXPwuYlML6Q6ms6E8EVhWyC4uLRZdGrecIH2Q qKlSwWvxrHKhbYPvMwh/HIriwI/w3SEf029qyoyf41DQCX9yLZWxvl0MVv4bhHKZ25+m VjYf3CukrU6VMYriIHY8kcJIHZ+CMmtZ2a1ytB2eFMirW2pxVKFlxmWFejH1DqSBi0XM 2yuLwQooc/6fY0WpB4BZA8Cr1H63dayhRkuil43pYqrtrhR2LIpUbrNjMaa/mAktOJvw pU6fBFdPHjFHHzC91ggb0IKB6GKff8/2zYKlgeF6NgH8unsEhb6D5BStak+hlWAwrJG6 qyJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=KM7VJ3ovUYQfWchyynnRJmdT7ZbpZsQWkrw+dxxtCaM=; b=E1kY6iA3o/d/kLMZPpHYPts+sHxXhL1xmZeyKahkcAtrvvtiXFQ+fqhmTky2LhClwe tuDVhuLX39djAJJUP7LA9psO+itwTaw/3stNcqbeXMz22gdd7+9U2DNiqIg/MedDren+ 1KUUXeuRCtCmPqFskuqUgeSRi0WHN91YyLptfsPfPtAWefPUfLixLO6CXYOP3UjOOQF/ QOoMM6f+UC7dKuzQGjr6cz4KtZCeyjhctQWbqCsoZ48eQa1Fmic6926E+6RJ3kTCoepV fLZ6QPgyldYOV1C1xVfl+E2U8fRk+MOVHCHP7b3nIrLfqYqTmOzqTEAiRMcziSNx4V+M xMbw== X-Gm-Message-State: AHQUAuYiT5V+/JoUFKMpUqbte0dwwXpPGObZ63Mlk1DjVxkrbJpn9QCQ sCJRNhL3yJQeBWxvgehJ77emSimL3gDA6ES2ErqBA2ch X-Google-Smtp-Source: AHgI3IZZrVpALqgLzRzt3d5W8x4YC2/ibpNf5e1rPnkJvVcmn8DyE1nvttMM6U0IUV0YypafGXXP8z6i/Kw6WKBjySs= X-Received: by 2002:adf:f691:: with SMTP id v17mr16849460wrp.66.1550487921658; Mon, 18 Feb 2019 03:05:21 -0800 (PST) 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:103386 Archived-At: --===============0316022481665521621== Content-Type: multipart/alternative; boundary="000000000000cc91940582291934" --000000000000cc91940582291934 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 evaluation (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}{month}= ,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 --000000000000cc91940582291934 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,
Aditya offered m= e this macro some time ago for my header. I updated= context standalone, and the display of the date I want to do the evaluatio= n (different from the current date) is no longer the same.
Thank you.
Fabrice

<= /span>
\setupbackgrounds
=C2=A0=C2=A0 [header]
=C2=A0=C2=A0 [te= xt]
=C2=A0=C2=A0 [frame=3Doff,
=C2=A0=C2=A0=C2=A0 topframe=3Doff,
= =C2=A0=C2=A0=C2=A0 bottomframe=3Don,
=C2=A0=C2=A0=C2=A0 framecolor=3D,=C2=A0=C2=A0=C2=A0 rulethickness=3D1pt]

\defineframed
=C2=A0=C2= =A0 [headerframed]
=C2=A0=C2=A0 [frame=3Doff,
=C2=A0=C2=A0=C2=A0 heig= ht=3Dfit,
=C2=A0=C2=A0=C2=A0 width=3Dfit]

\startsetups [headertex= t]

\setupheadertexts
=C2=A0=C2=A0 [{
=C2=A0=C2=A0=C2=A0=C2=A0 = \startframed [headerframed] [foregroundstyle=3Dbold]
=C2=A0=C2=A0=C2=A0= =C2=A0 \getvariable{headertext}{title} n\high{o}\,\getvariable{headertext}{= number}
=C2=A0=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=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \startframed [headerframed= ] [align=3Dflushleft,foregroundstyle=3D\ssx]
=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 \getvariable{headertext}{location}\\
=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \getvariable{headertext}{t= ime}
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \stopframed<= br>=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=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 \startframed [headerframed] [align=3Dflushright,foregroundstyle= =3D\ssx]
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Ly= c=C3=A9e LA SALLE\\
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 \date[d=3D\getvariable{headertext}{day},m=3D\getvariable{headertext}{mo= nth},y=3D\getvariable{headertext}{year}]
=C2=A0=C2=A0=C2=A0=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 \stopsetups


\setvariable{headertext}{= set}{\directsetup{headertext}}
\setvariables
=C2=A0 [headertext]
= =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 al= e}~ES},
=C2=A0=C2=A0 time=3D{3 heures}]

\starttext
=C2=A0 \in= put knuth
\stoptext
--000000000000cc91940582291934-- --===============0316022481665521621== 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== --===============0316022481665521621==--