From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/29190 Path: news.gmane.org!not-for-mail From: "Mojca Miklavec" Newsgroups: gmane.comp.tex.context Subject: Re: Numbering Date: Fri, 7 Jul 2006 23:00:54 +0200 Message-ID: <6faad9f00607071400v7097da76kf6ade7d030e74a0f@mail.gmail.com> References: <2DDE0779-E922-4C59-8C55-F4798844EC58@cox.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1152306089 22440 80.91.229.2 (7 Jul 2006 21:01:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 7 Jul 2006 21:01:29 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 07 23:01:26 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1FyxRy-0001az-7m for gctc-ntg-context-518@m.gmane.org; Fri, 07 Jul 2006 23:01:22 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 91DE4127EE; Fri, 7 Jul 2006 23:01:21 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 32477-08; Fri, 7 Jul 2006 23:01:12 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 91F63127B0; Fri, 7 Jul 2006 23:01:11 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 74BDF127B0 for ; Fri, 7 Jul 2006 23:01:07 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05342-02 for ; Fri, 7 Jul 2006 23:01:01 +0200 (CEST) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by ronja.ntg.nl (Postfix) with SMTP id DB0BB1276B for ; Fri, 7 Jul 2006 23:00:56 +0200 (CEST) Original-Received: by ug-out-1314.google.com with SMTP id c2so22260ugf for ; Fri, 07 Jul 2006 14:00:54 -0700 (PDT) Original-Received: by 10.78.151.3 with SMTP id y3mr882624hud; Fri, 07 Jul 2006 14:00:54 -0700 (PDT) Original-Received: by 10.78.72.12 with HTTP; Fri, 7 Jul 2006 14:00:54 -0700 (PDT) Original-To: "mailing list for ConTeXt users" In-Reply-To: <2DDE0779-E922-4C59-8C55-F4798844EC58@cox.net> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:29190 Archived-At: On 7/7/06, David Arnold wrote: > All, > > Let's say I have some enumerations that are numbered, for > definitions, examples, theorems, etc. Let's say I want everything in > a section numbered consecutively, except figures. So, numbering would > proceed like this: Grrr ... I have exactly the opposite problem: I need the definitions/examples/problems/... to be numbered independent of each other, but I cannot get rid of coupling between these numbers. > Definition 1.1 > > Where the first number is the section number. > > Now, by "consecutive," I mean: > > Definition 1.1 > > f(x)=3x+2 (1.2) > > Example 1.3 > > Definition 1.4 > > Definition 1.5 > > f(x)=x^2 (1.6) > > Figure 1 > > Example 1.7 > > Example 1.8 > > Definition 1.9 > > Figure 2 > > etc. > > Hope this give the right idea. > > Question: What would be the "Context Way" to go about this? I didn't know how to automatically increase the subsection number after formulas, but the rest should be OK. \setuphead [subsection] [after={\incrementnumber[formula]}] \definehead [definition] [subsection] \definehead [example] [subsection] \setuplabeltext[en][definition=Definition ] \setuplabeltext[en][example=Example ] % or \setupfloat[figure][...] \setupfloats [way=bysection, location=top, align=right] \setupformulas [way=bysection] % after={\setupheadnumber[subsection][+1]}, \starttext \section{First section} \definition{} \placeformula \startformula f(x)=3x+2 \stopformula \setupheadnumber[subsection][+1] \example{} \definition{} \definition{} \placeformula \startformula f(x)=x^2 \stopformula \setupheadnumber[subsection][+1] \placefigure[here]{}{abc} \example{} \placefigure[here]{}{def} \example{} \definition{} \stoptext Mojca