From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95542 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 08:08:18 +0200 Message-ID: <5791B852.5070200@gmail.com> References: <5791593A.2000304@gmail.com> <6FF80944-B10A-43C2-A8AA-8A1CDEC8DEF6@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5291090788019684754==" X-Trace: ger.gmane.org 1469167761 25647 80.91.229.3 (22 Jul 2016 06:09:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 Jul 2016 06:09:21 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 22 08:09:05 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 1bQTdv-0006bJ-UU for gctc-ntg-context-518@m.gmane.org; Fri, 22 Jul 2016 08:09:04 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B331412AD6; Fri, 22 Jul 2016 08:08:35 +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 CH-b9LggVFtJ; Fri, 22 Jul 2016 08:08:34 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 62B1B12ADA; Fri, 22 Jul 2016 08:08:34 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0217E12AD6 for ; Fri, 22 Jul 2016 08:08:33 +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 iOjXSj0h0hvI for ; Fri, 22 Jul 2016 08:08:32 +0200 (CEST) Original-Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) (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 6E92512AD3 for ; Fri, 22 Jul 2016 08:08:22 +0200 (CEST) Original-Received: by mail-wm0-f41.google.com with SMTP id p129so6540522wmp.0 for ; Thu, 21 Jul 2016 23:08:22 -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=IZtAT3MRwuuMv43KBtaIvCA+vtSVbaVsM66M6fEZOz8=; b=BI2O9N43mtkXtJzxKVCZ/N6EMf9CilB3NQ2GkvjkTaK++M04Pc+hYedRRRp+dhAcp/ 5wY7FsTF2b2vnr31dvbkVFQuTGMmDSOf/BtVjiha5CJpsSDhkMgmCiQ01Z9W5HRB9sVn xiOIZrWt0RS7Nqezoj704BHDFoxFEXzE6roXjJzB6t3K12NgdRye75MAyrE1O0j/B1yL CY7VbMNjze1aJ+JkX61OviZdkGP4o3e9ck8d9VZvbROCoizim3w4P5ojpbDU6EUQFzKE MboPM49y33R8iQ6SCbTVNFZhmDZcsYWdlxGV0vbuhkabKBsNj+zkcy+eD1eTuk0z/qcO x0jw== 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=IZtAT3MRwuuMv43KBtaIvCA+vtSVbaVsM66M6fEZOz8=; b=Nt7R/rsDuzMCOvPmT1+P52G9rnF1QN6joTDtZTlHVr+7Cm7qDtwc/UNWy3Rd9T3vt9 zLTw4oe+tM6haXhzOrZ5ykdPhqc+oTxCJlFu3n679TatByr+GCmsK8bY2PB6kqJunBry eLdTWpaECg/nGVsY8YiOFfnr8f8V7ulwn7i2SVSaBdhXP393sUpUCw7Y/dhLwIP0kVmI UYLpzDwuH2qHgF5bn6+9wQS1tAVVASenG16G/4sTiKs2KqsnucfDnirJjDcm7WAvWpKm M8wzZ2fWDP9DSc8byNiyODbPHvKy1KbGa9J64znoHwwCIEQvJRcMAfrT9p4JLBkM9aZT AowA== X-Gm-Message-State: ALyK8tL9xTvkOgz+mKva8nxWtcX+mfeHWl3UFIgzgPhAzKWY9QDVobIFMfmwlHJZqOb33w== X-Received: by 10.28.163.199 with SMTP id m190mr24012644wme.5.1469167701650; Thu, 21 Jul 2016 23:08:21 -0700 (PDT) Original-Received: from keima.localdomain (x2f2673c.dyn.telefonica.de. [2.242.103.60]) by smtp.gmail.com with ESMTPSA id x203sm10321109wmg.0.2016.07.21.23.08.20 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 Jul 2016 23:08:21 -0700 (PDT) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: <6FF80944-B10A-43C2-A8AA-8A1CDEC8DEF6@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:95542 Archived-At: This is a multi-part message in MIME format. --===============5291090788019684754== Content-Type: multipart/alternative; boundary="------------010200040708020109080204" This is a multi-part message in MIME format. --------------010200040708020109080204 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable > Fabrice Couvreur > 22. Juli 2016 um 02:02 > Hi Wolfgang, > In fact, I wanted to know why the instructions to create a new style=20 > for the counter were useless (% in the code) . The settings aren=E2=80=99t useless, the are applied to the counter as in= tended. \setupbodyfont[pagella,11pt] \defineprocessor[ACPROCESSOR][color=3Dred] \defineconversionset[ACCONVERSION][][ACPROCESSOR->n] \defineenumeration [ex] [text=3D, distance=3D0.3em, width=3Dfit, numberconversionset=3DACCONVERSION, alternative=3Dserried] \starttext \dorecurse{5} {\startex \input knuth \stopex} \stoptext > I think I understand that headnumber sends settings (text and number)=20 > to the \ACFRAME command. The headcommand is applied to the text *and* counter of the enumeration=20 while numberconversionset changes on the counter, i.e. when you want a frame only around the=20 counter you have to use numberconversionset but when you want a frame around both you have to=20 use headcommand. Wolfgang --------------010200040708020109080204 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
22= .=20 Juli 2016 um 02:02
H= i=20 Wolfgang,
In= =20 fact, I wanted to know why the instructions to create a new style for=20 the counter were useless (% in the code) .
The settings aren=E2=80=99t useless, the are applied to the counter as in= tended.

\setupbodyfont[pagella,11pt]

\defineprocessor[ACPROCESSOR][color=3Dred]
\defineconversionset[ACCONVERSION][][ACPROCESSOR->n]

\defineenumeration
=C2=A0 [ex]
=C2=A0 [text=3D,
=C2=A0=C2=A0 distance=3D0.3em,
=C2=A0=C2=A0 width=3Dfit,
=C2=A0=C2=A0 numberconversionset=3DACCONVERSION,
=C2=A0=C2=A0 alternative=3Dserried]

\starttext

\dorecurse{5}
=C2=A0 {\startex
=C2=A0=C2=A0 \input knuth
=C2=A0=C2=A0 \stopex}

\stoptext
I thin= k I understand that headnumber sends settings (text and number) to the=20 \ACFRAME =C2=A0command.
The headcommand is applied to the text *and* counter of the enumeration=20 while numberconversionset
changes on the counter, i.e. when you want a frame only around the=20 counter you have to use
numberconversionset but when you want a frame around both you have to=20 use headcommand.

Wolfgang
--------------010200040708020109080204-- --===============5291090788019684754== 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= --===============5291090788019684754==--