From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/68182 Path: news.gmane.org!not-for-mail From: Julian Becker Newsgroups: gmane.comp.tex.context Subject: formula numbering in unnumbered sections Date: Wed, 4 May 2011 19:55:01 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1424715196==" X-Trace: dough.gmane.org 1304531728 29192 80.91.229.12 (4 May 2011 17:55:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 4 May 2011 17:55:28 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed May 04 19:55:22 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 1QHgID-0006je-6j for gctc-ntg-context-518@m.gmane.org; Wed, 04 May 2011 19:55:21 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 57E20CAC8D; Wed, 4 May 2011 19:55:20 +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 d+Y0hYWVtHTa; Wed, 4 May 2011 19:55:17 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6230FCAC8A; Wed, 4 May 2011 19:55:17 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4E8EECAC8A for ; Wed, 4 May 2011 19:55:15 +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 OfVf8sIxDHA6 for ; Wed, 4 May 2011 19:55:04 +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 63C83CABB6 for ; Wed, 4 May 2011 19:55:04 +0200 (CEST) Original-Received: from mail-iy0-f169.google.com (mail-iy0-f169.google.com [209.85.210.169]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p44Ht2FL015866 for ; Wed, 4 May 2011 19:55:03 +0200 Original-Received: by iyh42 with SMTP id 42so1704066iyh.14 for ; Wed, 04 May 2011 10:55:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=K3LG751OFn2MuwpkjuIasUIth/CkFTh6OvTl9YR3t1Y=; b=H/imipdZ8ptEU3/BBoaLm5WSZ9zk6/w4FKgmxfK0wsryYMAftaHPyFtF5mOJ/bDjjQ 2aUOEclsM8It6q4sBFy+P2RwaNd+1a1HgNPGftf6CSSVC2wPbvpzaF2niITOKmmKJjCV 1zqpFUh2IADjhQOch5iFrdkqXK/vNA3M8Hvh4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=vsRMXezeG9ZK6dS0twQ8ZJ5qFSUd/ySuY/DncTLvYJNpFnssio4RhIx7zjr5I9ST7I lIMEecdK0JQKh8J5isiB515WO+pBUpZcmqq6DBqVMc8nKGaiKBhJPJCX2zXKCJP66DN6 bKDr6M2l8kiRj33xTnvWUxRK3ZmNg2g607LRg= Original-Received: by 10.42.147.69 with SMTP id m5mr2218055icv.12.1304531702233; Wed, 04 May 2011 10:55:02 -0700 (PDT) Original-Received: by 10.42.171.74 with HTTP; Wed, 4 May 2011 10:55:01 -0700 (PDT) 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: 05EDtT39n - 382c512ac312 - 20110504 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:68182 Archived-At: --===============1424715196== Content-Type: multipart/alternative; boundary=90e6ba6e8348b5b8ab04a276f478 --90e6ba6e8348b5b8ab04a276f478 Content-Type: text/plain; charset=ISO-8859-1 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) in 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). Anybody has an idea how to accomplish this? Thanks, Julian ----------------- \setuphead[subsection][number=no] \setupnumber[formula][key=chapter] \starttext \chapter{Wake up} \placeformula \startformula a^2+b^2=c^2 \stopformula \section{Make Coffee} \placeformula \startformula c^2+d^2=e^2 \stopformula \subsection{Now waking up for real} \placeformula \startformula a^2+b^2=c^2 \stopformula \chapter{Wake up again} \placeformula \startformula a^2+b^2=c^2 \stopformula \section{Make Coffee again} \placeformula \startformula c^2+d^2=e^2 \stopformula \subsection{Now waking up for real} \placeformula \startformula a^2+b^2=c^2 \stopformula \stoptext ------------- "Keep thy heart with all diligence; for it is the wellspring of life." --90e6ba6e8348b5b8ab04a276f478 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I came across the following problem recently: In my document I want ch= apters and sections to be numbered, but not subsections, subsubsections etc= .
Then, additionally I want my formulae to be numbered by chapte= r 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 w= anted. I'd rather have the formulae numbered as=A0=A0 (1.1), (1.2) and (1.3) in the first chapter, and as (2.1), (2.2) and (2.3).=

Anybody has an idea how to accomplish this?
=

Thanks,
Julian

-----------------

\setuphead[subsection][number=3D= no]
\setupnumber[formula][key=3Dchapter]
\starttext
\chapter{Wake = up}
\placeformula
\startformula a^2+b^2=3Dc^2
\stopformula
\sec= tion{Make Coffee}
\placeformula
\startformula c^2+d^2=3De^2
\stopformula
\subsection= {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
\startformu= la c^2+d^2=3De^2
\stopformula
\subsection{Now waking up for real}
= \placeformula
\startformula a^2+b^2=3Dc^2
\stopformula

\stopte= xt

-------------


"Keep thy heart with all= diligence; for it is the wellspring of life."
--90e6ba6e8348b5b8ab04a276f478-- --===============1424715196== 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 ___________________________________________________________________________________ --===============1424715196==--