From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: More table questions
Date: Tue, 22 Sep 2020 14:55:48 -0400 (EDT) [thread overview]
Message-ID: <nycvar.YAK.7.78.908.2009221451030.1537316@nqv-guvaxcnq> (raw)
In-Reply-To: <rkcb4i$17vn$1@ciao.gmane.io>
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
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2020-09-22 18:55 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 [this message]
2020-09-22 19:34 ` Peter Münster
2020-09-22 20:02 ` Aditya Mahajan
2020-09-22 20:18 ` Denis Maier
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=nycvar.YAK.7.78.908.2009221451030.1537316@nqv-guvaxcnq \
--to=adityam@umich.edu \
--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).