From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95544 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Question about headcommand Date: Fri, 22 Jul 2016 10:26:09 +0200 Message-ID: <5791D8A1.1010206@gmail.com> References: <5791593A.2000304@gmail.com> <6FF80944-B10A-43C2-A8AA-8A1CDEC8DEF6@gmail.com> <5791B852.5070200@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6244978531595541886==" X-Trace: ger.gmane.org 1469176032 21496 80.91.229.3 (22 Jul 2016 08:27:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Jul 2016 08:27:12 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 22 10:27:00 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 1bQVnQ-0001Sl-1J for gctc-ntg-context-518@m.gmane.org; Fri, 22 Jul 2016 10:27:00 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9C97112AA3; Fri, 22 Jul 2016 10:26:27 +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 yXOTtE8u4mWE; Fri, 22 Jul 2016 10:26:25 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id D0D7B12AA4; Fri, 22 Jul 2016 10:26:25 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EB5F712A9A for ; Fri, 22 Jul 2016 10:26:24 +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 fUwDXPBFzwmb for ; Fri, 22 Jul 2016 10:26:23 +0200 (CEST) Original-Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) (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 C4B1012A7D for ; Fri, 22 Jul 2016 10:26:13 +0200 (CEST) Original-Received: by mail-wm0-f50.google.com with SMTP id f65so47308441wmi.0 for ; Fri, 22 Jul 2016 01:26:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=UXtCEghRszJrVf+mgZaFTYS28+p3LxuvkAPHE5Uqz8I=; b=MXisizj4dKTk2OJGpN95DO4dqu9rHDH4VIhVetLsMU/Cc5JU5q8L4fPFWlJj+rkuAt k3GbZCPf8CLeBz5H2Iq87PAC9Ow0za3OOOZOiD2Dekph2DuTzXyO+gdGctnc9DEwQeTI l3M1z91s+v/5Yq5WYwfT1cbHwIWWcvREY4iLSHRCTMUvCe0IkTzNsBpForhgh7NYaxs1 pnra4mnXLufPNWFVg9Zfdt/GhNFgKXXk1fkgKPVWjbfDQW9cndWDKBxjFU0uOUun7qQ8 RiVG7DW1H7BTwNtaoaUwxtOn2UnL9uadHGl9XJqeeCdIcW/ln8UfUFTnUAXWnJnJZDLF 3sOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=UXtCEghRszJrVf+mgZaFTYS28+p3LxuvkAPHE5Uqz8I=; b=eFu2uJYGUB0eK0QlqwnBCDUclvXKRp72F/wr6a2BbrSWlQh2BXf55Yfc38Vlwh2ldi fWQzr7PhjkiyTVxPgeeVWP2k6DkF3smIeV58E8UHEIveSgXDXx/ZS3gGcosxpN+E3j67 pVid+IRclgCz9btpcx3hY3vKHCTbVphsVhHQ/ioDURU8DHEEgoJgjIxJWz8xDQjumaWv AH0VNyTnMb7SXnKvbN2CKD6CtxZlZ/qO7TTgqecjl0e8jMhWcLj21gTIpj5vOPlpoUYt Kq6Fnj7vqTT93llL/6/afOs+ctRnhXQ+iTmxLxbs+QMRBMi1wTGoyHVhpF4ol0NJOmrv hvkA== X-Gm-Message-State: ALyK8tJca8cyN3sn6JhFTVNxM43smRD8sIFCtb6Xg7vdA+i4xJyiO1ehw9EEeo2/5UiYNw== X-Received: by 10.28.30.1 with SMTP id e1mr24865240wme.77.1469175973345; Fri, 22 Jul 2016 01:26:13 -0700 (PDT) Original-Received: from keima.localdomain (x2f2673c.dyn.telefonica.de. [2.242.103.60]) by smtp.gmail.com with ESMTPSA id r16sm11207950wme.16.2016.07.22.01.26.11 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Jul 2016 01:26:12 -0700 (PDT) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: 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:95544 Archived-At: This is a multi-part message in MIME format. --===============6244978531595541886== Content-Type: multipart/alternative; boundary="------------040108010004090509020904" This is a multi-part message in MIME format. --------------040108010004090509020904 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > 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 --------------040108010004090509020904 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
22= .=20 Juli 2016 um 09:48
<= span=20 style=3D"font-family:verdana,sans-serif">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
=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=3Ds= erried,
=C2=A0=C2=A0 ]

\defineprocessor[ACPROCESSOR][command=3D= \ACFRAME]
\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
--------------040108010004090509020904-- --===============6244978531595541886== 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= --===============6244978531595541886==--