Re: [NTG-context] Numbering subformulas

2015-08-06 Thread Wolfgang Schuster
Procházka Lukáš Ing. - Pontex s. r. o. mailto:l...@pontex.cz 6. August 2015 17:41 Hello Otared, thanks for the hint. However, I'm still not able to tune the numbering setup fully. Now I have (with resulting numbers | desired number): \setuphead[part,chapter][placehead=yes,page=no]

Re: [NTG-context] Numbering subformulas

2015-08-06 Thread Wolfgang Schuster
Procházka Lukáš Ing. - Pontex s. r. o. mailto:l...@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

Re: [NTG-context] Numbering subformulas

2015-08-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, great, thanks for explanation! Best regards, Lukas On Thu, 06 Aug 2015 12:07:18 +0200, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: One difference between \startsubformulas[+] and \startsubformulas[label] is that the second method creates a label which can be used to refer

Re: [NTG-context] Numbering subformulas

2015-08-06 Thread Otared Kavian
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

Re: [NTG-context] Numbering subformulas

2015-08-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .
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

Re: [NTG-context] Numbering subformulas

2015-08-06 Thread Otared Kavian
Hi Lukás, You configure the way the equations are numbered by sayng (for example) \setupformulas[prefix=yes, prefixsegments=chapter:section, way=bysection, location=right] If you say « prefix= no » then you don’t need the other specifications, but I am giving a more example above in

Re: [NTG-context] Numbering subformulas

2015-08-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello Otared, thanks for the hint. However, I'm still not able to tune the numbering setup fully. Now I have (with resulting numbers | desired number): \setuphead[part,chapter][placehead=yes,page=no] \setupformulas [prefix=yes, %prefix=no, %prefixsegments=chapter:section,

Re: [NTG-context] Numbering subformulas

2015-08-05 Thread Wolfgang Schuster
Aditya Mahajan mailto:adit...@umich.edu 4. August 2015 02:08 On Mon, 3 Aug 2015, Procházka Lukáš Ing. - Pontex s. r. o. wrote: I am not sure when the subformula numbering broke, but I can confirm that it is not working with the latest beta. You have to make three changes in strc-mat.mkiv to

Re: [NTG-context] Numbering subformulas

2015-08-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, some more observation: It seems (sub)numbering (sub)formulas can be achieved enclosing expressions into \start/\stop-align. I wrote a code based on a test suite file: ...\test\doc\context\tests\mkiv\math\formulas-001.tex \starttext \startsubformulas[eq:sub1]

Re: [NTG-context] Numbering subformulas

2015-08-03 Thread Aditya Mahajan
On Mon, 3 Aug 2015, Procházka Lukáš Ing. - Pontex s. r. o. wrote: So, finally, what is the PROPER way (if it really exists) in ConTeXt how to typeset subformulas? I am not sure when the subformula numbering broke, but I can confirm that it is not working with the latest beta. @Hans, what

[NTG-context] Numbering subformulas

2015-08-03 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, it seems this is a frequent thesis - in the mailing archive, stackoverflow... Anyway, I'm not able to find a valid way (MWE) how to number subformulas (with option to create a reference name, like 'eq:1a' and 'eq:1b', and to be able to refer to them, like \ineq[eq:1a] and

[NTG-context] Numbering subformulas broken?

2015-08-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, the following example (based on http://wiki.contextgarden.net/Math/Display#Automatic_Sub-Formula_Numbering ): \starttext \startsubformulas[eq:1] \placeformula[eq:1a] \startformula c^2 = a^2 + b^2 \stopformula \placeformula[eq:1b] \startformula

Re: [NTG-context] Numbering subformulas

2012-10-15 Thread Andreas Mang
Dear all, Dear Wolfgang, This is already in the core (str-mat.mkiv) but I found a typo in another macro in font-new.mkiv Thanks. That's indeed interesting. I still get an error. I have deleted everything and have updated to the most recent beta: 2012.10.06 15:31 MKIV fmt: 2012.10.15 If

Re: [NTG-context] Numbering subformulas

2012-10-15 Thread Otared Kavian
Hi Andreas, Wolfgang and Aditya, Thanks for your attention and suggesting a fix. However, after I applied the change mentioned by Andreas for the definition of \strc_formulas_handle_sub_numbering in cont-new.mkiv and made the formats anew, the subformulas are not numbered as expected.

Re: [NTG-context] Numbering subformulas

2012-10-15 Thread Hans Hagen
On 15-10-2012 13:45, Otared Kavian wrote: Hi Andreas, Wolfgang and Aditya, Thanks for your attention and suggesting a fix. However, after I applied the change mentioned by Andreas for the definition of \strc_formulas_handle_sub_numbering in cont-new.mkiv and made the formats anew, the

Re: [NTG-context] Numbering subformulas

2012-10-15 Thread Wolfgang Schuster
Am 15.10.2012 um 13:45 schrieb Otared Kavian ota...@gmail.com: Hi Andreas, Wolfgang and Aditya, Thanks for your attention and suggesting a fix. However, after I applied the change mentioned by Andreas for the definition of \strc_formulas_handle_sub_numbering in cont-new.mkiv

Re: [NTG-context] Numbering subformulas

2012-10-15 Thread Hans Hagen
On 15-10-2012 16:58, Wolfgang Schuster wrote: Am 15.10.2012 um 13:45 schrieb Otared Kavian ota...@gmail.com: Hi Andreas, Wolfgang and Aditya, Thanks for your attention and suggesting a fix. However, after I applied the change mentioned by Andreas for the definition of

[NTG-context] Numbering subformulas

2012-10-14 Thread Otared Kavian
Hi Aditya, It seems that numbering subformulas as described in your « My Way » magazine entitled « Using \startalign » does not work with mkiv. The following minimal example taken from page 6 of the above mentioned manual, does not result in what is described there: \starttext \placesubformula

Re: [NTG-context] Numbering subformulas

2012-10-14 Thread Aditya Mahajan
On Sun, 14 Oct 2012, Otared Kavian wrote: Hi Aditya, It seems that numbering subformulas as described in your « My Way » magazine entitled « Using \startalign » does not work with mkiv. The following minimal example taken from page 6 of the above mentioned manual, does not result in what is

Re: [NTG-context] Numbering subformulas

2012-10-14 Thread Andreas Mang
Hi there, I suppose the following fixes your problem though I can not tell for sure, since you did not provide the error message: Replace the stuff connected to \strc_formulas_handle_sub_numbering in cont-new.mkiv with \def\strc_formulas_handle_sub_numbering

Re: [NTG-context] Numbering subformulas

2012-10-14 Thread Wolfgang Schuster
Am 14.10.2012 um 22:25 schrieb Andreas Mang m...@imt.uni-luebeck.de: Hi there, I suppose the following fixes your problem though I can not tell for sure, since you did not provide the error message: Replace the stuff connected to \strc_formulas_handle_sub_numbering in