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/
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
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/
participants (2)
-
Peter Münster
-
Wolfgang Schuster