Ramkumar KB schrieb am 16.06.2021 um 17:33:
Hi,

I have 2 "natural tables" in one page and it appears that I have to (manually) reset the columns in the second table, for those columns that I had set specific width. See the example below - 

Maybe I am missing a trick or two - or this indeed is the desired behavior? Thank you very much.

\setupTABLE[r][each][height=0.5cm,frame=on] \setupTABLE[c][each][width=0.6cm] \setupTABLE[r][1][height=0cm,topframe=off] \setupTABLE[c][1][width=5cm] \setupTABLE[c][4,7][width=3cm] \bTABLE ... \eTABLE \setupTABLE[r][each][height=1.3cm,topframe=on] \setupTABLE[c][each][width=1.7cm] \setupTABLE[c][1,4,7][width=1.7cm] %This is to reset from the previous Table \setupTABLE[r][1][height=0cm,topframe=off] \setupTABLE[c][2][width=0.3cm,frame=off] \bTABLE ... \eTABLE

When you need a certain setup for multiple tables you can put all \setupTABLE commands in a setups-environment and load these settings at the start of the table, e.g.


\startsetups [tablesettings]
    \setupTABLE [r] [1] [..,..=..,..]
    \setupTABLE [c] [2] [..,..=..,..]
\stopsetups

\bTABLE[setups=tablesettings]
    ...
\eTABLE


When you need individual settings for each table add \start before the setup-commands and \stop after the table, this keeps all setups local to the current table, e.g.

\start

\setupTABLE [r] [1] [..,..=..,..]
\setupTABLE [c] [2] [..,..=..,..]

\bTABLE
    ...
\eTABLE

\stop


Wolfgang