From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87136 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Numbering in a frame with a new environment Date: Sun, 27 Apr 2014 14:26:50 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Content-Type: multipart/mixed; boundary="===============1175432815==" X-Trace: ger.gmane.org 1398601643 14018 80.91.229.3 (27 Apr 2014 12:27:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Apr 2014 12:27:23 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Apr 27 14:27:18 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 1WeOAu-0004h0-HC for gctc-ntg-context-518@m.gmane.org; Sun, 27 Apr 2014 14:27:16 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D76AD10261 for ; Sun, 27 Apr 2014 14:27:15 +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 qD5sOM0dt+5Z for ; Sun, 27 Apr 2014 14:27:15 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 7476A10209 for ; Sun, 27 Apr 2014 14:27:11 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BDCB0101F5 for ; Sun, 27 Apr 2014 14:27:07 +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 E8QCmefjfFGk for ; Sun, 27 Apr 2014 14:27:06 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 363A7101EB for ; Sun, 27 Apr 2014 14:26:58 +0200 (CEST) Original-Received: from mail-ee0-x231.google.com (mail-ee0-x231.google.com [IPv6:2a00:1450:4013:c00::231]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s3RClTbl028991 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sun, 27 Apr 2014 14:47:29 +0200 Original-Received: by mail-ee0-f49.google.com with SMTP id c41so4021496eek.36 for ; Sun, 27 Apr 2014 05:26:57 -0700 (PDT) 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=0uzT+B49MC8LUoGsxGgEwCIsDIuVObnqjwNRBf+phVM=; b=g6NJAEwhWcxAK5W59d9O+5SBquZv1qv/Wn57Uy3pyAyhJ7XaxhWBnIy4PaoQHeIgFd sgvd220xwW1sviOJF1deVKAX3tYHOOrlBPK44LU5fWUYZaf5aQ69wQ4hd1gWpzf0t5qp juDxwDOJNSd8DVb7p0mEBWRrSO4xDVTqW0GNFvKVLUr590PKYt2M/CfVkyRHjOZKOl2W j2ATbQ3yHAXBepYJHDh3Q/Z4jIJYs08aCL8KFbUFL6t2tgGlFKVHKRtNW1ria686fmwn PQP3I9Cb9potbDJ+G0z7eOB/zThQieOia+j4gMSRYk4hYvDa+GECtHLKjoK/KF/QDMkP P5EA== X-Received: by 10.15.81.135 with SMTP id x7mr156031eey.61.1398601617298; Sun, 27 Apr 2014 05:26:57 -0700 (PDT) Original-Received: from keima.localdomain (x2f264ef.dyn.telefonica.de. [2.242.100.239]) by mx.google.com with ESMTPSA id u46sm41347067eel.1.2014.04.27.05.26.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 27 Apr 2014 05:26:53 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1874) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:4013:c00::231; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01LT0LtJq - 9dedddaaa459 - 20140427 (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:87136 Archived-At: --===============1175432815== Content-Type: multipart/alternative; boundary="Apple-Mail=_9E5B438D-7649-414E-8FA1-CBAB9F8E7000" --Apple-Mail=_9E5B438D-7649-414E-8FA1-CBAB9F8E7000 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Am 27.04.2014 um 13:28 schrieb Fabrice Couvreur = : > Hello,=20 > How to make the numbering is in the frame and red ?=20 >=20 > \defineenumeration > [ac] > [text=3D{ > \inframed[frame=3Doff, > width=3Dfit, > align=3D{right}, > background=3Dcolor, > backgroundcolor=3Dlightgray]{Activit=E9}}, > headstyle=3D{\bf\feature[+][f:smallcaps]}, > width=3Dfit, > stopper=3D{.}, > alternative=3Dleft, > ] > \starttext > \startac > Tirage dans une urne > \stopac > \stoptext \defineframed [ACFRAME] [frame=3Doff, width=3Dfit, align=3Dflushleft, location=3Dlow, background=3Dcolor, backgroundcolor=3Dlightgray] \defineenumeration [ac] [text=3D{Activit=E9}, headstyle=3D{\bf\feature[+][f:smallcaps]}, headcommand=3D\ACFRAME, numberconversionset=3DACCONVERSION, width=3Dfit, stopper=3D{.}, alternative=3Dleft] \defineprocessor[ACPROCESSOR][color=3Dred] \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] \setupbodyfont[pagella] \starttext \startac Tirage dans une urne \stopac \stoptext When you want the period after the number in red too remove the stopper = setting from \defineenumeration and change the processor definition to = \defineprocessor[ACPROCESSOR][color=3Dred,command=3D\groupedcommand{}{.}] Wolfgang= --Apple-Mail=_9E5B438D-7649-414E-8FA1-CBAB9F8E7000 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1
Am 27.04.2014 um 13:28 schrieb Fabrice = Couvreur <fabrice1.couvreur@gmail.com>:

Hello,
How to make the numbering = is in the frame and = red ?

\defineenumeration
  [ac]
  = [text=3D{
         = \inframed[frame=3Doff,
        = width=3Dfit,
         = align=3D{right},
         = background=3Dcolor,
         = backgroundcolor=3Dlightgray]{Activit=E9}},
    &nbs= p;    headstyle=3D{\bf\feature[+][f:smallcaps]},
         = width=3Dfit,
         = stopper=3D{.},
         = alternative=3Dleft,
   = ]
\starttext
\startac
Tirage dans une = urne
\stopac
\stoptext

\defineframed
  = [ACFRAME]
  [frame=3Doff,
  =  width=3Dfit,
  =  align=3Dflushleft,
  =  location=3Dlow,
  =  background=3Dcolor,
  =  backgroundcolor=3Dlightgray]

\defineenumera= tion
  [ac]
  = [text=3D{Activit=E9},
  =  headstyle=3D{\bf\feature[+][f:smallcaps]},
  =  headcommand=3D\ACFRAME,
  =  numberconversionset=3DACCONVERSION,
  =  width=3Dfit,
   stopper=3D{.},
  =  alternative=3Dleft]

\defineprocessor[ACPROC= ESSOR][color=3Dred]

\defineconversionset[ACCONVER= SION][][ACPROCESSOR->n]

\setupbodyfont[pagella= ]

\starttext
\startac
Tirage = dans une = urne
\stopac
\stoptext

=
When you want the period after the number in red too = remove the stopper setting from \defineenumeration and change the = processor definition to

  =   \defineprocessor[ACPROCESSOR][color=3Dred,command=3D\groupedco= mmand{}{.}]

Wolfgang
= --Apple-Mail=_9E5B438D-7649-414E-8FA1-CBAB9F8E7000-- --===============1175432815== 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 ___________________________________________________________________________________ --===============1175432815==--