From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101321 Path: news.gmane.org!.POSTED!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Numbering properties in a chapter Date: Mon, 23 Jul 2018 17:11:20 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4457366371485330614==" X-Trace: blaine.gmane.org 1532358579 1918 195.159.176.226 (23 Jul 2018 15:09:39 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 23 Jul 2018 15:09:39 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 23 17:09:35 2018 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 blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fhcSt-0000Pd-3m for gctc-ntg-context-518@m.gmane.org; Mon, 23 Jul 2018 17:09:35 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 752864631F; Mon, 23 Jul 2018 17:11: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 H-Wxqi7naWzi; Mon, 23 Jul 2018 17:11:32 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id BF90046312; Mon, 23 Jul 2018 17:11:32 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3C93146312 for ; Mon, 23 Jul 2018 17:11:32 +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 uD4NBoxzHa2u for ; Mon, 23 Jul 2018 17:11:31 +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 C4A0546310 for ; Mon, 23 Jul 2018 17:11:21 +0200 (CEST) Original-Received: by mail-wm0-f41.google.com with SMTP id h20-v6so1566333wmb.4 for ; Mon, 23 Jul 2018 08:11:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=zYjjV8AjEIU7iSCm+ZdmnRK+ZMZrxstZtGEiMsF3xzU=; b=upq32Qwgbpkk7gd2OoVNhnuCGi90yOY8/qinbOBFjfjPSkuieuNrP9RbJL17PFrI44 IYDdq0xhb6SQd/YnCWDh382Bkn1BqvSsOVNZ2z03s9Ibvkc1y3zFLS5CoY3j7Q5Q6dQL 9ogXAGwUgI/6yaAE1yEBQ8DRI5KDV1mBdbCoy1zO87S2qyuDJfKw5UXmrO1borOnAPII OpReuXCDawKEE9Vw6v5/XUVP6rrvosFuTsK0v/vkinFcWKUEg/nSdRL80yCBnDLwPDY/ kytzu+tBOuoK0ztfKKfWrXv/RcCAb2mR3Vy+9IBAoy9+vtcwygwIJetFdA1HKIczeyAu 1iJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=zYjjV8AjEIU7iSCm+ZdmnRK+ZMZrxstZtGEiMsF3xzU=; b=W/fMuuW7+tmnrObhE4YMWqhvi+OrDj2WUDc08hRmoisykJoIHrwLGcNXMPL2oj69pw KeMfQHN7QgmKvjmw/aot4N6Ng2L7R8g8AcxNz0tSYnI2ngy+3bFpaXYNNF2IKSc8untB D7KQfiEoAASaaoNKQQUW5ggAGI6C9stYPOmpnzKF/czwAq0uO+ijIXT1kciSCEAwdEw+ QsRinDjHh/QJba043g80a3frFRHbbzMVI9CyWheErlWjCILo6e36MAtQLrDnH+Upoblb a9C3ZH3DXl7JWp5eflG4tcOeN67rKJPXbSuP0eEEIx3Jh/dMy9b91JrhFdgCzD3Ol8US VyFg== X-Gm-Message-State: AOUpUlHGUc5gIZyEd6fa19F8lC7NnyKcR92rc/As8LbH1oGpIO3O8UZB z+tUjA6Ja/PsAKApjtUizwDSEjLQ2EL+8MM1eyaGOhIB X-Google-Smtp-Source: AAOMgpdKu+626otXARl0Pj1sAwWzogOnR8Qe4ziitRpb6xmQnem83k2wG2UT5AzGgk8ohHkbJqUPbrscHKgyUHsvBRM= X-Received: by 2002:a1c:f611:: with SMTP id w17-v6mr3667514wmc.143.1532358681281; Mon, 23 Jul 2018 08:11:21 -0700 (PDT) Original-Received: by 2002:adf:c4a7:0:0:0:0:0 with HTTP; Mon, 23 Jul 2018 08:11:20 -0700 (PDT) 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:101321 Archived-At: --===============4457366371485330614== Content-Type: multipart/alternative; boundary="000000000000ddce3e0571ac0eb8" --000000000000ddce3e0571ac0eb8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, I would like the numbering of the properties to be like this : First chapter Property 1.1 Property 1.2 Second chapter Property 2.1 Property 2.2 I thought it was enough to use the key way =3D bychapter Thanks Fabrice \define[1]\ProprieteHeadcommand {\textrule[top]{#1}} \setupenumerations[ text=3DPropri=C3=A9t=C3=A9 , title=3Dno, way=3Dbychapter, titlestyle=3Dbold, style=3Dslanted, width=3Dfit, headcommand=3D\ProprieteHeadcommand, numbercommand=3D\groupedcommand{}{\nbsp}, after=3D\textrule ] \defineenumeration[propriete] \starttext \startchapter[title=3D{First chapter}] \dorecurse{2}{ \startpropriete \input ward \stoppropriete} \stopchapter \startchapter[title=3D{Second chapter}] \dorecurse{2}{ \startpropriete \input ward \stoppropriete} \stopchapter \stoptext --000000000000ddce3e0571ac0eb8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,
I would like the= numbering of the properties to be like this :

First ch= apter

Property 1.1

Property 1.2

Second chapter

Property 2.1
=
Property 2.2

I thought it was enough to use t= he key way =3D bychapter

Thanks
=

Fabric= e
=

\define[1]\ProprieteHeadcommand
=C2=A0 {\textr= ule[top]{#1}}

\setupenumerations[
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 text=3DPropri=C3=A9t=C3=A9 ,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= title=3Dno,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 way=3Dbychapter,
= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 titlestyle=3Dbold,
=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 style=3Dslanted,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 width=3Dfit,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 headcommand=3D\Pro= prieteHeadcommand,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 numbercommand=3D= \groupedcommand{}{\nbsp},
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 after=3D\= textrule=C2=A0
]

\defineenumeration[propriete]


\start= text

\startchapter[title=3D{First chapter}]

=C2=A0 \dorecurse= {2}{
=C2=A0=C2=A0=C2=A0 \startpropriete
=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 \input ward
=C2=A0=C2=A0=C2=A0 \stoppropriete}


\stopchapt= er

\startchapter[title=3D{Second chapter}]
=C2=A0
=C2=A0\dore= curse{2}{
=C2=A0=C2=A0=C2=A0 \startpropriete
=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 \input ward
=C2=A0=C2=A0=C2=A0 \stoppropriete}
=C2=A0

= \stopchapter
=C2=A0=C2=A0

\stoptext

=

--000000000000ddce3e0571ac0eb8-- --===============4457366371485330614== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============4457366371485330614==--