From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87218 Path: news.gmane.org!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Some problems with a new style for the sections Date: Sun, 4 May 2014 13:21:16 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0949163777==" X-Trace: ger.gmane.org 1399202505 14241 80.91.229.3 (4 May 2014 11:21:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 May 2014 11:21:45 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun May 04 13:21:41 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 1WguUC-0006ZP-CM for gctc-ntg-context-518@m.gmane.org; Sun, 04 May 2014 13:21:36 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E149310243 for ; Sun, 4 May 2014 13:21:35 +0200 (CEST) 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 c7E+7cofQb5V for ; Sun, 4 May 2014 13:21:35 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id A9B58101EA for ; Sun, 4 May 2014 13:21:31 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 21DD4101EA for ; Sun, 4 May 2014 13:21:27 +0200 (CEST) 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 jQA6UjZyzSV5 for ; Sun, 4 May 2014 13:21:25 +0200 (CEST) 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 8EF81101E1 for ; Sun, 4 May 2014 13:21:17 +0200 (CEST) Original-Received: from mail-we0-x231.google.com (mail-we0-x231.google.com [IPv6:2a00:1450:400c:c03::231]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s44BLG0r017745 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sun, 4 May 2014 13:21:16 +0200 Original-Received: by mail-we0-f177.google.com with SMTP id x48so1053249wes.36 for ; Sun, 04 May 2014 04:21:16 -0700 (PDT) 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=Atu+b50sARqQb6i8UKP/sLJRk1N0ogTUvGu1RyevA8k=; b=0/UF34fuiCTS50dGXXYZ+nwRmDzNXEPDFEpoTowfOMPh96q076JgizTa01oxKDHJp3 833padd9F3BCcPtB/0XxdiTZhOSnjCqkBUqrsYOOKXmjVVQGZcwn+JV5iuWJGhHmGigH fJ/QY83g/NgaMzQFu02nQlH7sPwN6Z6Iqc+kQLfYo8Qpmhme3G3A573PWWGf84tBZoc+ yaUtUG3ZqVIhNkYDIYm4aZ4Zzixe3V3Pj5grWKfjBnmwf0NV59FlSWmbqkGlA71rVId1 c2V6QHKuX04W9+Y7BqPpeFTfyiRmFOraDWkh8DhM38oc/u3iYQRGf7WNmS0WE9iyTPUw M3Sw== X-Received: by 10.194.95.195 with SMTP id dm3mr22318908wjb.17.1399202476401; Sun, 04 May 2014 04:21:16 -0700 (PDT) Original-Received: by 10.227.1.70 with HTTP; Sun, 4 May 2014 04:21:16 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c03::231; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WLVLlghV - ec0567048a66 - 20140504 (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:87218 Archived-At: --===============0949163777== Content-Type: multipart/alternative; boundary=047d7beb9b8093272804f8913635 --047d7beb9b8093272804f8913635 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, I encounter two problems : - Section numbers are not red ; - Calling the second section does not cause the creation of a new paragraph= . Regards, Fabrice \setupcolors[state=3Dstart] \def\MySectionCommand#1#2% {\framed [frame=3Doff, width=3D\textwidth, align=3D{right}, background=3Dcolor, backgroundcolor=3Dlightgray] {#1\quad#2}} \setuphead[section][command=3D\MySectionCommand,numbercolor=3Dred] \setupbodyfont[palatino,12pt] \starttext \MySectionCommand{A.}{D=C3=A9finitions} \input knuth \MySectionCommand{1.}{Propri=C3=A9t=C3=A9s} \input knuth --047d7beb9b8093272804f8913635 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,
I encounter two problems :
- Section numbers are not red ;
-= Calling the second = section does not cause the creation of
a new paragraph.
Regards,
Fabrice

\setup= colors[state=3Dstart]
\def\MySectionCommand#1#2%
=C2=A0 {\framed
= =C2=A0=C2=A0=C2=A0=C2=A0 [frame=3Doff,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 wi= dth=3D\textwidth,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 align=3D{right},
=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 background=3Dcolor,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 backgroundcolor=3Dlightgray]
=C2=A0=C2=A0= =C2=A0=C2=A0 {#1\quad#2}}

\setuphead[section][command=3D\MySectionCo= mmand,numbercolor=3Dred]

\setupbodyfont[palatino,12pt]

\start= text

\MySectionCommand{A.}{D=C3=A9finitions}
\input knuth
\MySectionCommand{1.}{Propri=C3=A9t=C3=A9s}
\input knuth=
--047d7beb9b8093272804f8913635-- --===============0949163777== 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 ___________________________________________________________________________________ --===============0949163777==--