From: Hans Hagen <pragma@wxs.nl>
To: ntg-context@ntg.nl
Subject: Re: xtables: rowwise, columnwise, and cellwise operations
Date: Fri, 5 Jan 2018 14:32:23 +0100 [thread overview]
Message-ID: <45d6485e-f792-f677-5d8e-17ca8b016ff4@wxs.nl> (raw)
In-Reply-To: <1515124634.12070.81.camel@gmail.com>
On 1/5/2018 4:57 AM, Henri wrote:
> Dear list,
>
> The Natural Tables have this great feature that I can control the layout with rowwise, columnwise,
> or cellwise setups. For example:
>
> \starttext
>
> \setupTABLE [frame=off]
> \setupTABLE [r] [first] [topframe=on,bottomframe=on,style=bold]
> \setupTABLE [c] [2] [style=italic]
> \setupTABLE [2] [3] [color=red]
> \setupTABLE [r] [last] [bottomframe=on]
> \startTABLE
> \NC A \NC A \NC A \NC\NR
> \NC B \NC B \NC B \NC\NR
> \NC C \NC C \NC C \NC\NR
> \NC D \NC D \NC D \NC\NR
> \NC E \NC E \NC E \NC\NR
> \stopTABLE
>
> \stoptext
it's also an extremely inefficient method
> How can I do such a thing with Extreme Tables? If it is not yet possible I'd like to request the
> inclusion of such a mechanism.
from the manual, named setups:
\setupxtable[suffix][align=middle,foregroundcolor=red]
\setupxtable[blabla][foregroundstyle=slanted]
\setupxtable[crap] [foregroundcolor=blue]
\setupxtable[bold] [crap][foregroundstyle=bold]
\startxtable % [frame=off]
\startxtablehead
\startxrow[bold]
\startxcell[suffix] head a \stopxcell
\startxcell[blabla] head b \stopxcell
\startxcell head c \stopxcell
\stopxrow
\stopxtablehead
\startxtablebody
\startxrow
\startxcell[suffix][ny=2] cell a 1 \stopxcell
\startxcell cell b 1 \stopxcell
\startxcell cell c 1 \stopxcell
\stopxrow
\startxrow
\startxcell cell b 2 \stopxcell
\startxcell cell c 2 \stopxcell
\stopxrow
\startxrow
\startxcell[suffix] cell a 3 \stopxcell
\startxcell cell b 3 \stopxcell
\startxcell cell c 3 \stopxcell
\stopxrow
\startxrow
\startxcell[suffix] cell a 4 \stopxcell
\startxcell cell b 4 \stopxcell
\startxcell cell c 4 \stopxcell
\stopxrow
\startxrow
\startxcell[suffix] cell a 5 \stopxcell
\startxcell cell b 5 \stopxcell
\startxcell cell c 5 \stopxcell
\stopxrow
\stopxtablebody
\stopxtable
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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:[~2018-01-05 13:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-05 3:57 Henri
2018-01-05 13:32 ` Hans Hagen [this message]
2018-01-05 16:12 ` Floris van Manen
2018-01-05 21:49 ` Alan Braslau
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=45d6485e-f792-f677-5d8e-17ca8b016ff4@wxs.nl \
--to=pragma@wxs.nl \
--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).