ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* formula in TABLE is not continuous numbered
@ 2012-08-12 19:48 Steffen Wolfrum
  2012-08-12 20:10 ` Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: Steffen Wolfrum @ 2012-08-12 19:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: formula in TABLE is not continuous numbered
  2012-08-12 19:48 formula in TABLE is not continuous numbered Steffen Wolfrum
@ 2012-08-12 20:10 ` Wolfgang Schuster
  2012-08-12 20:19   ` Steffen Wolfrum
  2012-08-12 22:39   ` Hans Hagen
  0 siblings, 2 replies; 6+ messages in thread
From: Wolfgang Schuster @ 2012-08-12 20:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 12.08.2012 um 21:48 schrieb Steffen Wolfrum <context@st.estfiles.de>:

> 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
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: formula in TABLE is not continuous numbered
  2012-08-12 20:10 ` Wolfgang Schuster
@ 2012-08-12 20:19   ` Steffen Wolfrum
  2012-08-12 20:33     ` Wolfgang Schuster
  2012-08-12 22:39   ` Hans Hagen
  1 sibling, 1 reply; 6+ messages in thread
From: Steffen Wolfrum @ 2012-08-12 20:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 12.08.2012 um 22:10 schrieb Wolfgang Schuster:

> 
> Am 12.08.2012 um 21:48 schrieb Steffen Wolfrum <context@st.estfiles.de>:
> 
>> 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
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: formula in TABLE is not continuous numbered
  2012-08-12 20:19   ` Steffen Wolfrum
@ 2012-08-12 20:33     ` Wolfgang Schuster
  2012-08-12 20:42       ` Steffen Wolfrum
  0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2012-08-12 20:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 12.08.2012 um 22:19 schrieb Steffen Wolfrum <context@st.estfiles.de>:

> 
> Am 12.08.2012 um 22:10 schrieb Wolfgang Schuster:
> 
>> 
>> Am 12.08.2012 um 21:48 schrieb Steffen Wolfrum <context@st.estfiles.de>:
>> 
>>> 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
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: formula in TABLE is not continuous numbered
  2012-08-12 20:33     ` Wolfgang Schuster
@ 2012-08-12 20:42       ` Steffen Wolfrum
  0 siblings, 0 replies; 6+ messages in thread
From: Steffen Wolfrum @ 2012-08-12 20:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 12.08.2012 um 22:33 schrieb Wolfgang Schuster:

> 
> Am 12.08.2012 um 22:19 schrieb Steffen Wolfrum <context@st.estfiles.de>:
> 
>> 
>> Am 12.08.2012 um 22:10 schrieb Wolfgang Schuster:
>> 
>>> 
>>> Am 12.08.2012 um 21:48 schrieb Steffen Wolfrum <context@st.estfiles.de>:
>>> 
>>>> 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.
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: formula in TABLE is not continuous numbered
  2012-08-12 20:10 ` Wolfgang Schuster
  2012-08-12 20:19   ` Steffen Wolfrum
@ 2012-08-12 22:39   ` Hans Hagen
  1 sibling, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2012-08-12 22:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Wolfgang Schuster

On 12-8-2012 22:10, Wolfgang Schuster wrote:
>
> Am 12.08.2012 um 21:48 schrieb Steffen Wolfrum <context@st.estfiles.de>:
>
>> 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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-08-12 22:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-12 19:48 formula in TABLE is not continuous numbered Steffen Wolfrum
2012-08-12 20:10 ` Wolfgang Schuster
2012-08-12 20:19   ` Steffen Wolfrum
2012-08-12 20:33     ` Wolfgang Schuster
2012-08-12 20:42       ` Steffen Wolfrum
2012-08-12 22:39   ` Hans Hagen

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).