From: Otared Kavian <otared@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Numbering subformulas
Date: Thu, 6 Aug 2015 13:42:27 +0200 [thread overview]
Message-ID: <EA3B78D4-B50C-48DB-A634-B5C15BC81081@gmail.com> (raw)
In-Reply-To: <55C331D6.7010807@gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 3657 bytes --]
Hi Wolfgang,
Thanks for having solved the problem with subformulas numbering.
I would just make a comment on your answers to Lukás, regarding the use of
\startsubformulas[mylabel]
Indeed using this structure instead of
\startsubformulas[+]
allows one to refer to all the sub-formulas by invoking (\in[mylabel]), but if one wishes to refer to any individual sub-formula one has to give a label inside the structure \start—\stop—subformulas, at the level of \placeformula for that sub-formula.
Below is your example, with these remarks.
Thanks for your attention and help: OK
%%%% begin example
\usemodule[visual]
\starttext
Using the definition of the scalar product we infer that:
\placeformula[eq:1]
\startformula
\fakeformula
\stopformula
And here are some other relations valid in a Hilbert space:
%\startsubformulas[+] % These two options for \subformulas
%\startsubformulas[mylabel] % enable subnumbers for the formulas
\startsubformulas
\placeformula[eq:2-a]
\startformula
\fakeformula
\stopformula
\placeformula[eq:2-b]
\startformula
\fakeformula
\stopformula
\stopsubformulas
It is clear that the equality (\in[eq:2-b]) is a consequence of (\in[eq:1]) and (\in[eq:2-a]).
% To test how to change the number separator
\defineseparatorset[none][][]
\setupformulas[numberseparatorset=none]
\startsubformulas[eq:3]
\placeformula
\startformula
\fakeformula
\stopformula
\placeformula
\startformula
\fakeformula
\stopformula
\stopsubformulas
Prove relations (\in[eq:3]) using (\in[eq:1]).
\stoptext
%%%% end example
> On 06 Aug 2015, at 12:07, Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:
>
>> Procházka Lukáš Ing. - Pontex s. r. o. <mailto:LPr@pontex.cz> 6. August 2015 11:32
>> Hello Wolfgang,
>>
>> thank you for the patch (not in today's beta); I also attach the 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 sub-numbered) and I can't see any difference to "\startsubformulas[+]".
> When you write \startsubformulas[-] the numbers for the formulas aren’t displayed in the output but the counter is still increased. I guess \startsubformulas[+] is just there for completeness sake because there are other functions with “-” and “+” options as well.
>
> 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 \setupformulas.
>
> \defineseparatorset[none][][]
> \setupformulas[numberseparatorset=none]
>
> Wolfgang
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 7610 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2015-08-06 11:42 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-03 10:20 Procházka Lukáš Ing. - Pontex s. r. o.
2015-08-03 15:47 ` Procházka Lukáš Ing. - Pontex s. r. o.
2015-08-04 0:08 ` Aditya Mahajan
2015-08-05 23:25 ` Wolfgang Schuster
2015-08-06 9:32 ` Procházka Lukáš Ing. - Pontex s. r. o.
2015-08-06 10:07 ` Wolfgang Schuster
2015-08-06 11:18 ` Procházka Lukáš Ing. - Pontex s. r. o.
2015-08-06 11:42 ` Otared Kavian [this message]
2015-08-06 14:03 ` Procházka Lukáš Ing. - Pontex s. r. o.
2015-08-06 14:38 ` Otared Kavian
2015-08-06 15:41 ` Procházka Lukáš Ing. - Pontex s. r. o.
2015-08-06 21:03 ` Wolfgang Schuster
-- strict thread matches above, loose matches on Subject: below --
2012-10-14 16:19 Otared Kavian
2012-10-14 19:07 ` Aditya Mahajan
2012-10-14 20:25 ` Andreas Mang
2012-10-14 21:22 ` Wolfgang Schuster
2012-10-15 10:44 ` Andreas Mang
2012-10-15 11:45 ` Otared Kavian
2012-10-15 14:57 ` Hans Hagen
2012-10-15 14:58 ` Wolfgang Schuster
2012-10-15 17:47 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=EA3B78D4-B50C-48DB-A634-B5C15BC81081@gmail.com \
--to=otared@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).