<div dir="ltr"><span style="font-family:verdana,sans-serif"><span id="result_box" class="" lang="en"><span class="">Hi</span><span class="">,</span> <br><span class="">I use</span> <span class="">the following</span> <span class="">header to</span> <span class="">my</span> <span class="">statements</span> <span class="">made with</span> <span class="">tittlesec</span> <span class="">package.</span> <br>
<br>\makeatletter<br><br>    \newcommand{\@classe}[1]{}<br>    \newcommand{\classe}[1]{\gdef\@classe{#1}}<br>    \newcommand{\@typedevoir}[1]{}<br>    \newcommand{\typedevoir}[1]{\gdef\@typedevoir{#1}}<br>    \newcommand{\@numerodevoir}[1]{}<br>
    \newcommand{\numerodevoir}[1]{\gdef\@numerodevoir{#1}}<br>    \AtBeginDocument{\section{\@typedevoir\space\no\@numerodevoir}}<br>    \titleformat{\section}[frame]<br>      {\normalfont}<br>      {\footnotesize\enspace\itshape\@classe\enspace--\enspace Le \@date\enspace}<br>
      {10pt}<br>      {\Large\scshape\bfseries\filcenter}<br>  \makeatother<br><br><span class="">I</span> <span class="">want to</span> <span class="">gradually</span> <span class="">move to</span> <span class="">ConTeXt</span> <span class="">and I tried</span> <span class="">to create the same</span> <span class="">header.</span> <br>
<span class="">But I</span> <span class="">do not yet know</span> <span class="">all the</span> <span class="">commands to do</span> <span class="">with</span> <span class="">ConTeXt</span><span>.</span><br><br>\setuptextrules<br>
[style=\it,location=top]<br>\define[6]\MyHeader{%<br>  \textrule[top]{#1\space--\space\date[d=#2,m=#3,y=#4]}{\startlinealignment[middle]{\cap \bf #5 \space n\high{{o}}\space {#6}}\stoplinealignment\blank\textrule}}<br><br>
\starttext<br>\MyHeader{Seconde GTA}{11}{1}{2014}{Devoir de Mathématiques}{7}</span></span><br><span style="font-family:verdana,sans-serif"><span id="result_box" class="" lang="en"><span style="font-family:verdana,sans-serif"><span id="result_box" class="" lang="en">\stoptext</span></span><br>
<span class="">Thank you</span><span class="">.</span></span></span></div>