From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95545 Path: news.gmane.org!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Re: Question about headcommand Date: Fri, 22 Jul 2016 11:51:25 +0200 Message-ID: References: <5791593A.2000304@gmail.com> <6FF80944-B10A-43C2-A8AA-8A1CDEC8DEF6@gmail.com> <5791B852.5070200@gmail.com> <5791D8A1.1010206@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6708641412427732316==" X-Trace: ger.gmane.org 1469181150 6526 80.91.229.3 (22 Jul 2016 09:52:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Jul 2016 09:52:30 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 22 11:52:15 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bQX7e-0004xm-3R for gctc-ntg-context-518@m.gmane.org; Fri, 22 Jul 2016 11:51:58 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E867812AAF; Fri, 22 Jul 2016 11:51:39 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DiTHUNgzo4pN; Fri, 22 Jul 2016 11:51:39 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 31BE212AD7; Fri, 22 Jul 2016 11:51:39 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2C55B12AB2 for ; Fri, 22 Jul 2016 11:51:38 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3pRi0RM7ptfX for ; Fri, 22 Jul 2016 11:51:37 +0200 (CEST) Original-Received: from mail-io0-f179.google.com (mail-io0-f179.google.com [209.85.223.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 2963B12AAF for ; Fri, 22 Jul 2016 11:51:27 +0200 (CEST) Original-Received: by mail-io0-f179.google.com with SMTP id m101so100606905ioi.2 for ; Fri, 22 Jul 2016 02:51:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=tsTxMyfjnXjRhADnuxEZfl1wJL3R/vOlFF8/5lL/VJA=; b=wK71oxtA5TKadkdpB/ciZoP0FhuPH43ajbCiEoyrSimIbgEam1pB+QqqCHjpcFLa0O zQt0NYjAo4lvI4MdBnip0UUvLKFH21sZYF8LbDuRJVDTb22Pb7hqA0DbrFlnNKLoWcC0 luSVf3puEhMHVwqp4GE5iVHk3dSc2bCeqXVtmvvxisiZBr62764+g6k7CK+gph90+Sc3 YlPbHY86kSejPfIYaZf9shqIPNeGTU9p52Guh7mkDj6yYpIi6JElDqqY0qGKUqdzxmGN 35TCKAV2u7YJ1qsC7wWBQDoTDJvae49Bo0NzmYwEO5lImQsd3woYlIzowBQ3PQn0j4Ts /dxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=tsTxMyfjnXjRhADnuxEZfl1wJL3R/vOlFF8/5lL/VJA=; b=IlMHZCFpypR6wRuPcYp4GBPICTGLy48ubUYqJsNQQ5kg3b3481hSF+b8MxT7q5f1b+ IhMlPh++Sw/BhwTweDDMNnRe3jMbo0A/qNy7NU7BVTQ6SjIRMV0OuZeHUL6fHVYawka4 dA2F7iKE7XjTlyZQGHsf85oB8ZVesKZwG2mtzhTEdke51p40R2xBqlJVRtgIoriCuPRG 305uaorFPTsa3oY9GTI63Kape48HiI47mUVPe7CVaH7+OQQy9dyEzr4ZvrdcHP+wLpPG zeU7vMofpO+uwWfSjBeyqjfYkqEg+yE/kjS3ju6gGiSZxmfuljPdOMaRqpDrDbBiJL/V Oofg== X-Gm-Message-State: AEkooutb2juifGeAUXN4wM4plSR0sBntX0JWxeGedxZkpSuYilC9PaUk72zAD3z177UOCyxzU8dWA9cYOot80Q== X-Received: by 10.107.168.229 with SMTP id e98mr3440808ioj.61.1469181085651; Fri, 22 Jul 2016 02:51:25 -0700 (PDT) Original-Received: by 10.64.10.2 with HTTP; Fri, 22 Jul 2016 02:51:25 -0700 (PDT) In-Reply-To: <5791D8A1.1010206@gmail.com> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:95545 Archived-At: --===============6708641412427732316== Content-Type: multipart/alternative; boundary=001a11426a36b898fd053836603c --001a11426a36b898fd053836603c Content-Type: text/plain; charset=UTF-8 Thanks Wolfgang Fabrice 2016-07-22 10:26 GMT+02:00 Wolfgang Schuster : > Fabrice Couvreur > 22. Juli 2016 um 09:48 > Hi Wolfgang, > It is clear, I think I understand (My English is not perfect !). So back > to my original post, if I want only the counter is white and surrounded > by a red frame, just write : > > \defineenumeration > [ex] > [text=, > distance=0.3em, > width=fit, > numberconversionset=ACCONVERSION, > alternative=serried, > ] > > \defineprocessor[ACPROCESSOR][command=\ACFRAME] > \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] > > You can play with the position of the frame and place the number on the > same line as the content: > > \defineframed > [ACFRAME] > [frame=off, > offset=0pt, > location=low, > width=\struttotal, > background=color, > backgroundcolor=red, > foregroundcolor=white, > forgroundstyle=bold] > > Wolfgang > > > ___________________________________________________________________________________ > 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 > > ___________________________________________________________________________________ > --001a11426a36b898fd053836603c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks= Wolfgang
Fa= brice

2016-07-22 10:26 GMT+02:00 Wolfgang Schuster <schuster.wolf= gang@gmail.com>:
22.=20 Juli 2016 um 09:48
Hi Wolfga= ng,
It is clear, I = think I understand (My English is not perfect !). So back to my original post, if I want only the counter is white and= surrounded by a red frame, just write :
\defineenumeration
=C2=A0 [ex]
=C2=A0=C2=A0 [text=3D,
=C2=A0=C2=A0=C2=A0 distance=3D0.3em,
= =C2=A0=C2=A0=C2=A0 width=3Dfit,
=C2=A0=C2=A0=C2=A0=20 numberconversionset=3DACCONVERSION,
=C2=A0=C2=A0=C2=A0 alternative=3Dser= ried,
=C2=A0=C2=A0 ]

\defineprocessor[ACPROCESSOR][command=3D\ACF= RAME]
\defineconversionset[ACCONVERSION][][ACPROCESSOR->n]

You can play with the position of the frame and place the number on the=20 same line as the content:

\defineframed
=C2=A0 [ACFRAME]
=C2=A0 [frame=3Doff,
=C2=A0=C2=A0 offset=3D0pt,
=C2=A0=C2=A0 location=3Dlow,
=C2=A0=C2=A0 width=3D\struttotal,
=C2=A0=C2=A0 background=3Dcolor,
=C2=A0=C2=A0 backgroundcolor=3Dred,
=C2=A0=C2=A0 foregroundcolor=3Dwhite,
=C2=A0=C2=A0 forgroundstyle=3Dbold]

Wolfgang

_______________________________________________________________________= ____________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context" rel=3D"noreferrer= " target=3D"_blank">http://www.ntg.nl/mailman/listinfo/ntg-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://tex.aanhet.net
archive=C2=A0 : http://foundry.supelec.fr/projects/con= textrev/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________

--001a11426a36b898fd053836603c-- --===============6708641412427732316== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============6708641412427732316==--