formula in TABLE is not continuous numbered
Hi, please have a look at this minimal example below: you'll find three formulas (1), (4), (5) What happen to (2) and (3)? Steffen ....... \starttext \placeformula \startformula a+b=c \stopformula \bTABLE[frame=on,align=right,width=fit,style={\switchtobodyfont[9pt]}] \bTR \bTD[width=35mm] \placeformula \startformula c-a=b \stopformula \eTD \eTR \eTABLE \placeformula \startformula c-b=a \stopformula \stoptext
Am 12.08.2012 um 21:48 schrieb Steffen Wolfrum
Hi,
please have a look at this minimal example below: you'll find three formulas (1), (4), (5)
What happen to (2) and (3)?
Steffen .......
\starttext
\placeformula \startformula a+b=c \stopformula
\bTABLE[frame=on,align=right,width=fit,style={\switchtobodyfont[9pt]}] \bTR \bTD[width=35mm] \placeformula \startformula c-a=b \stopformula \eTD \eTR \eTABLE
\placeformula \startformula c-b=a \stopformula
\stoptext
It’s a bug in the formula numbering. Natural tables perform three runs on the table content to calculate the cell size but formula etc. counters shouldn’t be increases in the first two runs. Wolfgang
Am 12.08.2012 um 22:10 schrieb Wolfgang Schuster:
Am 12.08.2012 um 21:48 schrieb Steffen Wolfrum
: Hi,
please have a look at this minimal example below: you'll find three formulas (1), (4), (5)
What happen to (2) and (3)?
Steffen .......
\starttext
\placeformula \startformula a+b=c \stopformula
\bTABLE[frame=on,align=right,width=fit,style={\switchtobodyfont[9pt]}] \bTR \bTD[width=35mm] \placeformula \startformula c-a=b \stopformula \eTD \eTR \eTABLE
\placeformula \startformula c-b=a \stopformula
\stoptext
It’s a bug in the formula numbering. Natural tables perform three runs on the table content to calculate the cell size but formula etc. counters shouldn’t be increases in the first two runs.
great, yet another bug hunted! and what can be done (on the short-run) to avoid increasing? is there a handy command to manually count down by two? steffen
Am 12.08.2012 um 22:19 schrieb Steffen Wolfrum
Am 12.08.2012 um 22:10 schrieb Wolfgang Schuster:
Am 12.08.2012 um 21:48 schrieb Steffen Wolfrum
: Hi,
please have a look at this minimal example below: you'll find three formulas (1), (4), (5)
What happen to (2) and (3)?
Steffen .......
\starttext
\placeformula \startformula a+b=c \stopformula
\bTABLE[frame=on,align=right,width=fit,style={\switchtobodyfont[9pt]}] \bTR \bTD[width=35mm] \placeformula \startformula c-a=b \stopformula \eTD \eTR \eTABLE
\placeformula \startformula c-b=a \stopformula
\stoptext
It’s a bug in the formula numbering. Natural tables perform three runs on the table content to calculate the cell size but formula etc. counters shouldn’t be increases in the first two runs.
great, yet another bug hunted! and what can be done (on the short-run) to avoid increasing?
is there a handy command to manually count down by two?
You can replace \placeformula with \doifnotmode{*trialtypesetting}\placeformula Wolfgang
Am 12.08.2012 um 22:33 schrieb Wolfgang Schuster:
Am 12.08.2012 um 22:19 schrieb Steffen Wolfrum
: Am 12.08.2012 um 22:10 schrieb Wolfgang Schuster:
Am 12.08.2012 um 21:48 schrieb Steffen Wolfrum
: Hi,
please have a look at this minimal example below: you'll find three formulas (1), (4), (5)
What happen to (2) and (3)?
Steffen .......
\starttext
\placeformula \startformula a+b=c \stopformula
\bTABLE[frame=on,align=right,width=fit,style={\switchtobodyfont[9pt]}] \bTR \bTD[width=35mm] \placeformula \startformula c-a=b \stopformula \eTD \eTR \eTABLE
\placeformula \startformula c-b=a \stopformula
\stoptext
It’s a bug in the formula numbering. Natural tables perform three runs on the table content to calculate the cell size but formula etc. counters shouldn’t be increases in the first two runs.
great, yet another bug hunted! and what can be done (on the short-run) to avoid increasing?
is there a handy command to manually count down by two?
You can replace
\placeformula
with
\doifnotmode{*trialtypesetting}\placeformula
Wolfgang
yes we can! ;o) great, thank you wolfgang st.
On 12-8-2012 22:10, Wolfgang Schuster wrote:
Am 12.08.2012 um 21:48 schrieb Steffen Wolfrum
: Hi,
please have a look at this minimal example below: you'll find three formulas (1), (4), (5)
What happen to (2) and (3)?
Steffen .......
\starttext
\placeformula \startformula a+b=c \stopformula
\bTABLE[frame=on,align=right,width=fit,style={\switchtobodyfont[9pt]}] \bTR \bTD[width=35mm] \placeformula \startformula c-a=b \stopformula \eTD \eTR \eTABLE
\placeformula \startformula c-b=a \stopformula
\stoptext
It’s a bug in the formula numbering. Natural tables perform three runs on the table content to calculate the cell size but formula etc. counters shouldn’t be increases in the first two runs.
It's always hard to predict side effects (as we can have more data being involved; also. not incrementing will give the wrong number and therefore the wrong size calculations. Something like the following can be used for testing: \let\strc_formulas_handle_numbering_indeed \strc_formulas_handle_numbering \let\strc_formulas_handle_sub_numbering_indeed\strc_formulas_handle_sub_numbering \let\strc_formulas_handle_sub_number_indeed \strc_formulas_handle_sub_number \def\strc_formulas_handle_numbering {\iftrialtypesetting \strc_counters_save\v!formula \strc_formulas_handle_numbering_indeed \strc_counters_restore\v!formula \else \strc_formulas_handle_numbering_indeed \fi} \def\strc_formulas_handle_sub_numbering {\iftrialtypesetting \strc_counters_save\v!formula \strc_formulas_handle_sub_numbering \strc_counters_restore\v!formula \else \strc_formulas_handle_sub_numbering \fi} \def\strc_formulas_handle_sub_number % sub formulas {\iftrialtypesetting \strc_counters_save\v!formula \strc_formulas_handle_sub_number_indeed \strc_counters_restore\v!formula \else \strc_formulas_handle_sub_number_indeed \fi} ----------------------------------------------------------------- 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 (3)
-
Hans Hagen
-
Steffen Wolfrum
-
Wolfgang Schuster