From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/78014 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Numbering of figures and tables changed? Date: Sun, 26 Aug 2012 11:29:15 +0200 Message-ID: <039C0CBC-2AE6-44E4-8210-DD3EE35DE65E@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1486\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1345973443 25106 80.91.229.3 (26 Aug 2012 09:30:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 26 Aug 2012 09:30:43 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Aug 26 11:30:45 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 1T5ZB1-0000f3-Fa for gctc-ntg-context-518@m.gmane.org; Sun, 26 Aug 2012 11:30:39 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 173C7101E7; Sun, 26 Aug 2012 11:30:37 +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 hod+Ezww8B26; Sun, 26 Aug 2012 11:30:35 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 72768101DF; Sun, 26 Aug 2012 11:30:35 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5D382101DF for ; Sun, 26 Aug 2012 11:30:34 +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 O99xbaYQIyrT for ; Sun, 26 Aug 2012 11:30:33 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id A951E101DD for ; Sun, 26 Aug 2012 11:30:33 +0200 (CEST) Original-Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q7Q9UWZP028589 for ; Sun, 26 Aug 2012 11:30:33 +0200 Original-Received: by wibhq4 with SMTP id hq4so1816199wib.2 for ; Sun, 26 Aug 2012 02:30:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=6wGgUw8V1RZf98n/Gt+/uRLw42vaHr9EfwXdZZyXkMk=; b=lcqbuuQ4K0rSmAvXF0aaXo/XzUcmZeRM0hf1FaNm4e5yEg+uW5zfLh/+MwoXvTAxAj cNb00csVqiRZsBgShyDHUts0axbkBrJX/Jp6FztfQyk7R2CvfaXFiGt6CyLEiRNijPmv 4lwCa4HY0O9WQjwzbxv/wFFw++0QXc2wKSeIH4/4gEr93+Re4BLoN+BIHVKk2zG2IJ/M 8siWoiYm5Wase0DqZLHiuKjMbj6yxOZ19t3PY0x2csF2rCuPK/DlcTpCNZCuwP2KfIBJ ZRZV96WzPWWFXFjKddB9iJJJSLyDk8lhwrOvEdNTssBcogJ3Yp1L+1yLytp9FUOcZCOl 8Nmw== Original-Received: by 10.216.135.217 with SMTP id u67mr5592687wei.115.1345973431954; Sun, 26 Aug 2012 02:30:31 -0700 (PDT) Original-Received: from [10.50.235.46] ([82.113.99.46]) by mx.google.com with ESMTPS id k20sm8239516wiv.11.2012.08.26.02.30.21 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 26 Aug 2012 02:30:31 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1486) 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: 0VHPluwK5 - 8e56e3f40b94 - 20120826 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:78014 Archived-At: Am 26.08.2012 um 10:33 schrieb Robert Blackstone : > Dear list, > > In the book/thesis I am typesetting the many figures (Examples) and the few tables must be numbered per chapter, (Ex. 1.3, Ex. 4.17 etc) and they should appear like this in the List of Examples. > Up to around 27 july this worked perfectly, automatically I should say, but with a newer version of mkiv (25 august) they come out numbered for the book as a whole and without chapter numbers. I have not changed the setups, and I can reproduce the correct result with an older version of mkiv (may) with a slightly adapted environment file. Unfortunately I do need some recent features of mkiv. > The setups for the floats are: > > \definefloat[Example][examples] > \setupfloat[Example][spacebefore=medium,spaceafter=medium,sidespacebefore=medium,sidespaceafter=medium] > \setupcaption[Example][location=top,number=yes,inbetween=\blank,bodyfont=10pt] > \setuplabeltext[en][Example=Ex.~] > > \definefloat[table][tables] > \setupfloat[table][spacebefore=medium,spaceafter=medium,sidespacebefore=medium,sidespaceafter=medium] > \setupcaption[table][location=top,number=yes,inbetween=\blank,bodyfont=10pt]\setuplabeltext[en][table=Table~] > > I tried [way=bychapter] as an argument for the captions but that did not change anything' > > 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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________