ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: Newbie wants to make long tables
Date: Sat, 13 Sep 2003 22:54:23 +0200	[thread overview]
Message-ID: <5.2.0.9.1.20030913224523.0865b020@localhost> (raw)
In-Reply-To: <BB873618.15835%king@dircon.co.uk>

At 08:36 12/09/2003 +0100, you wrote:
>Hans,
>I have been looking at core-ntb (dangerous bend for me) and I found
>[b|e]TABLEhead, [b|e]TABLEbody and [b|e]TABLEfoot. I then put 2 + 2 together
>and made 5. It doesn't work as I expected. Are Table heads and foots
>available? TABLEbody gives no output and TABLEhead and TABLEfoot just place
>themselves at the end of table (head first, foot next) rather than at the
>beginning and end of each column. One version of my test code is below;
>
>\bTABLEhead
>\bTR \bTH Head 1 \eTH \bTH Head 2 \eTH \eTR
>\eTABLEhead
>\bTABLEfoot
>\bTR \bTH Foot 1 \eTH \bTH Foot 2 \eTH \eTR
>\eTABLEfoot
>\bTABLE[split=yes]
>\dorecurse{40}{\bTR \bTD left \eTD\bTD right \eTD \eTR}
>\eTABLE
>
>I have been looking forward to this feature for some time. If you work on
>it, it would be nice to have the middle table breaks to have their own heads
>and foots such that one can put 'continued' etc. into the table.

the following will repeat the head,

\bTABLE[split=repeat]
\bTABLEhead
\bTR \bTH Head 1 \eTH \bTH Head 2 \eTH \eTR
\eTABLEhead
\bTABLEfoot
\bTR \bTH Foot 1 \eTH \bTH Foot 2 \eTH \eTR
\eTABLEfoot
\bTABLEbody
\dorecurse{40}{\bTR \bTD left \eTD\bTD right \eTD \eTR}
\eTABLEbody
\eTABLE

since foots often contain sums or so, they are not repeated,

we could consider something

\bMIDDLE
\eMIDDLE

but it would require some close re-reading of the source code since the 
available size calculation is tricky (unless we limit sucn a middle to a 
one liner

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

  reply	other threads:[~2003-09-13 20:54 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-20  6:44 Thomas Schrader
2003-08-21 21:29 ` Hans Hagen
2003-09-12  7:36   ` Nigel King
2003-09-13 20:54     ` Hans Hagen [this message]
2003-09-14 16:05       ` Nigel King
2003-09-14 22:43         ` Hans Hagen
2003-09-15 17:32           ` Willi Egger
2003-09-15 18:52             ` Hans Hagen
2003-09-15 22:41           ` Nigel King
2003-09-16 22:05             ` Hans Hagen
  -- strict thread matches above, loose matches on Subject: below --
2003-08-18 12:23 Thomas Schrader
2003-08-19 15:49 ` Tobias Burnus

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=5.2.0.9.1.20030913224523.0865b020@localhost \
    --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).