From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92511 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Formula numbering Date: Tue, 08 Sep 2015 14:30:39 +0200 Message-ID: <55EED4EF.9090104@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1789404812==" X-Trace: ger.gmane.org 1441715515 2222 80.91.229.3 (8 Sep 2015 12:31:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Sep 2015 12:31:55 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 08 14:31:42 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZZI3h-0003pJ-Jk for gctc-ntg-context-518@m.gmane.org; Tue, 08 Sep 2015 14:31:33 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 11A3E10219 for ; Tue, 8 Sep 2015 14:31:33 +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 Ougr-OxHaRDy for ; Tue, 8 Sep 2015 14:31:31 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id F304210234 for ; Tue, 8 Sep 2015 14:30:54 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 60D48101FA for ; Tue, 8 Sep 2015 14:30:51 +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 C-5c5I8N2-rj for ; Tue, 8 Sep 2015 14:30:45 +0200 (CEST) Original-Received: from filter3-utr.mf.surf.net (filter3-utr.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id AB579101F7 for ; Tue, 8 Sep 2015 14:30:45 +0200 (CEST) Original-Received: from mail-wi0-x22f.google.com (mail-wi0-x22f.google.com [IPv6:2a00:1450:400c:c05::22f]) by filter3-utr.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t88CUiL9012466 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Tue, 8 Sep 2015 14:30:44 +0200 Original-Received: by wiclk2 with SMTP id lk2so113546225wic.1 for ; Tue, 08 Sep 2015 05:30:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=VqYhOo8L4COdVdiOi4b2oSrJPkt2EUDWZ7RHnJzpAHc=; b=aSKi8Zt43b2dk+zObo3WQh4qttMcuIjZMyI1gCYXrC0TdylmvIngNPIjLzdAic7hnL z9xa+CICGvLs9jtcepYenBY/saR556qcBttWttfp5k1iWqmFl5ZvAKyS9Jpal5kf6uGm HdnOX4f2ajnVq8ifSZcnYuYYKpLXlxp8f7tTMWcLNxglPF8fonhP5gvrB7P4894yyFyG /5orv/VsQEgbTj73tfqFffA6HAu0NWGPTA+0iWlqRiXe5eMrXMOrD1LhkUo/P2Fhawqc 3C0r77CrbtUBhiXigMcKrEd9zpfOWuDZ189nFC8DmkCSmEFrzWk2jxqUJbzgwBmiaNXt lueg== X-Received: by 10.180.20.177 with SMTP id o17mr43335482wie.93.1441715444254; Tue, 08 Sep 2015 05:30:44 -0700 (PDT) Original-Received: from keima.localdomain (x2f2de9f.dyn.telefonica.de. [2.242.222.159]) by smtp.googlemail.com with ESMTPSA id lh11sm4626013wic.18.2015.09.08.05.30.43 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 08 Sep 2015 05:30:43 -0700 (PDT) User-Agent: Postbox 4.0.4 (Macintosh/20150825) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::22f; country=BE; region=Brussels Capital; city=Brussels; latitude=50.8466; longitude=4.3528; http://maps.google.com/maps?q=50.8466,4.3528&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08PeAuIee - 45d8363094af - 20150908 (trained as not-spam) Received-SPF: pass (filter3-utr.mf.surf.net: domain of schuster.wolfgang@gmail.com designates 2a00:1450:400c:c05::22f as permitted sender) receiver=filter3-utr.mf.surf.net; client-ip=2a00:1450:400c:c05::22f; envelope-from=; helo=mail-wi0-x22f.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:92511 Archived-At: This is a multi-part message in MIME format. --===============1789404812== Content-Type: multipart/alternative; boundary="------------090800070503070101050107" This is a multi-part message in MIME format. --------------090800070503070101050107 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > Mari Voipio > 8. September 2015 13:40 > Hello! > > I recently had to reformat a document that contains mathematical > notation and I was surprised how easy it was once I got the hang of > it. There's only one tiny problem: > > I have one equation inserted with \placeformula. Currently this > formula gets numbered as equation 2.1 as it is in chapter two. I would > prefer it to be called just (1) instead of (2.1). > > The display math page at > says to use \setupnumber[formula][way=bysection] to get formulas > numbered by section, but there are no hints on numbering the formulas > with a running number independent of the section numbering. You can disable the chapter, section etc. number with the "prefix=no" setting but you should also add "way=bytext" because the prefix setting won't stop context from resetting the counter with each new chapter, or section. %% begin example \setupformula[prefix=no] \starttext \chapter{Chapter} \placeformula \startformula 1 + 2 = 3 \stopformula \stoptext %% end example Wolfgang --------------090800070503070101050107 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
8. September 2015 13:40
Hello!

I recently had to reformat a document that contains mathematical
notation and I was surprised how easy it was once I got the hang of
it. There's only one tiny problem:

I have one equation inserted with \placeformula. Currently this
formula gets numbered as equation 2.1 as it is in chapter two. I would
prefer it to be called just (1) instead of (2.1).

The display math page at <http://wiki.contextgarden.net/Math/Display>
says to use \setupnumber[formula][way=bysection] to get formulas
numbered by section, but there are no hints on numbering the formulas
with a running number independent of the section numbering.
You can disable the chapter, section etc. number with the "prefix=no" setting
but you should also add "way=bytext" because the prefix setting won't stop
context from resetting the counter with each new chapter, or section.

%% begin example
\setupformula[prefix=no]

\starttext

\chapter{Chapter}

\placeformula
\startformula
1 + 2 = 3
\stopformula

\stoptext
%% end example

Wolfgang
--------------090800070503070101050107-- --===============1789404812== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============1789404812==--