<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif"><span class="gmail-tlid-translation gmail-translation"><span title="">Hi,</span><br><span title="">Aditya offered me this macro some time ago for my header</span>. <span title="">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.</span><br><span title="">Thank you.</span><br><span title="">Fabrice</span></span></div><div class="gmail_default" style="font-family:verdana,sans-serif"><span class="gmail-tlid-translation gmail-translation"><span title=""><br></span></span></div><div class="gmail_default" style="font-family:verdana,sans-serif"><span class="gmail-tlid-translation gmail-translation"><span title="">\setupbackgrounds<br>   [header]<br>   [text]<br>   [frame=off,<br>    topframe=off,<br>    bottomframe=on,<br>    framecolor=,<br>    rulethickness=1pt]<br><br>\defineframed<br>   [headerframed]<br>   [frame=off,<br>    height=fit,<br>    width=fit]<br><br>\startsetups [headertext]<br><br>\setupheadertexts<br>   [{<br>     \startframed [headerframed] [foregroundstyle=bold]<br>     \getvariable{headertext}{title} n\high{o}\,\getvariable{headertext}{number}<br>     \stopframed<br>   }]<br><br>\setupheadertexts<br>        [{<br>          \startframed [headerframed] [align=flushleft,foregroundstyle=\ssx]<br>          \getvariable{headertext}{location}\\<br>          \getvariable{headertext}{time}<br>          \stopframed<br>        }]<br>        [{<br>          \startframed [headerframed] [align=flushright,foregroundstyle=\ssx]<br>           Lycée LA SALLE\\<br>          \date[d=\getvariable{headertext}{day},m=\getvariable{headertext}{month},y=\getvariable{headertext}{year}]<br>          \stopframed<br>        }]<br><br>  \stopsetups<br><br><br>\setvariable{headertext}{set}{\directsetup{headertext}}<br>\setvariables<br>  [headertext]<br>  [title={Devoir surveillé de Mathématiques},<br>   number={4},<br>   day={27},<br>   month={02},<br>   year={2019},<br>   location={T\high{\tfxx ale}~ES},<br>   time={3 heures}]<br><br>\starttext <br>  \input knuth<br>\stoptext<br></span></span></div></div></div>