From: Denis Maier <denis.maier.lists@mailbox.org>
To: ntg-context@ntg.nl
Subject: Re: More table questions
Date: Tue, 22 Sep 2020 22:18:01 +0200 [thread overview]
Message-ID: <rkdm5t$peb$1@ciao.gmane.io> (raw)
In-Reply-To: <nycvar.YAK.7.78.908.2009221451030.1537316@nqv-guvaxcnq>
Am 22.09.2020 um 20:55 schrieb Aditya Mahajan:
> On Tue, 22 Sep 2020, Denis Maier wrote:
>
>> Also, how do you easiest define booktabs style tables? I mean: can you
>> define tables such that the last row end with thicker lines without
>> having to make this explicit? Is there a mechanism for this?
>
> You can get this behavior using any of table mechanism. The wiki has an example when using the (now deprecated) TaBlE macros
>
> https://wiki.contextgarden.net/Table#Booktabs
>
> The same effect is rather easy to achieve when using natural tables as well.
>
> \startsetups booktabs
> \setupTABLE[each][each][frame=off]
> \setupTABLE[row][first][topframe=on,rulethickness=1.2bp]
> \setupTABLE[row][2] [topframe=on,rulethickness=0.6bp]
> \setupTABLE[row][last] [bottomframe=on, rulethickness=1.2bp]
>
> \setupTABLE[row][first][style=bold]
> \stopsetups
>
> \starttext
>
> \startTABLE[setups=booktabs]
> \NC Heading 1 \NC Heading 2 \NC Heading 3 \NC \NR
> \NC Value 1 \NC Value 2 \NC Value 3 \NC \NR
> \NC Value 1 \NC Value 2 \NC Value 3 \NC \NR
> \NC Value 1 \NC Value 2 \NC Value 3 \NC \NR
> \stopTABLE
> \stoptext
>
> Aditya
Thanks. That's exactly what I was looking for.
By the way, I couldn't get the \startTABLE syntax working in a XML
setting. Is this the same as with extreme tables? The classic syntax
with \bTABLE \eTABLE works though.
Best,
Denis
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2020-09-22 20:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-22 8:03 Denis Maier
2020-09-22 14:31 ` Henning Hraban Ramm
2020-09-22 20:26 ` Denis Maier
2020-09-22 18:55 ` Aditya Mahajan
2020-09-22 19:34 ` Peter Münster
2020-09-22 20:02 ` Aditya Mahajan
2020-09-22 20:18 ` Denis Maier [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='rkdm5t$peb$1@ciao.gmane.io' \
--to=denis.maier.lists@mailbox.org \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).