<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif"><span class="gmail-tlid-translation gmail-translation"><span title="">Hi Otared,</span><br><span title="">No that's not what I want to talk about.</span> <span title="">Before I got this "27 février 2019" and now this d = 27 m = 02 y = 2019.</span><br><span title="">Thank you.</span><br><span title="">Fabrice</span></span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 18 févr. 2019 à 14:31, Otared Kavian <<a href="mailto:otared@gmail.com">otared@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Fabrice,<br>
<br>
Do you mean the fact that the date is not in the usual French format? In that case you should add<br>
<br>
        \mainlanguage[fr]<br>
<br>
to the beginning of your file.<br>
<br>
Best regards: OK<br>
<br>
> On 18 Feb 2019, at 12:04, Fabrice Couvreur <<a href="mailto:fabrice1.couvreur@gmail.com" target="_blank">fabrice1.couvreur@gmail.com</a>> wrote:<br>
> <br>
> Hi,<br>
> 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.<br>
> Thank you.<br>
> Fabrice<br>
> <br>
> \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>
> ___________________________________________________________________________________<br>
> If your question is of interest to others as well, please add an entry to the Wiki!<br>
> <br>
> maillist : <a href="mailto:ntg-context@ntg.nl" target="_blank">ntg-context@ntg.nl</a> / <a href="http://www.ntg.nl/mailman/listinfo/ntg-context" rel="noreferrer" target="_blank">http://www.ntg.nl/mailman/listinfo/ntg-context</a><br>
> webpage  : <a href="http://www.pragma-ade.nl" rel="noreferrer" target="_blank">http://www.pragma-ade.nl</a> / <a href="http://context.aanhet.net" rel="noreferrer" target="_blank">http://context.aanhet.net</a><br>
> archive  : <a href="https://bitbucket.org/phg/context-mirror/commits/" rel="noreferrer" target="_blank">https://bitbucket.org/phg/context-mirror/commits/</a><br>
> wiki     : <a href="http://contextgarden.net" rel="noreferrer" target="_blank">http://contextgarden.net</a><br>
> ___________________________________________________________________________________<br>
<br>
___________________________________________________________________________________<br>
If your question is of interest to others as well, please add an entry to the Wiki!<br>
<br>
maillist : <a href="mailto:ntg-context@ntg.nl" target="_blank">ntg-context@ntg.nl</a> / <a href="http://www.ntg.nl/mailman/listinfo/ntg-context" rel="noreferrer" target="_blank">http://www.ntg.nl/mailman/listinfo/ntg-context</a><br>
webpage  : <a href="http://www.pragma-ade.nl" rel="noreferrer" target="_blank">http://www.pragma-ade.nl</a> / <a href="http://context.aanhet.net" rel="noreferrer" target="_blank">http://context.aanhet.net</a><br>
archive  : <a href="https://bitbucket.org/phg/context-mirror/commits/" rel="noreferrer" target="_blank">https://bitbucket.org/phg/context-mirror/commits/</a><br>
wiki     : <a href="http://contextgarden.net" rel="noreferrer" target="_blank">http://contextgarden.net</a><br>
___________________________________________________________________________________<br>
</blockquote></div>