Am 03.10.2012 um 11:11 schrieb Procházka Lukáš Ing. - Pontex s. r. o. 
<l...@pontex.cz>:

> ... Thanks for the answer but -
> 
> - I generated a macro just do demonstrate different behavior in row #1 
> depending on whether settings for columns were specified for a PARTICULAR 
> column ("\setupTABLE[column][2][...]") or for columns IN GENERAL 
> ("\setupTABLE[column][][...]").
> 
> I need the case with a particular column settings to work:
> 
> ----
> \starttext
>  \bTABLE
>    \setupTABLE[width=2cm]
>    \setupTABLE[column][2][align=flushright]
>    \setupTABLE[row][1][align=middle] % Settings for ALL columns in the row 1 
> should be overwritten; but are not (?!)
>    \bTABLEhead[align=middle]
>      \bTR
>        \bTH[align=middle] a\eTH
>        \bTH[align=middle] b\eTH
>      \eTR
>    \eTABLEhead
>    \bTABLEbody
>      \bTR
>        \bTD a\eTD
>        \bTD b\eTD
>      \eTR
>    \eTABLEbody
>  \eTABLE
> \stoptext
> ----
> 
> You can see that "\setupTABLE[row][1][align=middle]" doesn't affect column 
> #2, which keeps its previously setting 
> "\setupTABLE[column][2][align=flushright]"; this is unwanted.
> 
> I'd need "\setupTABLE[row][1][align=middle]" to overwrite the column #2 
> setting, so that all columns in the row #1 be mid-aligned.

The \setupTABLE calls do only store the settings but the values are used later 
when each cell is formatted
and at this step row settings are processed before column settings but when you 
want a different format
for the header you can use \setupTABLE[header][…] which has a higher priority 
than these two setups.

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
___________________________________________________________________________________

Reply via email to