From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92235 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Numbering subformulas Date: Thu, 06 Aug 2015 12:07:18 +0200 Message-ID: <55C331D6.7010807@gmail.com> References: <55C29B56.9060700@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1315552963==" X-Trace: ger.gmane.org 1438855707 12071 80.91.229.3 (6 Aug 2015 10:08:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Aug 2015 10:08:27 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 06 12:08:12 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 1ZNI5h-0006Lt-9s for gctc-ntg-context-518@m.gmane.org; Thu, 06 Aug 2015 12:08:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 179CE10226 for ; Thu, 6 Aug 2015 12:08:00 +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 8jbWQPxo1fkR for ; Thu, 6 Aug 2015 12:07:59 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 7645510234 for ; Thu, 6 Aug 2015 12:07:30 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2DD78101FA for ; Thu, 6 Aug 2015 12:07:26 +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 YSyuqWffWI3W for ; Thu, 6 Aug 2015 12:07:25 +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 0AC11101F7 for ; Thu, 6 Aug 2015 12:07:20 +0200 (CEST) Original-Received: from mail-wi0-x234.google.com (mail-wi0-x234.google.com [IPv6:2a00:1450:400c:c05::234]) by filter3-utr.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t76A7JkJ029174 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Thu, 6 Aug 2015 12:07:20 +0200 Original-Received: by wibxm9 with SMTP id xm9so16977047wib.1 for ; Thu, 06 Aug 2015 03:07:19 -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=k2XWbB+W5OrciEnUa9XgQA4MbER0KnUe4jNM2OdeJqQ=; b=StEJ5A/8N977MIIHC1hiMEXuNYkNt7bwhUp9wGhZKeGEhJhys/Sgu0jBB5U34cPJgP CQMcI4veqiWeg/mn8NTzOy4OqM42U/wBPgR5aTs3T6cpwNqflQkFfFZwE07d5oMu1tSk QjiuELzkwYaKgpfyVxkllFMfZ4fd/T/YI/Tf/wXgnOiVhbyPl4tQ8Rjg5kY0hwlWhA1P ipLL2Rnc0uDKRAVeG+O7JT5Fan41QxJuNM/UaWx3wuoNLR6O9l58J9z7wW/AavOl+1mt nRS3J1oF4AuspUdpFO7/v++4octnN5O1jTZUwNX+tsfQ6Bgio03f2g0W9ra7EOKLbFQw vueQ== X-Received: by 10.194.77.70 with SMTP id q6mr1781759wjw.70.1438855639716; Thu, 06 Aug 2015 03:07:19 -0700 (PDT) Original-Received: from keima.localdomain (x2f31aa7.dyn.telefonica.de. [2.243.26.167]) by smtp.googlemail.com with ESMTPSA id fq15sm8669942wjc.12.2015.08.06.03.07.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 06 Aug 2015 03:07:19 -0700 (PDT) User-Agent: Postbox 4.0.1 (Macintosh/20150514) 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::234; 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: 08P1m7kLt - e87d56810e57 - 20150806 (trained as not-spam) Received-SPF: pass (filter3-utr.mf.surf.net: domain of schuster.wolfgang@gmail.com designates 2a00:1450:400c:c05::234 as permitted sender) receiver=filter3-utr.mf.surf.net; client-ip=2a00:1450:400c:c05::234; envelope-from=; helo=mail-wi0-x234.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:92235 Archived-At: This is a multi-part message in MIME format. --===============1315552963== Content-Type: multipart/alternative; boundary="------------040501060409080208050603" This is a multi-part message in MIME format. --------------040501060409080208050603 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: quoted-printable > Proch=E1zka Luk=E1=B9 Ing. - Pontex s. r. o. > 6. August 2015 11:32 > Hello Wolfgang, > > thank you for the patch (not in today's beta); I also attach the=20 > modified strc-mat.mkiv and a test file. > > Two questions: > > 1. > > What exactly are > > %\startsubformulas[+] % These two options for \subformulas > %\startsubformulas[mylabel] % enable subnumbers for the formulas > > intended for? > > The simple "\startsubformulas[eq:b]" meets my needs (subformulas are=20 > sub-numbered) and I can't see any difference to "\startsubformulas[+]". When you write \startsubformulas[-] the numbers for the formulas aren't=20 displayed in the output but the counter is still increased. I guess=20 \startsubformulas[+] is just there for completeness sake because there=20 are other functions with "-" and "+" options as well. One difference between \startsubformulas[+] and \startsubformulas[label]=20 is that the second method creates a label which can be used to refer to=20 the number of the formula. > 2. > > Is there a way to setup numbering subformulas to "(1a)" form instead=20 > of "(1.a)", i.e. set the separator to ""? You have to change the separator list with the numberseparator key for=20 \setupformulas. \defineseparatorset[none][][] \setupformulas[numberseparatorset=3Dnone] Wolfgang --------------040501060409080208050603 Content-Type: text/html; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable
= =20 6. August 2015= =20 11:32
Hello=20 Wolfgang,

thank you for the patch (not in today's beta); I also attach the=20 modified strc-mat.mkiv and a test file.

Two questions:

1.

What exactly are

=A0 %\startsubformulas[+]=A0=A0=A0=A0=A0=A0 % These two options for \= subformulas
=A0 %\startsubformulas[mylabel] % enable subnumbers for the formulas

intended for?

The simple "\startsubformulas[eq:b]" meets my needs (subformulas are sub-numbered) and I can't see any difference to "\startsubformulas[+]".
When you write \startsubformulas[-] the numbers for the formulas arenR= 17;t=20 displayed in the output but the counter is still increased. I guess=20 \startsubformulas[+] is just there for completeness sake because there=20 are other functions with “-” and “+” options as w= ell.

One difference between \startsubformulas[+] and \startsubformulas[label] is that the second method creates a label which can be used to refer to the number of the formula.
2.

Is there a way to setup numbering subformulas to "(1a)" form instead of "(1.a)", i.e. set the separator to ""?
You have to change the separator list with the numberseparator key for=20 \setupformulas.

\defineseparatorset[none][][]
\setupformulas[numberseparatorset=3Dnone]

Wolfgang
--------------040501060409080208050603-- --===============1315552963== 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= --===============1315552963==--