From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/108336 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tim Steenvoorden Newsgroups: gmane.comp.tex.context Subject: Same counter for figures as theorems Date: Tue, 11 Aug 2020 11:41:18 +0200 Message-ID: References: <1697c9e5-a649-4569-a35e-071bf1594300@Spark> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6135443973770780392==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37544"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Aug 11 11:41:57 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k5Qn6-0009fv-Vo for gctc-ntg-context-518@m.gmane-mx.org; Tue, 11 Aug 2020 11:41:57 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1BACD1A7E6E; Tue, 11 Aug 2020 11:41:30 +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 1l5cR09LLOYO; Tue, 11 Aug 2020 11:41:28 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 229E21A7E5F; Tue, 11 Aug 2020 11:41:28 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id BCC431A7E5E for ; Tue, 11 Aug 2020 11:41:26 +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 0nbH3H_Fl56I for ; Tue, 11 Aug 2020 11:41:25 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.218.49; helo=mail-ej1-f49.google.com; envelope-from=tim.steenvoorden@gmail.com; receiver= Original-Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id E732C1A7E5D for ; Tue, 11 Aug 2020 11:41:25 +0200 (CEST) Original-Received: by mail-ej1-f49.google.com with SMTP id g19so12353613ejc.9 for ; Tue, 11 Aug 2020 02:41:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version; bh=qnbEeoJW516OJjNrQxAvY6IAOOHmoY0ZvNTIfOEabuU=; b=MNLMLSeMaG8PiWAh8Rql0CpEeizjCn9jcz1Zppvu7c9r6eDtWHlVDHDRXNB+9MmumL WUWVbybqGrkhq69YvRBLfuPtC9+SviFRdU2Q42+T+MsTr39IJXRW7C/EEEzWIJO8kcsD j/P0kJpQCXk3wgd/bYlxVI4r8eKKuMyk5830/I1LAi6P3R3k5MlHH7u3YoYHPwsMyXFu X6XVaqq/yY1joG8+UFm9+gbT6svPw39ol3ddSu/e0PqbM3n6QtiP0KEZFrr87R8ZRKwO NUApE5B16MOUoExOknN1VPyignNZdIc3Z0XlTM6nMzbp4LrObAnwiI9jkvwbOQa8c8ej pekg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:message-id:in-reply-to:references :subject:mime-version; bh=qnbEeoJW516OJjNrQxAvY6IAOOHmoY0ZvNTIfOEabuU=; b=P/YkmJzcuDbICIGm9ZQWA/9RaSAu3Z27uCejMjxZbr1KF7Oj90EkmTCV20CtL+U62M 5o1cGSCL3SLexY8Gf6ZK1iZPeZ3JuvnIraOga7PBmAtnPSNCmvMhn3gwaH961CGFfHc5 Aw4gIX0Lti+hTSUFvKsvownHZci8XvDhMl92dS6SoYnwvo620sNLy9FZEDTqWYMwzMaY uWPnwv4CkDR7voXZPB4+11DjR9wl2PxvNL+1/62+rgE37yWjdJnKUCoSyN2j6/BNegw2 ca9nMjXn52PTaheArvE4Cfp0pFKIlsvRSNx5j7o4wZ1IHnSFTi2dRNmU3OjkxN0Dy8Pm eLEw== X-Gm-Message-State: AOAM530Wj0lZxC1PWocVXoPDhds2Yzvr67fpOyxv1hVnNg3pHziYJ2/c 26ZP1lS505YhpGS+B6DJENiMPl5b5kQ= X-Google-Smtp-Source: ABdhPJxur7prNqQw2VFQkDGTC2eX4okwQxireW2UyhZcsq4zDBgz5Shw0zukx/GGcgoo98u5LUVUdw== X-Received: by 2002:a17:906:4157:: with SMTP id l23mr25312261ejk.491.1597138885226; Tue, 11 Aug 2020 02:41:25 -0700 (PDT) Original-Received: from [192.168.2.24] (82-169-145-169.biz.kpn.net. [82.169.145.169]) by smtp.gmail.com with ESMTPSA id o25sm10105387ejm.34.2020.08.11.02.41.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Aug 2020 02:41:24 -0700 (PDT) In-Reply-To: <1697c9e5-a649-4569-a35e-071bf1594300@Spark> X-Readdle-Message-ID: ab161706-d92b-42cf-8c5d-b6b720040268@Spark X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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.io gmane.comp.tex.context:108336 Archived-At: --===============6135443973770780392== Content-Type: multipart/alternative; boundary="5f3267c4_4353d0cd_18109" --5f3267c4_4353d0cd_18109 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi all, I=E2=80=99ve a text where chapters are numbered 1, 2, 3, =E2=80=A6 and se= ctions 1.1, 1.2, 1.3, =E2=80=A6 Now I=E2=80=99d like all elements (figures, tables, examples, definitions= , theorems, =E2=80=A6) to be numbered consecutively prefixed by the chapt= er and section number, so 1.1.1, 1.1.2, 1.2.1, ... I=E2=80=99ve managed to change figure/table captions to do this by: =5Csetupcaptions=5B =C2=A0=C2=A0way=3Dbysection, =C2=A0=C2=A0prefixsegments=3Dchapter:section, =5D And I=E2=80=99ve setup my enumerations by: =5Csetupenumerations=5B =C2=A0=C2=A0way=3Dbysection, =C2=A0=C2=A0prefix=3Dyes, =C2=A0=C2=A0prefixsegments=3Dchapter:section, =5D But how do I use the same counter for figures, tables, and all enumeratio= ns=3F Trying to share a counter with: =5Cdefinecounter=5Bobject=5D=5B =C2=A0=C2=A0way=3Dbysection, =C2=A0=C2=A0prefix=3Dyes, =C2=A0=C2=A0prefixsegments=3Dchapter:section, =5D =5Csetupenumerations=5B =C2=A0=C2=A0counter=3Dobject, =5D =5Csetupcaptions=5B =C2=A0=C2=A0counter=3Dobject, =5D Results in enumerations numbered 1, 2, 3, ... instead of 1.1.1, 1.1.2, 1.= 1.3, =E2=80=A6 And figures and tables are still numbered in the default w= ay. Cheers, Tim --5f3267c4_4353d0cd_18109 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Hi all,

I=E2=80=99ve a text where chapters are numbered 1, 2, 3, =E2=80=A6 and se= ctions 1.1, 1.2, 1.3, =E2=80=A6
Now I=E2=80=99d like all elements (figures, tables, examples, definitions= , theorems, =E2=80=A6) to be numbered consecutively prefixed by the chapt= er and section number, so 1.1.1, 1.1.2, 1.2.1, ...

I=E2=80=99ve managed to change figure/table captions to do this by:
=
=5Csetupcaptions= =5B
&=23160;&=23160;way=3Dbysection,
&=23160;&=23160;prefixsegments=3Dchapter:section,
=5D

And I=E2=80=99ve setup my enumerations by:

=5Csetupenumerations=5B
&=23160;&=23160;way=3Dbysection,
&=23160;&=23160;prefix=3Dyes,
&=23160;&=23160;prefixsegments=3Dchapter:section,
=5D

But how do I use the same counter for figures, tables, and all enumeratio= ns=3F
Trying to share a counter with:

=5Cdefinecounter= =5Bobject=5D=5B<= br /> &=23160;&=23160;way=3Dbysection,
&=23160;&=23160;prefix=3Dyes,
&=23160;&=23160;prefixsegments=3Dchapter:section,
=5D
=5Csetupenumerations=5B
&=23160;&=23160;counter=3Dobject,
=5D
=5Csetupcaptions= =5B
&=23160;&=23160;counter=3Dobject,
=5D

Results in enumerations numbered 1, 2, 3, ... instead of 1.1.1, 1.1.2, 1.= 1.3, =E2=80=A6 And figures and tables are still numbered in the default w= ay.

Cheers,
Tim
--5f3267c4_4353d0cd_18109-- --===============6135443973770780392== 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 X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============6135443973770780392==--