ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Randall Skelton" <randall.skelton@gmail.com>
Subject: Re: Multi-page tables
Date: Thu, 16 Mar 2006 20:27:56 -0500	[thread overview]
Message-ID: <ba4316d30603161727h50dd3773p3b929b7b84f05564@mail.gmail.com> (raw)
In-Reply-To: <ba4316d30603081144m5c565296te435bda840905e64@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 9438 bytes --]

Just curious if anyone has any suggestions on the request below.  I've
searched the list archives and found similar questions but, unfortunately,
no answers.  The tables are going in an appendix of work and generally span
5-10 pages... clever (or ugly) hacks greatly appreciated!

Cheers,
Randall

On 3/8/06, Randall Skelton <randall.skelton@gmail.com> wrote:
>
> Hi all,
>
> I'm having a bit of trouble getting multiple page tables to work when
> also using \placetable for captions.  Essentially, I want:
>   (1) Captions and the ability to reference with \in[].
>   (2) Alignment within a cell at a decimal point.
>   (3) Span multiple pages with header/footer.
>
> I think I would prefer to use the standard 'TABLES' method but it
> looks like item 2 is only supported in natural tables?
>
> Below are two examples.  I don't get page breaks in either case and
> the table runs off the bottom of pages 2 and 3.
>
> Thanks,
> Randall
>
> \definepapersize
>   [width=8.5in,
>    height=11in]
>
> \setupcaption[table]
>   [location=top]
>
> \starttext
>
> \section{Testing}
> This is a table test.
>
> \placetable[page][tbl:sample]
>   {Sample table caption goes here}
>   {\start
>    \switchtobodyfont[small]
>    \starttablehead
>    \HL
>    \VL command  \NC meaning  \NC $\lambda$ (deg.) \VL\SR
>    \HL
>    \stoptablehead
>    \starttabletail
>    \HL
>    \stoptabletail
>    \starttables[|c|l|c|]
>    \VL \tex{NC}    \NC next column     \NC    1.15 \VL\FR
>    \VL \tex{HL}    \NC horizontal line \NC   10.20 \VL\MR
>    \VL \tex{VL}    \NC vertical line   \NC  -14.30 \VL\MR
>    \VL \tex{NR}    \NC next row        \NC -100.00 \VL\MR
>    \VL \tex{SR}    \NC single row      \NC    2.35 \VL\MR
>    \VL \tex{FR}    \NC first row       \NC  159.00 \VL\MR
>    \VL \tex{MR}    \NC middle row      \NC   -1.00 \VL\MR
>    \VL \tex{LR}    \NC last row        \NC    nr   \VL\MR
>    \VL \tex{NC}    \NC next column     \NC    1.15 \VL\MR
>    \VL \tex{HL}    \NC horizontal line \NC   10.20 \VL\MR
>    \VL \tex{VL}    \NC vertical line   \NC  -14.30 \VL\MR
>    \VL \tex{NR}    \NC next row        \NC -100.00 \VL\MR
>    \VL \tex{SR}    \NC single row      \NC    2.35 \VL\MR
>    \VL \tex{FR}    \NC first row       \NC  159.00 \VL\MR
>    \VL \tex{MR}    \NC middle row      \NC   -1.00 \VL\MR
>    \VL \tex{LR}    \NC last row        \NC    nr   \VL\MR
>    \VL \tex{NC}    \NC next column     \NC    1.15 \VL\MR
>    \VL \tex{HL}    \NC horizontal line \NC   10.20 \VL\MR
>    \VL \tex{VL}    \NC vertical line   \NC  -14.30 \VL\MR
>    \VL \tex{NR}    \NC next row        \NC -100.00 \VL\MR
>    \VL \tex{SR}    \NC single row      \NC    2.35 \VL\MR
>    \VL \tex{FR}    \NC first row       \NC  159.00 \VL\MR
>    \VL \tex{MR}    \NC middle row      \NC   -1.00 \VL\MR
>    \VL \tex{LR}    \NC last row        \NC    nr   \VL\MR
>    \VL \tex{NC}    \NC next column     \NC    1.15 \VL\MR
>    \VL \tex{HL}    \NC horizontal line \NC   10.20 \VL\MR
>    \VL \tex{VL}    \NC vertical line   \NC  -14.30 \VL\MR
>    \VL \tex{NR}    \NC next row        \NC -100.00 \VL\MR
>    \VL \tex{SR}    \NC single row      \NC    2.35 \VL\MR
>    \VL \tex{FR}    \NC first row       \NC  159.00 \VL\MR
>    \VL \tex{MR}    \NC middle row      \NC   -1.00 \VL\MR
>    \VL \tex{LR}    \NC last row        \NC    nr   \VL\MR
>    \VL \tex{NC}    \NC next column     \NC    1.15 \VL\MR
>    \VL \tex{HL}    \NC horizontal line \NC   10.20 \VL\MR
>    \VL \tex{VL}    \NC vertical line   \NC  -14.30 \VL\MR
>    \VL \tex{NR}    \NC next row        \NC -100.00 \VL\MR
>    \VL \tex{SR}    \NC single row      \NC    2.35 \VL\MR
>    \VL \tex{FR}    \NC first row       \NC  159.00 \VL\MR
>    \VL \tex{MR}    \NC middle row      \NC   -1.00 \VL\MR
>    \VL \tex{LR}    \NC last row        \NC    nr   \VL\MR
>    \VL \tex{NC}    \NC next column     \NC    1.15 \VL\MR
>    \VL \tex{HL}    \NC horizontal line \NC   10.20 \VL\MR
>    \VL \tex{VL}    \NC vertical line   \NC  -14.30 \VL\MR
>    \VL \tex{NR}    \NC next row        \NC -100.00 \VL\MR
>    \VL \tex{SR}    \NC single row      \NC    2.35 \VL\MR
>    \VL \tex{FR}    \NC first row       \NC  159.00 \VL\MR
>    \VL \tex{MR}    \NC middle row      \NC   -1.00 \VL\MR
>    \VL \tex{LR}    \NC last row        \NC    nr   \VL\LR
>    \stoptables
>    \stop}
>
> \section{Natural Testing}
> This is a natural table test.
>
> \placetable[page][tbl:naturalSample]
>   {Sample table caption goes here}
>   {\start
>    \switchtobodyfont[small]
>    \bTABLE[split=repeat,
>            splitmethod=a]
>       % Outside border
>       \setupTABLE[frame=off]
>       \setupTABLE[column][first][leftframe=on]
>       \setupTABLE[column][last][rightframe=on]
>       \setupTABLE[row][first][topframe=on]
>       \setupTABLE[row][last][bottomframe=on]
>       % Heading line bottom rule
>       \setupTABLE[row][first][bottomframe=on]
>       % Alignment
>       \setupTABLE[column][1][width=2.5cm,align=middle]
>       \setupTABLE[column][2][width=2.5cm,align=right]
>       \setupTABLE[column][3][width=2.5cm
> ,alignmentcharacter={.},aligncharacter=yes,align=middle]
>       % Header
>       \bTABLEhead
>         \bTR\bTD command \eTD\bTD meaning \eTD\bTD $\lambda$ (deg.)
> \eTD\eTR
>       \eTABLEhead
>       % Body
>       \bTABLEbody
>         \bTR\bTD \tex{NC}    \eTD\bTD next column     \eTD\bTD    1.15\eTD\eTR
>         \bTR\bTD \tex{HL}    \eTD\bTD horizontal line \eTD\bTD   10.20\eTD\eTR
>         \bTR\bTD \tex{VL}    \eTD\bTD vertical line   \eTD\bTD  -14.30\eTD\eTR
>         \bTR\bTD \tex{NR}    \eTD\bTD next row        \eTD\bTD -100.00\eTD\eTR
>         \bTR\bTD \tex{SR}    \eTD\bTD single row      \eTD\bTD    2.35\eTD\eTR
>         \bTR\bTD \tex{FR}    \eTD\bTD first row       \eTD\bTD  159.00\eTD\eTR
>         \bTR\bTD \tex{MR}    \eTD\bTD middle row      \eTD\bTD   -1.00\eTD\eTR
>         \bTR\bTD \tex{LR}    \eTD\bTD last row        \eTD\bTD    nr
> \eTD\eTR
>         \bTR\bTD \tex{NC}    \eTD\bTD next column     \eTD\bTD    1.15\eTD\eTR
>         \bTR\bTD \tex{HL}    \eTD\bTD horizontal line \eTD\bTD   10.20\eTD\eTR
>         \bTR\bTD \tex{VL}    \eTD\bTD vertical line   \eTD\bTD  -14.30\eTD\eTR
>         \bTR\bTD \tex{NR}    \eTD\bTD next row        \eTD\bTD -100.00\eTD\eTR
>         \bTR\bTD \tex{SR}    \eTD\bTD single row      \eTD\bTD    2.35\eTD\eTR
>         \bTR\bTD \tex{FR}    \eTD\bTD first row       \eTD\bTD  159.00\eTD\eTR
>         \bTR\bTD \tex{MR}    \eTD\bTD middle row      \eTD\bTD   -1.00\eTD\eTR
>         \bTR\bTD \tex{LR}    \eTD\bTD last row        \eTD\bTD    nr
> \eTD\eTR
>         \bTR\bTD \tex{NC}    \eTD\bTD next column     \eTD\bTD    1.15\eTD\eTR
>         \bTR\bTD \tex{HL}    \eTD\bTD horizontal line \eTD\bTD   10.20\eTD\eTR
>         \bTR\bTD \tex{VL}    \eTD\bTD vertical line   \eTD\bTD  -14.30\eTD\eTR
>         \bTR\bTD \tex{NR}    \eTD\bTD next row        \eTD\bTD -100.00\eTD\eTR
>         \bTR\bTD \tex{SR}    \eTD\bTD single row      \eTD\bTD    2.35\eTD\eTR
>         \bTR\bTD \tex{FR}    \eTD\bTD first row       \eTD\bTD  159.00\eTD\eTR
>         \bTR\bTD \tex{MR}    \eTD\bTD middle row      \eTD\bTD   -1.00\eTD\eTR
>         \bTR\bTD \tex{LR}    \eTD\bTD last row        \eTD\bTD    nr
> \eTD\eTR
>         \bTR\bTD \tex{NC}    \eTD\bTD next column     \eTD\bTD    1.15\eTD\eTR
>         \bTR\bTD \tex{HL}    \eTD\bTD horizontal line \eTD\bTD   10.20\eTD\eTR
>         \bTR\bTD \tex{VL}    \eTD\bTD vertical line   \eTD\bTD  -14.30\eTD\eTR
>         \bTR\bTD \tex{NR}    \eTD\bTD next row        \eTD\bTD -100.00\eTD\eTR
>         \bTR\bTD \tex{SR}    \eTD\bTD single row      \eTD\bTD    2.35\eTD\eTR
>         \bTR\bTD \tex{FR}    \eTD\bTD first row       \eTD\bTD  159.00\eTD\eTR
>         \bTR\bTD \tex{MR}    \eTD\bTD middle row      \eTD\bTD   -1.00\eTD\eTR
>         \bTR\bTD \tex{LR}    \eTD\bTD last row        \eTD\bTD    nr
> \eTD\eTR
>         \bTR\bTD \tex{NC}    \eTD\bTD next column     \eTD\bTD    1.15\eTD\eTR
>         \bTR\bTD \tex{HL}    \eTD\bTD horizontal line \eTD\bTD   10.20\eTD\eTR
>         \bTR\bTD \tex{VL}    \eTD\bTD vertical line   \eTD\bTD  -14.30\eTD\eTR
>         \bTR\bTD \tex{NR}    \eTD\bTD next row        \eTD\bTD -100.00\eTD\eTR
>         \bTR\bTD \tex{SR}    \eTD\bTD single row      \eTD\bTD    2.35\eTD\eTR
>         \bTR\bTD \tex{FR}    \eTD\bTD first row       \eTD\bTD  159.00\eTD\eTR
>         \bTR\bTD \tex{MR}    \eTD\bTD middle row      \eTD\bTD   -1.00\eTD\eTR
>         \bTR\bTD \tex{LR}    \eTD\bTD last row        \eTD\bTD    nr
> \eTD\eTR
>         \bTR\bTD \tex{NC}    \eTD\bTD next column     \eTD\bTD    1.15\eTD\eTR
>         \bTR\bTD \tex{HL}    \eTD\bTD horizontal line \eTD\bTD   10.20\eTD\eTR
>         \bTR\bTD \tex{VL}    \eTD\bTD vertical line   \eTD\bTD  -14.30\eTD\eTR
>         \bTR\bTD \tex{NR}    \eTD\bTD next row        \eTD\bTD -100.00\eTD\eTR
>         \bTR\bTD \tex{SR}    \eTD\bTD single row      \eTD\bTD    2.35\eTD\eTR
>         \bTR\bTD \tex{FR}    \eTD\bTD first row       \eTD\bTD  159.00\eTD\eTR
>         \bTR\bTD \tex{MR}    \eTD\bTD middle row      \eTD\bTD   -1.00\eTD\eTR
>         \bTR\bTD \tex{LR}    \eTD\bTD last row        \eTD\bTD    nr
> \eTD\eTR
>       \eTABLEbody
>     \eTABLE
>     \stop}
>
> \stoptext
>

[-- Attachment #1.2: Type: text/html, Size: 18833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

  reply	other threads:[~2006-03-17  1:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-08 19:44 Randall Skelton
2006-03-17  1:27 ` Randall Skelton [this message]
2006-03-17 10:54   ` Taco Hoekwater
2006-03-17 12:23     ` Hans Hagen
2006-03-18 19:29       ` Henning Hraban Ramm
2006-03-20  8:36         ` Hans Hagen

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=ba4316d30603161727h50dd3773p3b929b7b84f05564@mail.gmail.com \
    --to=randall.skelton@gmail.com \
    --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).