From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/68323 Path: news.gmane.org!not-for-mail From: Julian Becker Newsgroups: gmane.comp.tex.context Subject: Re: formula numbering in unnumbered sections Date: Tue, 10 May 2011 10:19:54 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1976519159==" X-Trace: dough.gmane.org 1305015619 23636 80.91.229.12 (10 May 2011 08:20:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 10 May 2011 08:20:19 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue May 10 10:20:15 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QJiAw-0001zq-Ds for gctc-ntg-context-518@m.gmane.org; Tue, 10 May 2011 10:20:14 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4FF87CACCE; Tue, 10 May 2011 10:20:13 +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 f6+c-VBdtIs6; Tue, 10 May 2011 10:20:10 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9A972CACCA; Tue, 10 May 2011 10:20:10 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 815C7CACCA for ; Tue, 10 May 2011 10:20:08 +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 1I7zoKIDC3Qz for ; Tue, 10 May 2011 10:19:56 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id CA416CAC2D for ; Tue, 10 May 2011 10:19:56 +0200 (CEST) Original-Received: from mail-iw0-f169.google.com (mail-iw0-f169.google.com [209.85.214.169]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p4A8JtvI025222 for ; Tue, 10 May 2011 10:19:55 +0200 Original-Received: by iwg8 with SMTP id 8so7281237iwg.14 for ; Tue, 10 May 2011 01:19:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=kscwQ+BlluD5EXnBMAhc2LwzPbcBGz3i4Ng784VHCvA=; b=nxNExKbyzS6qv4fS8HJjV06DM1rtLPoxaP5O9ycUwyTrRG/UJL9iNQOM0jbAXrDxjd EIXYA2T1j7xlWTLdhZSJXEQtVxGlZ3/UQ/6rdKvzlB9iS67YpIUci6EfNF95mQY3sLLQ USF4SG2AZs+V41PO2hiFFftwNoigJzd1vFYCo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=laYPeHIk5hHoXphm3f7XbZRx10nLUVgR2MJkwzcjhbnexBC3vVak/kfQTRcygeTuSK EzStX0TrTu8VuXA7b9guJWzyZO5u88HiN58zYw1u5xUmxLuMt+fYth5ApLvvQRjM2gjl sL9rYhSrDUjC1BxXzeIbQClcv/ZK+8w3EAEMk= Original-Received: by 10.42.200.14 with SMTP id eu14mr1469932icb.481.1305015594572; Tue, 10 May 2011 01:19:54 -0700 (PDT) Original-Received: by 10.42.171.74 with HTTP; Tue, 10 May 2011 01:19:54 -0700 (PDT) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.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: 0eEFIjToJ - 31e3d4b5c7c0 - 20110510 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:68323 Archived-At: --===============1976519159== Content-Type: multipart/alternative; boundary=20cf30223ddff0dbd804a2e79ec8 --20cf30223ddff0dbd804a2e79ec8 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thank you alot Aditya! Somehow I didn't even think about using subsubjects instead of subsections. I guess it was too obvious a solution. best regards, Julian 2011/5/9 Aditya Mahajan > On Wed, 4 May 2011, Julian Becker wrote: > > I came across the following problem recently: In my document I want >> chapters >> and sections to be numbered, but not subsections, subsubsections etc. >> Then, additionally I want my formulae to be numbered by chapter and >> section, >> but not subsection. >> >> In the following example the first equation gets numbered correctly as >> (1.1), (1.2) and (3) in the first chapter, and as (2.1), (2.2) and (3) i= n >> the second chapter respectively, which is not what I wanted. I'd rather >> have >> the formulae numbered as (1.1), (1.2) and (1.3) in the first chapter, >> and >> as (2.1), (2.2) and (2.3). >> > > The current behavior looks like a bug to me. > > > Anybody has an idea how to accomplish this? >> > > Don't use subsections with number=3Dno. Rather use subsubject. > > \setupformulas[way=3Dbychapter] > > \starttext > \chapter{Wake up} > \placeformula > \startformula a^2+b^2=3Dc^2 > \stopformula > \section{Make Coffee} > \placeformula > \startformula c^2+d^2=3De^2 > \stopformula > \subsubject{Now waking up for real} > > \placeformula > \startformula a^2+b^2=3Dc^2 > \stopformula > \chapter{Wake up again} > \placeformula > \startformula a^2+b^2=3Dc^2 > \stopformula > \section{Make Coffee again} > \placeformula > \startformula c^2+d^2=3De^2 > \stopformula > \subsubject{Now waking up for real} > > \placeformula > \startformula a^2+b^2=3Dc^2 > \stopformula > > \stoptext > > > Aditya > > _________________________________________________________________________= __________ > 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 > > _________________________________________________________________________= __________ > --=20 Julian Becker Institut f=FCr Angewandte Physik, R.123 Westf=E4lische Wilhelms-Universit=E4t M=FCnster Corrensstr. 2/4 48149 M=FCnster / Westfalen Tel. 0251 83-3 61 53 Mob. 0151 599 848 29 e-mail: j_beck16@uni-muenster.de "Keep thy heart with all diligence; for it is the wellspring of life." --20cf30223ddff0dbd804a2e79ec8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thank you alot Aditya! Somehow I didn't even think about using sub= subjects instead of subsections. I guess it was too obvious a solution.
=

best regards,
Julian

2011/5/9 Aditya Mahajan <adityam@umich.edu>
On Wed, 4 May 2011, Julian Becker wrote:

I came across the following problem recently: In my document I want chapter= s
and sections to be numbered, but not subsections, subsubsections etc.
Then, additionally I want my formulae to be numbered by chapter and section= ,
but not subsection.

In the following example the first equation gets numbered correctly as
(1.1), (1.2) and (3) in the first chapter, and as (2.1), (2.2) and (3) in the second chapter respectively, which is not what I wanted. I'd rather= have
the formulae numbered as =A0 (1.1), (1.2) and (1.3) in the first chapter, a= nd
as (2.1), (2.2) and (2.3).

The current behavior looks like a bug to me.


Anybody has an idea how to accomplish this?

Don't use subsections with number=3Dno. Rather use subsubject.

\setupformulas[way=3Dbychapter]

\starttext
\chapter{Wake up}
\placeformula
\startformula a^2+b^2=3Dc^2
\stopformula
\section{Make Coffee}
\placeformula
\startformula c^2+d^2=3De^2
\stopformula
\subsubject{Now waking up for real}

\placeformula
\startformula a^2+b^2=3Dc^2
\stopformula
\chapter{Wake up again}
\placeformula
\startformula a^2+b^2=3Dc^2
\stopformula
\section{Make Coffee again}
\placeformula
\startformula c^2+d^2=3De^2
\stopformula
\subsubject{Now waking up for real}

\placeformula
\startformula a^2+b^2=3Dc^2
\stopformula

\stoptext


Aditya
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage =A0: http://= www.pragma-ade.nl / http://tex.aanhet.net
archive =A0: http://foundry.supelec.fr/projects/contextrev/
wiki =A0 =A0 : http:= //contextgarden.net
___________________________________________________________________________= ________



--
Julian Becker
Instit= ut f=FCr Angewandte Physik, R.123
Westf=E4lische Wilhelms-Universit=E4t = M=FCnster
Corrensstr. 2/4
48149 M=FCnster / Westfalen
Tel. 0251 83= -3 61 53
Mob. 0151 599 848 29
e-mail: j_beck16@uni-muenster.de

"Keep thy heart with all diligenc= e; for it is the wellspring of life."
--20cf30223ddff0dbd804a2e79ec8-- --===============1976519159== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1976519159==--