Re: [NTG-context] problem with TABLE in TABLE

2010-03-19 Thread Peter Münster
On Fri, Mar 19 2010, Wolfgang Schuster wrote:

 I know why i works it works when you write the setup before the table
 and how to solve it in the ugly way (don’t use this solution) but I can't
 provide a fix for this.

Ok. So it's no real bug, but just a consequence of the design?


 What you can do to separate setup and code you can write

 \bTD
 {
 \setups[inner-table]
 \bTABLE

Thanks. Indeed, there is no problem to put the setups outside, since I must
use grouping anyway.

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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


[NTG-context] problem with TABLE in TABLE

2010-03-18 Thread Peter Münster
Hello,

How can I do the setups for the inner TABLE?

Example:

\startsetups outer-table
  \setupTABLE[c][last][width=5cm]
\stopsetups
\startsetups inner-table
  \setupTABLE[c][last][width=2cm]
\stopsetups
\starttext
\bTABLE[setups=outer-table]
\bTR\bTD bla \eTD\bTD {
  \bTABLE[setups=inner-table]
  \bTR\bTD bla \eTD\bTD problem: width is 5cm instead of 2cm \eTD\eTR
  \eTABLE
}
\eTD\eTR\eTABLE
\stoptext

TIA for any hints!
Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


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


Re: [NTG-context] problem with TABLE in TABLE

2010-03-18 Thread Wolfgang Schuster

Am 18.03.10 22:28, schrieb Peter Münster:

Hello,

How can I do the setups for the inner TABLE?
   

I know why i works it works when you write the setup before the table
and how to solve it in the ugly way (don’t use this solution) but I can't
provide a fix for this.

\startsetups outer-table
\setupTABLE[c][last][width=5cm]
\stopsetups

\startsetups inner-table
\globalpushmacro\TBLlevel
\doglobal\decrement\TBLlevel\relax
\setupTABLE[c][last][width=2cm]
\globalpopmacro\TBLlevel
\stopsetups

\starttext

\bTABLE[setups=outer-table]
\bTR
\bTD bla \eTD
\bTD
{
%\setupTABLE[c][last][width=2cm]
\bTABLE[setups=inner-table]
\bTR
\bTD bla \eTD
\bTD problem: width is 5cm instead of 2cm \eTD
\eTR
\eTABLE
}
\eTD
\eTR
\eTABLE

\stoptext

What you can do to separate setup and code you can write

\bTD
{
\setups[inner-table]
\bTABLE
...

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
___