ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: TABLE: spacing, before/after
Date: Fri, 22 Apr 2005 23:09:35 +0200	[thread overview]
Message-ID: <4269680F.6000801@wxs.nl> (raw)
In-Reply-To: <20050421115256.GD29219@cebitec.uni-bielefeld.de>

Eckhart Guthöhrlein wrote:

>>- control over column and row spacing
>>- material before/after a cell, e.g. \setupTABLE[row][first][before=bla]
>>- command hooks like \setupTABLE[1][3][hook=\dowithentry]
> 
> 
> Hi Hans,
> 
> sorry for being a pain in the neck, but is there any chance that this
> will be supported by natural tables in the near future?
> Don't get me wrong, I'm not demanding anything, I just need to know so
> that I can do it differently otherwise.

it depends on what near is ...

if you want a hook, try something:

\starttext

\def\TBLcharalign#1#2{hooked {\bf #2} on tables}

\bTABLE
\bTR \bTD aa\eTD \bTD bb\eTD \eTR
\bTR \bTD aa\eTD \bTD bb\eTD \eTR
\bTR \bTD aa\eTD \bTD bb\eTD \eTR
\bTR \bTD aa\eTD \bTD bb\eTD \eTR
\bTR \bTD aa\eTD \bTD bb\eTD \eTR
\eTABLE

\stoptext

if you remind me in a couple of weeks i can see if i can generalize it; hooks 
are a bit tricky because one also needs to know in what pass on is (there are 
multiple passes in constructing the table)

before ... after cell, is probably doable but need some thinking (keep in mind 
that these tables need to span and such; not really complex but needs to be done 
carefully

between rows ... tricky since that may interfere with splitting; maybe doable 
when some limitations are accepted

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

  parent reply	other threads:[~2005-04-22 21:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-13  8:09 Eckhart Guthöhrlein
2005-04-19  8:32 ` Eckhart Guthöhrlein
2005-04-19 14:04 ` Paul Tremblay
2005-04-19 15:15   ` Eckhart Guthöhrlein
2005-04-19 16:19     ` Paul Tremblay
2005-04-19 18:56       ` Eckhart Guthöhrlein
2005-04-19 19:43         ` Paul Tremblay
2005-04-20 11:25           ` Eckhart Guthöhrlein
     [not found]         ` <20050421115256.GD29219@cebitec.uni-bielefeld.de>
2005-04-22 21:09           ` Hans Hagen [this message]
2005-04-27 11:57             ` Eckhart Guthöhrlein

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=4269680F.6000801@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).