* Natural tables | 2 tables in a page seem to interfere with each other?
@ 2021-06-16 15:33 Ramkumar KB
2021-06-16 15:40 ` Wolfgang Schuster
0 siblings, 1 reply; 3+ messages in thread
From: Ramkumar KB @ 2021-06-16 15:33 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 770 bytes --]
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
- Ramkumar
[-- Attachment #1.2: Type: text/html, Size: 2199 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Natural tables | 2 tables in a page seem to interfere with each other?
2021-06-16 15:33 Natural tables | 2 tables in a page seem to interfere with each other? Ramkumar KB
@ 2021-06-16 15:40 ` Wolfgang Schuster
2021-06-17 5:51 ` Ramkumar KB
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2021-06-16 15:40 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1497 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 2826 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Natural tables | 2 tables in a page seem to interfere with each other?
2021-06-16 15:40 ` Wolfgang Schuster
@ 2021-06-17 5:51 ` Ramkumar KB
0 siblings, 0 replies; 3+ messages in thread
From: Ramkumar KB @ 2021-06-17 5:51 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2424 bytes --]
Wolfgang,
Thank you very much for the information. Yes, this was the trick I was
looking for.
I haved added this information in the Wiki -
https://wiki.contextgarden.net/TABLE#Settings_for_multiple_TABLEs_in_a_single_page
Hope it is accurate enough.
Thank you once again!
-Ramkumar
On Wed, Jun 16, 2021 at 11:41 PM Wolfgang Schuster <
wolfgang.schuster.lists@gmail.com> wrote:
> 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
>
>
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 4510 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-06-17 5:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-16 15:33 Natural tables | 2 tables in a page seem to interfere with each other? Ramkumar KB
2021-06-16 15:40 ` Wolfgang Schuster
2021-06-17 5:51 ` Ramkumar KB
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).