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 \startformula \startalign \NC a_1 x + b_1 y \NC = c_1 \NR[eq:c][c] \NC a_2 x + b_2 y \NC = c_2 \NR[eq:d][d] \stopalign \stopformula (\in[eq:c]) and (\in[eq:d]) form a linear system of equations. \stoptext Is this a known bug? Thanks in advance: OK
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 described there:
\starttext \placesubformula \startformula \startalign \NC a_1 x + b_1 y \NC = c_1 \NR[eq:c][c] \NC a_2 x + b_2 y \NC = c_2 \NR[eq:d][d] \stopalign \stopformula (\in[eq:c]) and (\in[eq:d]) form a linear system of equations. \stoptext
Is this a known bug?
I can confirm the bug. Using \startsubformulas does not work either. I don't completely understand the new implementation of ConTeXt numbers, so I cannot suggest an immediate fix for this. Aditya
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 {\let\strc_formulas_handle_sub_numbering\relax % else error \doiftextelse\currentsubformulasuffix {\strc_counters_setown_sub\v!formula\plustwo\currentsubformulasuffix} {\strc_counters_increment_sub\v!formula\plustwo}% \placecurrentformulanumber} This works for me. I do this every time I update context. Please consult [NTG-context] subformulas: error in latest beta in the mailing list. This is where I reported this bug earlier. Hans himself provided the fix. Hope this helps. Cheers, Andreas Am Oct 14, 2012 um 9:07 PM schrieb 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 described there:
\starttext \placesubformula \startformula \startalign \NC a_1 x + b_1 y \NC = c_1 \NR[eq:c][c] \NC a_2 x + b_2 y \NC = c_2 \NR[eq:d][d] \stopalign \stopformula (\in[eq:c]) and (\in[eq:d]) form a linear system of equations. \stoptext
Is this a known bug?
I can confirm the bug. Using \startsubformulas does not work either.
I don't completely understand the new implementation of ConTeXt numbers, so I cannot suggest an immediate fix for this.
Aditya___________________________________________________________________________________ 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 ___________________________________________________________________________________
Am 14.10.2012 um 22:25 schrieb 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 {\let\strc_formulas_handle_sub_numbering\relax % else error \doiftextelse\currentsubformulasuffix {\strc_counters_setown_sub\v!formula\plustwo\currentsubformulasuffix} {\strc_counters_increment_sub\v!formula\plustwo}% \placecurrentformulanumber}
This works for me. I do this every time I update context. Please consult
[NTG-context] subformulas: error in latest beta
in the mailing list. This is where I reported this bug earlier. Hans himself provided the fix.
This is already in the core (str-mat.mkiv) but I found a typo in another macro in font-new.mkiv Wolfgang
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 I replace the function \strc_formulas_handle_sub_numbering as described before, erveryting works nicely. Probably your fix has not yet been uploaded, yet. I just wanted to let you know. Maybe this clarifies something or indicates additional problems. Cheers, Andreas
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.
Probably we have to wait for a fix from Hans in an upcoming beta.
@Wolfgang: can the typo you mention in font-new.mkiv be easily fixed?
Best regards: OK
On 15 oct. 2012, at 12:44, 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 I replace the function
\strc_formulas_handle_sub_numbering
as described before, erveryting works nicely. Probably your fix has not yet been uploaded, yet. I just wanted to let you know. Maybe this clarifies something or indicates additional problems.
Cheers, Andreas ___________________________________________________________________________________ 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 ___________________________________________________________________________________
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 subformulas are not numbered as expected. Probably we have to wait for a fix from Hans in an upcoming beta.
@Wolfgang: can the typo you mention in font-new.mkiv be easily fixed?
it's in cont-new.mkiv and that one is loaded runtime so it can be fixed without remaking the format Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Am 15.10.2012 um 13:45 schrieb 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. Probably we have to wait for a fix from Hans in an upcoming beta.
@Wolfgang: can the typo you mention in font-new.mkiv be easily fixed?
Yes and Hans wil fix it in the next beta but this doesn’t fix the problem with the wrong numbering because the problem for this lies somewhere else. Wolfgang
On 15-10-2012 16:58, Wolfgang Schuster wrote:
Am 15.10.2012 um 13:45 schrieb 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. Probably we have to wait for a fix from Hans in an upcoming beta.
@Wolfgang: can the typo you mention in font-new.mkiv be easily fixed?
Yes and Hans wil fix it in the next beta but this doesn’t fix the problem with the wrong numbering because the problem for this lies somewhere else.
let's first catch up on other reported issues (I can't find the bugged example anyway). Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (5)
-
Aditya Mahajan
-
Andreas Mang
-
Hans Hagen
-
Otared Kavian
-
Wolfgang Schuster