From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/108376 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tim Steenvoorden Newsgroups: gmane.comp.tex.context Subject: Re: Same counter for figures as theorems Date: Thu, 13 Aug 2020 10:06:34 +0200 Message-ID: <32168f3c-c9bd-499e-8be1-4e0a36124fdc@Spark> References: <1697c9e5-a649-4569-a35e-071bf1594300@Spark> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6785863517851109531==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7238"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 13 10:07:16 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 1k68Ga-0001pU-H5 for gctc-ntg-context-518@m.gmane-mx.org; Thu, 13 Aug 2020 10:07:16 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 96C29164640; Thu, 13 Aug 2020 10:06:47 +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 QMr2wVSKHFkQ; Thu, 13 Aug 2020 10:06:45 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0009E16462F; Thu, 13 Aug 2020 10:06:44 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6742C16462F for ; Thu, 13 Aug 2020 10:06:43 +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 se8rEI_ro7pP for ; Thu, 13 Aug 2020 10:06:42 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.208.46; helo=mail-ed1-f46.google.com; envelope-from=tim.steenvoorden@gmail.com; receiver= Original-Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (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 99AE116462B for ; Thu, 13 Aug 2020 10:06:42 +0200 (CEST) Original-Received: by mail-ed1-f46.google.com with SMTP id i26so3509957edv.4 for ; Thu, 13 Aug 2020 01:06:42 -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=NnCvNjDydODbqOFAeyFZNf4PXgTPcjwNcwpIdY+JpBk=; b=t47obuJ3NQJ+yRaCgiII5PDTzTy8vRqK1m0KI7KznkW3N3v7ksh6ZFtnkC+yQQmSPd EzjVgjVPHveLfWaRFn0zaTIYsSrYA7mSeMfg7biE4YBbGlRSgHRfRR9sDU2f+IBsaH8x D6BQRR3ET5iw52p91sBihBkjesNv+1ie1spiZ0GXO6Yex4yWtgvIub0QgT0gwIz9h+aa efGEJJHf9m7oJZVAjD1MTmWTKbWIiWS/KFUM0Ob0c6fi1h5K8L777O4EAv1/9wmbQEAO M1FdSG/8+gmMNXd1DGUwb38UC2sYV1TdqTH0nWurvKI4pJXUctaoEEQD8J9tW+Eg9qTi 4dCA== 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=NnCvNjDydODbqOFAeyFZNf4PXgTPcjwNcwpIdY+JpBk=; b=E+2sJgCa3IUTkBMXW2Us/UxNGhLv2xdSq5V2z2KOCE5SWZyvZBQa4CxkuyGR9P1cP9 OXf9AifBuoLMeotaPo2Aet10+/14G9kCv0bZzywjHWrdwG5TgcFtV86nFqqJ1DD5Iyeb R4tDgE72vz4hUimn/IrW585pBdDqt8auh2j3JnSfCitytN0MEdMDuxGXVkSFiAX80YZj OKrwDkoWvosv6wEe4VNkBzF7NDBtMn7ntkIN/f6AoXVEzIKr5B36jAVissjvqGtEgDyw jNrgtVgfVtACPaZG3QaNBGDZ8lv+LTydbhZhYC9mKCuTQY9XsFp4NO8HG0ySg1LXX3UH 9ujw== X-Gm-Message-State: AOAM530Pi319jyMWOF9LkDwwasHrqio/EziDaozyOpHc5CayJDmukXPO IfMTz4jZhng3AGTLKk5RiAd5m0rtxag= X-Google-Smtp-Source: ABdhPJw5IS5+kIHYPDiy8huWmviL+UI4/hJ5EZSjyF1VOmGuyIAML/eAhEpHikiSQZ1feKPHOyTT9A== X-Received: by 2002:aa7:dd49:: with SMTP id o9mr3655015edw.92.1597306001903; Thu, 13 Aug 2020 01:06:41 -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 u24sm2987892edq.23.2020.08.13.01.06.41 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Aug 2020 01:06:41 -0700 (PDT) In-Reply-To: X-Readdle-Message-ID: 32168f3c-c9bd-499e-8be1-4e0a36124fdc@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:108376 Archived-At: --===============6785863517851109531== Content-Type: multipart/alternative; boundary="5f34f490_643c9869_3233" --5f34f490_643c9869_3233 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi all, Anybody some pointers=3F Cheers, Tim On 11 Aug 2020, 11:41 +0200, Tim Steenvoorden , wrote: > Hi all, > > I=E2=80=99ve a text where chapters are numbered 1, 2, 3, =E2=80=A6 and = sections 1.1, 1.2, 1.3, =E2=80=A6 > Now I=E2=80=99d like all elements (figures, tables, examples, definitio= ns, theorems, =E2=80=A6) to be numbered consecutively prefixed by the cha= pter 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 enumerat= ions=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= way. > > Cheers, > Tim --5f34f490_643c9869_3233 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Hi all,

Anybody some pointers=3F

Cheers,
Tim
On 11 Aug 2020, 11:41 +0200, Tim St= eenvoorden <tim.steenvoorden=40gmail.com>, wrote:
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
--5f34f490_643c9869_3233-- --===============6785863517851109531== 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== --===============6785863517851109531==--