From: Hans Hagen <j.hagen@xs4all.nl>
To: Ajith R <ajithramayyan@yahoo.co.in>,
mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: help with xtreme tables
Date: Tue, 8 Jun 2021 10:24:02 +0200 [thread overview]
Message-ID: <d7b54ba5-3aa6-4b61-b533-92be7283ddf9@xs4all.nl> (raw)
In-Reply-To: <486561842.3728034.1623136316588@mail.yahoo.com>
On 6/8/2021 9:11 AM, Ajith R wrote:
>
> Hi,
>
> I have a table with around 120 rows and 120 columns which fits an A0 paper. I want it to be split so that it fits A4 sized papers.
> When I tried using xtables :
>
> \startxtable[split=repeat,header=repeat]
> \startxtablehead
> ...
> \stopxtablehead
> \startxtablebody
> ....
> .
> .
> .
> ....
> \stopxtablebody
>
> the table rows get split into different pages, but the columns get cut at the right edge of the page.
> Is there a way to split the columns as well (repeating the first column as necessary)?
>
> Also, what is the use of grouping rows within \startxtablenext and \stopxtablenext?
>
> Note: I am just typing the outline of the code as the cell definitions is very long and hopefully my requirement is clear without the entire cell definitions.
better look at linetables that
\setuplinetable[n=6,lines=40]
% \setuplinetable[c][1] [width=2cm,background=color,backgroundcolor=red]
% \setuplinetable[c][4]
[width=3cm,background=color,backgroundcolor=yellow]
% \setuplinetable[c][6]
[width=3cm,background=color,backgroundcolor=magenta]
% \setuplinetable[r][even][background=color,backgroundcolor=green]
\starttext
\startlinetablehead
\dorecurse{2}{\dorecurse{5}{\NC head #1 ##1\NC head \NC head \NC
head \NC head \NC head} \NC \NR}
\stoplinetablehead
\startlinetable
\dorecurse{2000}{\dorecurse{5}{\NC cell #1 ##1\NC cell \NC cell \NC
cell \NC cell \NC cell} \NC \NR}
\stoplinetable
\stoptext
a rather old but okay mechanism that splits in two dimensions
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
___________________________________________________________________________________
next prev parent reply other threads:[~2021-06-08 8:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1623134641.2718.0.ref@smtp.mail.yahoo.com>
2021-06-08 6:44 ` Fwd: " Ajith R
2021-06-08 7:11 ` Ajith R
2021-06-08 8:24 ` Hans Hagen [this message]
2021-06-08 8:52 ` Ajith R
[not found] <1623092831.8905.0.ref@smtp.mail.yahoo.com>
2021-06-07 19:07 ` Ajith R
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=d7b54ba5-3aa6-4b61-b533-92be7283ddf9@xs4all.nl \
--to=j.hagen@xs4all.nl \
--cc=ajithramayyan@yahoo.co.in \
--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).