From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86005 Path: news.gmane.org!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: New header Date: Sat, 18 Jan 2014 11:52:56 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1992126785==" X-Trace: ger.gmane.org 1390042376 25408 80.91.229.3 (18 Jan 2014 10:52:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Jan 2014 10:52:56 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 18 11:53:02 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W4TWQ-0005c0-Hb for gctc-ntg-context-518@m.gmane.org; Sat, 18 Jan 2014 11:53:02 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9DA23101EB; Sat, 18 Jan 2014 11:53:01 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 6y55ehP25UlY; Sat, 18 Jan 2014 11:53:00 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 32F69101E6; Sat, 18 Jan 2014 11:53:00 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 04445101E6 for ; Sat, 18 Jan 2014 11:52:59 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id j+C-qEy5HNUP for ; Sat, 18 Jan 2014 11:52:58 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 32531101E1 for ; Sat, 18 Jan 2014 11:52:58 +0100 (CET) Original-Received: from mail-we0-x22c.google.com (mail-we0-x22c.google.com [IPv6:2a00:1450:400c:c03::22c]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s0IAqvpt019600 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sat, 18 Jan 2014 11:52:57 +0100 Original-Received: by mail-we0-f172.google.com with SMTP id q58so5533982wes.17 for ; Sat, 18 Jan 2014 02:52:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=IdoE97BDk2ErZMmCtIfxB0tIaTpJ3LvZzT6SJFSNBdE=; b=SlX5375xAWbGx26oTcPF7t+OHTPuhtyGdUWW8i7TkFlgFnt5Zc/i4m65bzHh5TN7fi Yx+Hs3+NBmP69UEamNaH423t60hE2i4/OGYpNobk3iE3szfdtBghL6UU7noT6UOeVBO0 9al6F6Nl8EOsteQBIaQvdhswngM/kXpFiituYrmH0LrxMoLg+lItrzLg3iRDmNpWIWUW QLiuyadKrtZ6ayI3/EceDAqD01AvDcYxTuTankkKsUQ3n6dItprc0c3/9aHETM5ElbRU OnVCSSRetsUZJZoMPbtOiXRKbK6WOpgaS3J/fjnPAxj3QzcHEzPHvMP+t7QNyAbqgRH0 X81A== X-Received: by 10.180.218.171 with SMTP id ph11mr2287403wic.7.1390042376989; Sat, 18 Jan 2014 02:52:56 -0800 (PST) Original-Received: by 10.227.69.2 with HTTP; Sat, 18 Jan 2014 02:52:56 -0800 (PST) X-Bayes-Prob: 0.0011 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c03::22c; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WLfmQVlk - fe44a9c1ad08 - 20140118 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 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-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:86005 Archived-At: --===============1992126785== Content-Type: multipart/alternative; boundary=001a1134d2301a71d204f03c7693 --001a1134d2301a71d204f03c7693 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, I use the following header to my statements made with tittlesec package. \makeatletter \newcommand{\@classe}[1]{} \newcommand{\classe}[1]{\gdef\@classe{#1}} \newcommand{\@typedevoir}[1]{} \newcommand{\typedevoir}[1]{\gdef\@typedevoir{#1}} \newcommand{\@numerodevoir}[1]{} \newcommand{\numerodevoir}[1]{\gdef\@numerodevoir{#1}} \AtBeginDocument{\section{\@typedevoir\space\no\@numerodevoir}} \titleformat{\section}[frame] {\normalfont} {\footnotesize\enspace\itshape\@classe\enspace--\enspace Le \@date\enspace} {10pt} {\Large\scshape\bfseries\filcenter} \makeatother I want to gradually move to ConTeXt and I tried to create the same header. But I do not yet know all the commands to do with ConTeXt. \setuptextrules [style=3D\it,location=3Dtop] \define[6]\MyHeader{% \textrule[top]{#1\space--\space\date[d=3D#2,m=3D#3,y=3D#4]}{\startlinealign= ment[middle]{\cap \bf #5 \space n\high{{o}}\space {#6}}\stoplinealignment\blank\textrule}} \starttext \MyHeader{Seconde GTA}{11}{1}{2014}{Devoir de Math=E9matiques}{7} \stoptext Thank you. --001a1134d2301a71d204f03c7693 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,
I use the follo= wing header to my statements
made with tittlesec package.

\makeatletter

=A0=A0=A0 \newcommand{\@classe}[1]{}
=A0=A0=A0 = \newcommand{\classe}[1]{\gdef\@classe{#1}}
=A0=A0=A0 \newcommand{\@typed= evoir}[1]{}
=A0=A0=A0 \newcommand{\typedevoir}[1]{\gdef\@typedevoir{#1}}=
=A0=A0=A0 \newcommand{\@numerodevoir}[1]{}
=A0=A0=A0 \newcommand{\numerodevoir}[1]{\gdef\@numerodevoir{#1}}
=A0=A0= =A0 \AtBeginDocument{\section{\@typedevoir\space\no\@numerodevoir}}
=A0= =A0=A0 \titleformat{\section}[frame]
=A0=A0=A0=A0=A0 {\normalfont}
= =A0=A0=A0=A0=A0 {\footnotesize\enspace\itshape\@classe\enspace--\enspace Le= \@date\enspace}
=A0=A0=A0=A0=A0 {10pt}
=A0=A0=A0=A0=A0 {\Large\scshape\bfseries\filcente= r}
=A0 \makeatother

I wa= nt to gradually move to ConTeXt and I tried to create the same header. But I do not yet know all the
commands to do with ConTeXt.

\s= etuptextrules
[style=3D\it,location=3Dtop]
\define[6]\MyHeader{%
=A0 \textrule[top]= {#1\space--\space\date[d=3D#2,m=3D#3,y=3D#4]}{\startlinealignment[middle]{\= cap \bf #5 \space n\high{{o}}\space {#6}}\stoplinealignment\blank\textrule}= }

\starttext
\MyHeader{Seconde GTA}{11}{1}{2014}{Devoir de Math=E9matiques= }{7}
\stoptext
Thank you.
--001a1134d2301a71d204f03c7693-- --===============1992126785== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1992126785==--