* problem with TABLE in TABLE
@ 2010-03-18 21:28 Peter Münster
2010-03-19 0:02 ` Wolfgang Schuster
0 siblings, 1 reply; 3+ messages in thread
From: Peter Münster @ 2010-03-18 21:28 UTC (permalink / raw)
To: ConTeXt list
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: problem with TABLE in TABLE
2010-03-18 21:28 problem with TABLE in TABLE Peter Münster
@ 2010-03-19 0:02 ` Wolfgang Schuster
2010-03-19 6:18 ` Peter Münster
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2010-03-19 0:02 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: problem with TABLE in TABLE
2010-03-19 0:02 ` Wolfgang Schuster
@ 2010-03-19 6:18 ` Peter Münster
0 siblings, 0 replies; 3+ messages in thread
From: Peter Münster @ 2010-03-19 6:18 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-03-19 6:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-18 21:28 problem with TABLE in TABLE Peter Münster
2010-03-19 0:02 ` Wolfgang Schuster
2010-03-19 6:18 ` Peter Münster
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).