ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen via ntg-context <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: Hans Hagen <j.hagen@xs4all.nl>
Subject: Re: Auto width and height on table cells
Date: Thu, 30 Jun 2022 09:36:07 +0200	[thread overview]
Message-ID: <1f29574b-0153-da37-f72f-76a9d31fad69@xs4all.nl> (raw)
In-Reply-To: <Yr1PLZHVtmDvAKRD@zombi.ugr.es>

On 6/30/2022 9:22 AM, Angel M Alganza via ntg-context wrote:
> Hi Henning,
> 
> On Thu, Jun 30, 2022 at 09:02:28AM +0200, Henning Hraban Ramm via 
> ntg-context wrote:
> 
>> They’re also tedious, because you can’t setup rows/columns in advance 
>> (like \setupTABLE) – or did that change?
> 
> I'm afraid you're right.
You're joking right? SInce when can one not set up something in some 
context subsystem? Why would I make a table mechanism with no presets?


\starttext
\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] a 0 \stopxcell
             \startxcell[blabla] a 1 \stopxcell
             \startxcell         a 2 \stopxcell
         \stopxrow
     \stopxtablehead
     \startxtablebody
         \startxrow \startxcell[suffix][ny=2] a 1 \stopxcell \startxcell 
b 1 \stopxcell \startxcell c 1 \stopxcell \stopxrow
         \startxrow                                          \startxcell 
b 2 \stopxcell \startxcell c 2 \stopxcell \stopxrow
         \startxrow \startxcell[suffix]       a 3 \stopxcell \startxcell 
b 3 \stopxcell \startxcell c 3 \stopxcell \stopxrow
         \startxrow \startxcell[suffix]       a 4 \stopxcell \startxcell 
b 4 \stopxcell \startxcell c 4 \stopxcell \stopxrow
         \startxrow \startxcell[suffix]       a 5 \stopxcell \startxcell 
b 5 \stopxcell \startxcell c 5 \stopxcell \stopxrow
     \stopxtablebody
\stopxtable
\stoptext

It's just more symbolic than in natural tables (which is better 
performance wise). I'm pretty sure it's mentioned in some manual.

Hans

-----------------------------------------------------------------
                                           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
___________________________________________________________________________________

  reply	other threads:[~2022-06-30  7:36 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-30  5:43 Angel M Alganza via ntg-context
2022-06-30  6:16 ` Hans Hagen via ntg-context
2022-06-30  6:40   ` Angel M Alganza via ntg-context
2022-06-30  7:02     ` Henning Hraban Ramm via ntg-context
2022-06-30  7:22       ` Angel M Alganza via ntg-context
2022-06-30  7:36         ` Hans Hagen via ntg-context [this message]
2022-06-30  7:46           ` Angel M Alganza via ntg-context
2022-06-30  8:26             ` Hans Hagen via ntg-context
2022-06-30  8:37               ` Angel M Alganza via ntg-context
2022-06-30 14:15             ` Pablo Rodriguez via ntg-context
2022-06-30 16:10               ` Angel M Alganza via ntg-context
2022-06-30 16:44                 ` Pablo Rodriguez via ntg-context
2022-06-30 10:12           ` Henning Hraban Ramm via ntg-context
2022-06-30 10:25             ` Angel M Alganza via ntg-context

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=1f29574b-0153-da37-f72f-76a9d31fad69@xs4all.nl \
    --to=ntg-context@ntg.nl \
    --cc=j.hagen@xs4all.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).