From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78016 Path: news.gmane.org!not-for-mail From: Robert Blackstone Newsgroups: gmane.comp.tex.context Subject: Re: Numbering of figures and tables changed? Date: Sun, 26 Aug 2012 13:31:15 +0200 Message-ID: <745A78E9-E1D1-4C3F-A971-F397E4B4BDF0@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1345980697 8566 80.91.229.3 (26 Aug 2012 11:31:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 26 Aug 2012 11:31:37 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun Aug 26 13:31:38 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T5b3w-0000sW-IP for gctc-ntg-context-518@m.gmane.org; Sun, 26 Aug 2012 13:31:28 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 30DA5101DD; Sun, 26 Aug 2012 13:31:26 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id kmaWaLkNTLt3; Sun, 26 Aug 2012 13:31:24 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 887E0101DF; Sun, 26 Aug 2012 13:31:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D4E65101DF for ; Sun, 26 Aug 2012 13:31:22 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id il9KASAo4QYn for ; Sun, 26 Aug 2012 13:31:21 +0200 (CEST) Original-Received: from filter3-utr.mf.surf.net (filter3-utr.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 4DD6C101DD for ; Sun, 26 Aug 2012 13:31:21 +0200 (CEST) Original-Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by filter3-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q7QBVJxT023908 for ; Sun, 26 Aug 2012 13:31:19 +0200 Original-Received: by wibhq4 with SMTP id hq4so1858652wib.2 for ; Sun, 26 Aug 2012 04:31:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=0dRQ+ZLrW9p+8s3yfLSr9H81M24p2V/5RDHJ9aiuFK0=; b=jc1xfTJk6Z8lWZv3oEfN5BKWh349Wsl5So4mzppa6RzAHM0M8bmuGvkNA6+QyAVdvR DqRwB22tkxaHg8pCjgarOnoUhImQ4LnpUfV5C8k7vjXw+OcJfLUvKY89nmNOU9G8eqza L4l7f0ZDYqUzS472uDMxq/i5mP79d7kyfFC19gDlH4uzdvhyfiUPSzQNfTi9MmSBMp7+ u5AvLPZR4tj5ij97F9jR+cdQ869cxVkbp5AWxF/5UbBsfkCDVP0GLA9tF111uhJjeldR 8MLGskG/wsexnwP0YsR6ngx2m/aOE4t11bCVkCwbziD6sPjNkC8EuyE9jYBCzfpZQYSP QQGQ== Original-Received: by 10.180.97.33 with SMTP id dx1mr17920800wib.18.1345980678914; Sun, 26 Aug 2012 04:31:18 -0700 (PDT) Original-Received: from [192.168.2.4] (ip51cc7044.adsl-surfen.hetnet.nl. [81.204.112.68]) by mx.google.com with ESMTPS id hv8sm8701001wib.0.2012.08.26.04.31.16 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 26 Aug 2012 04:31:17 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1278) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.212.179; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08HPnvjqs - 460f0c7e99e1 - 20120826 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 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-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:78016 Archived-At: On 26 Aug 2012, at 11:29, Wolfgang Schuster wrote > > Am 26.08.2012 um 10:33 schrieb Robert Blackstone : > >> What can I do to give me back the numbering of the floats per chapter? Or, if it is a bug in the recent Minimals, can the numbering per chapter be restored somehow? > > > Setting the way how you want to be numbered resets only the figure counter, to show the chapter number you have to enable prefixes. > > \setupcaption[figure][way=bychapter,prefix=yes] > > \starttext > > \completelistoffigures > > \dorecurse{2} > {\chapter{Chapter #1} > \dorecurse{5} > {\dorecurse{4}{\input knuth\par} > \placefigure{Caption}{\externalfigure[dummy]} > \dorecurse{4}{\input knuth\par}}} > > \stoptext > > Wolfgang Thank you, Wolfgang. Your advice solves one problem but adds another: now the section numbers are included as well. How do I get rid of these? See example: \setupcaption[figure][way=bychapter,prefix=yes] \starttext \completelistoffigures \dorecurse{2} {\chapter{Chapter #1} \input knuth\par \dorecurse{2} {\section{Section #1} \input knuth\par \placefigure{Caption}{\externalfigure[dummy]} \input knuth\par}} \stoptext (I'm sorry for the error in the nested \dorecurse with the section titles but the problem will be clear.) Thanks in advance. Kind regards, Robert ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________