From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/79401 Path: news.gmane.org!not-for-mail From: Sietse Brouwer Newsgroups: gmane.comp.tex.context Subject: Re: incrementnumber vs. prefixsegments Date: Wed, 21 Nov 2012 13:38:47 +0100 Message-ID: References: <50987C78.5020401@veribox.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1353501564 9223 80.91.229.3 (21 Nov 2012 12:39:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Nov 2012 12:39:24 +0000 (UTC) To: plink@veribox.net, mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 21 13:39:36 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 1Tb9aZ-00025R-CH for gctc-ntg-context-518@m.gmane.org; Wed, 21 Nov 2012 13:39:35 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8B8A510356; Wed, 21 Nov 2012 13:39:24 +0100 (CET) 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 kZjxP1EL5+YE; Wed, 21 Nov 2012 13:39:22 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id DC61E1035E; Wed, 21 Nov 2012 13:39:21 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AF67E1035E for ; Wed, 21 Nov 2012 13:39:20 +0100 (CET) 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 PfdHXzzAvVy2 for ; Wed, 21 Nov 2012 13:39:19 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 62EF710356 for ; Wed, 21 Nov 2012 13:39:19 +0100 (CET) Original-Received: from mail-ia0-f169.google.com (mail-ia0-f169.google.com [209.85.210.169]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id qALCdHvx027689 for ; Wed, 21 Nov 2012 13:39:18 +0100 Original-Received: by mail-ia0-f169.google.com with SMTP id r4so6192409iaj.14 for ; Wed, 21 Nov 2012 04:39:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=iyCl/udvjsEq/pSVa50sTSS/iM+J9oZurCaSc0jwl5I=; b=pMUAh3GVscyEVtxUXEJtxRsQ3CL7ToiNVFpg5VR+BzCCTd56BUmHFoFoDSNzwUCfxR cZY9Gay7oYRP/K2qDf4EmJIoXPyRzJT6+mCpM61HDkOoR5TLDAoNA88rhlxojoEoXxHB cnRKP6cfwN6cX14LEopDy7qBJlApQr7Gzp9DwyKAtjtx114aryOmPHBtX1XAGBMQ1kXM rlK6Du9gJV8vrmkZOU7POwXj1U/JthkZFmfCRca5UQsfq0gSslGLScka5sWvCIOwa1OG KmvomYOyxnPU5rcp0RoDL8sMDg2X/pv5Yv7KKVlDBQnUgU/cjCioWBn54PPS/niCYzI2 asZQ== Original-Received: by 10.50.88.200 with SMTP id bi8mr13484731igb.28.1353501557266; Wed, 21 Nov 2012 04:39:17 -0800 (PST) Original-Received: by 10.64.5.138 with HTTP; Wed, 21 Nov 2012 04:38:47 -0800 (PST) In-Reply-To: <50987C78.5020401@veribox.net> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.210.169; 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: 0RIqcDhFe - d891e37dea20 - 20121121 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:79401 Archived-At: On Tue, Nov 6, 2012 at 3:56 AM, plink wrote: > i'm trying to combine two features that somehow don't fit together: > 1. figure numbering and referring using a chapter.fignr scheme. > 2. untitled entries below chapter (aka subject or subsubject), that also > have to occur in the table of contents. Did you manage to sort this out yet? If not, consider this a *bump*. I'm afraid I haven't quite managed to work it out myself. --Sietse On Tue, Nov 6, 2012 at 3:56 AM, plink wrote: > Hi, > > i'm trying to combine two features that somehow don't fit together: > > 1. figure numbering and referring using a chapter.fignr scheme. > For this, a setup with > > \setupcaption[figure][prefix=yes,way=bychapter,prefixsegments=chapter] > > works fine, as long as i don't have > > 2. untitled entries below chapter (aka subject or subsubject), that also > have to occur in the table of contents. For this, e.g. using > > \setuphead[subject][incrementnumber=list] > \definecombinedlist[content][title,chapter,section,subject] > > does the trick, but then the figure number prefix gets eaten up at > figures in subjects. I'd be glad if anybody could give me a hint on how > to solve this. > > ConTeXt ver: 2012.10.30 21:13 MKIV > > Below a maximin example. Commenting out the \setuphead line gives back > the prefix, but then there is no more subject in the toc, as to be expected: > > \setuphead[chapter][page=no,continue=yes] > > \setupcaption[figure][ > prefix=yes, > way=bychapter, > prefixsegments=chapter] > > \setuphead[subject][incrementnumber=list] > > \definecombinedlist[content][title,chapter,section,subject] > > \starttext > \placecontent > > \chapter{Chapter} > > \section{Section Een} > > \placefigure[here][fig:a]{figure a}{\externalfigure[cow.pdf][width=1cm]} > > Figure \in[fig:a] = 1.1\crlf > Figure \in[fig:b] = 1.2?\crlf > Figure \in[fig:c] = 1.3\crlf > > \subject{Subject} > > \placefigure[here][fig:b]{figure b}{\externalfigure[cow.pdf][width=1cm]} > > Figure \in[fig:a] = 1.1\crlf > Figure \in[fig:b] = 1.2?\crlf > Figure \in[fig:c] = 1.3\crlf > > \section{Section Twee} > > \placefigure[here][fig:c]{figure c}{\externalfigure[cow.pdf][width=1cm]} > > Figure \in[fig:a] = 1.1\crlf > Figure \in[fig:b] = 1.2?\crlf > Figure \in[fig:c] = 1.3\crlf > > \stoptext > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ ___________________________________________________________________________________ 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 ___________________________________________________________________________________