From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86006 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: New header Date: Sat, 18 Jan 2014 11:58:00 +0100 Message-ID: <429EDDD6-0290-41EC-8A36-1FFE70ECA594@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Content-Type: multipart/mixed; boundary="===============0332798305==" X-Trace: ger.gmane.org 1390042681 28306 80.91.229.3 (18 Jan 2014 10:58:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Jan 2014 10:58:01 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 18 11:58:10 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 1W4TbM-0001Gs-Gt for gctc-ntg-context-518@m.gmane.org; Sat, 18 Jan 2014 11:58:08 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D7FB2101EE; Sat, 18 Jan 2014 11:58:07 +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 kH8uvliSmlRP; Sat, 18 Jan 2014 11:58:06 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 74561101E6; Sat, 18 Jan 2014 11:58:06 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D2C0D101E6 for ; Sat, 18 Jan 2014 11:58:04 +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 nzlJECpuAGPk for ; Sat, 18 Jan 2014 11:58:04 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 014C6101E1 for ; Sat, 18 Jan 2014 11:58:03 +0100 (CET) Original-Received: from mail-bk0-x233.google.com (mail-bk0-x233.google.com [IPv6:2a00:1450:4008:c01::233]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s0IAw2MR017875 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sat, 18 Jan 2014 11:58:02 +0100 Original-Received: by mail-bk0-f51.google.com with SMTP id w10so1954503bkz.24 for ; Sat, 18 Jan 2014 02:58:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=byMMKBIPGHkeAlKS8pzUNP2DbS/up3smTbCQJjzRGZQ=; b=BaEsAPD+6UsnYhMFGIwRbQJJ83CVd0gtnwHyKbjB6Z83JlH6ItdA6qOu85HNoZXNda 3A/ST1hNE/g+fEhtrF8PMk2xQBDasO5OqqTBLpOCQS3ArWSx6D0dCc16krsnP3lqz01g OBSuK4aUAQSCZUl8ICR+XsIftw294X0BgHwKLyI+k95AOH6KX/73JpRfnVnhO9KK96Ua XjL1Wzno5n9k4GmthVntPwTpb3UBS81v0+sNp6Y26SXl6BlXG+S/XHv/1j9QLPGOMAqt hRxgiLfJFSkgJnHfWvcVyR/nsc0Ug6vk2TN9H9IEU8PXOd2Lmc3+G7ubowiSDbgSsNqm wQVQ== X-Received: by 10.205.54.81 with SMTP id vt17mr8316bkb.176.1390042682302; Sat, 18 Jan 2014 02:58:02 -0800 (PST) Original-Received: from keima.localdomain (x2f25012.dyn.telefonica.de. [2.242.80.18]) by mx.google.com with ESMTPSA id s9sm12228938bkg.15.2014.01.18.02.58.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 18 Jan 2014 02:58:01 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1827) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4008:c01::233; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0RLfmW2qB - 21fe81c79b7a - 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:86006 Archived-At: --===============0332798305== Content-Type: multipart/alternative; boundary="Apple-Mail=_A0094BCF-EB22-431F-89FD-DDF129745389" --Apple-Mail=_A0094BCF-EB22-431F-89FD-DDF129745389 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Am 18.01.2014 um 11:52 schrieb Fabrice Couvreur = : > Hi,=20 > I use the following header to my statements made with tittlesec = package.=20 >=20 > \makeatletter >=20 > \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 >=20 > I want to gradually move to ConTeXt and I tried to create the same = header.=20 > But I do not yet know all the commands to do with ConTeXt. Can you show the output from LaTeX which is more use than some piece of = code. Wolfgang= --Apple-Mail=_A0094BCF-EB22-431F-89FD-DDF129745389 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=iso-8859-1
Am 18.01.2014 um 11:52 schrieb Fabrice Couvreur <fabrice1.couvreur@gmail.com>:

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.

Can you show the output from LaTeX which is more use than some piece of code.

Wolfgang
--Apple-Mail=_A0094BCF-EB22-431F-89FD-DDF129745389-- --===============0332798305== 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 ___________________________________________________________________________________ --===============0332798305==--