From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/108381 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: Same counter for figures as theorems Date: Thu, 13 Aug 2020 13:11:36 +0200 Message-ID: <39780BE5-1C13-44FA-B838-7C302CE53635@elvenkind.com> References: <1697c9e5-a649-4569-a35e-071bf1594300@Spark> <32168f3c-c9bd-499e-8be1-4e0a36124fdc@Spark> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\)) Content-Type: multipart/mixed; boundary="Apple-Mail=_BFB2F086-8B1F-42A2-9D64-83E95C232386" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14935"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 13 13:11:59 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 1k6B9K-0003kg-Ry for gctc-ntg-context-518@m.gmane-mx.org; Thu, 13 Aug 2020 13:11:58 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B2D8B1A7F87; Thu, 13 Aug 2020 13:11:41 +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 SQ8s7wbWH2Qq; Thu, 13 Aug 2020 13:11:40 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 50DA81A7F88; Thu, 13 Aug 2020 13:11:40 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 8566C1A7F87 for ; Thu, 13 Aug 2020 13:11:39 +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 2A6a264RCrRn for ; Thu, 13 Aug 2020 13:11:39 +0200 (CEST) Received-SPF: None (mailfrom) identity=mailfrom; client-ip=5.39.185.224; helo=server5b.aanhet.net; envelope-from=taco@elvenkind.com; receiver= Original-Received: from server5b.aanhet.net (server5b.aanhet.net [5.39.185.224]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 0B5AD1A7F6E for ; Thu, 13 Aug 2020 13:11:38 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by server5b.aanhet.net (Postfix) with ESMTP id C2D05177 for ; Thu, 13 Aug 2020 13:11:38 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at server5.aanhet.net Original-Received: from server5b.aanhet.net ([127.0.0.1]) by localhost (server5b.aanhet.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oyZWbFtu6qYj for ; Thu, 13 Aug 2020 13:11:36 +0200 (CEST) Original-Received: from hamster.fritz.box (boo.demon.nl [83.163.247.99]) by server5b.aanhet.net (Postfix) with ESMTPSA id CB92E170 for ; Thu, 13 Aug 2020 13:11:36 +0200 (CEST) In-Reply-To: <32168f3c-c9bd-499e-8be1-4e0a36124fdc@Spark> X-Mailer: Apple Mail (2.3608.120.23.2.1) 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:108381 Archived-At: --Apple-Mail=_BFB2F086-8B1F-42A2-9D64-83E95C232386 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On 13 Aug 2020, at 10:06, Tim Steenvoorden = wrote: >=20 > Hi all, >=20 > Anybody some pointers? Next time, prepare a minimal (non)working example. Because the = attachment works for me. Best wishes, Taco --Apple-Mail=_BFB2F086-8B1F-42A2-9D64-83E95C232386 Content-Disposition: attachment; filename=tryme.tex Content-Type: application/octet-stream; x-unix-mode=0644; name="tryme.tex" Content-Transfer-Encoding: 7bit \setupcaptions[ way=bysection, prefixsegments=chapter:section, ] \setupenumerations[ way=bysection, prefix=yes, prefixsegments=chapter:section, ] \defineenumeration[enumeration][text=Enumeration] \definecounter[object][ way=bysection, prefix=yes, prefixsegments=chapter:section, ] \setupenumerations[ counter=object, ] \setupcaptions[ counter=object, ] \starttext \dorecurse{4}{ \chapter{Hi} \section{Knuth} \input knuth \enumeration \input zapf \par \placefigure{This is the caption}{This is some content} } \stoptext --Apple-Mail=_BFB2F086-8B1F-42A2-9D64-83E95C232386 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii --Apple-Mail=_BFB2F086-8B1F-42A2-9D64-83E95C232386 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== --Apple-Mail=_BFB2F086-8B1F-42A2-9D64-83E95C232386--