From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: processing very big tables
Date: Sun, 9 Apr 2017 15:57:31 +0200 [thread overview]
Message-ID: <6efdd6c0-068d-6298-9532-dde2f8b7cca7@wxs.nl> (raw)
In-Reply-To: <da3066bd-ecd2-784f-6af8-1e49bb0a4d04@uni-bonn.de>
On 4/9/2017 1:20 PM, Thomas A. Schmitz wrote:
> Hi all,
>
> I need some fundamental advice from experienced users: I'm processing
> xml and collecting the data in lua tables, which I want to typeset in
> some sort of table or tabular format. Typesetting requirements are
> fairly low, just a couple of columns that need to be nicely aligned,
> with the occasional horizontal overflow that should be handled
> gracefully (i.e. longer lines should be broken), and of course, the
> table has to break across pages. However, the lua tables have several
> thousands of entries, and I expect the final document to have around
> 3,000 pages. When I tried Natural Tables, I got a "TeX capacity
> exceeded" error, which disappeared when I tried with a smaller part of
> my document. So my question is: what is the most "inexpensive" way of
> typesetting this sort of material? One of the table environments? Which
> one (would xtables be better?)? Or low-level vboxes within hboxes etc.?
> Or just \framed within \framed? What would you suggest for this sort of
> material?
\starttext
\setuplinetable[n=2,lines=25]
\setuplinetable[c][1][width=6cm] %
,background=color,backgroundcolor=red,color=white]
\setuplinetable[c][1][width=6cm] %
,background=color,backgroundcolor=red,color=white]
\setuplinetable[1][all][background=color,backgroundcolor=white]
\dontcomplain
\startlinetable
\dorecurse{100}{
\dorecurse{100}{
\NC aaa \NC test test test test \NC \NR
}
}
\stoplinetable
\page
% \startluacode
% local context = context
% local NC = context.NC
% local NR = context.NR
% context.startlinetable()
% for i=1,100 do
% for i=1,100 do
% NC()
% context("aaa")
% NC()
% context("test test test test")
% NC()
% NR()
% end
% context.stoplinetable()
% \stopluacode
\stoptext
-----------------------------------------------------------------
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:[~2017-04-09 13:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-09 11:20 Thomas A. Schmitz
2017-04-09 13:57 ` Hans Hagen [this message]
2017-04-09 14:53 ` Thomas A. Schmitz
2017-04-11 8:02 ` Henning Hraban Ramm
2017-04-11 14:17 ` Alan Braslau
2017-04-11 17:35 ` Hans Hagen
2017-04-10 14:25 ` Thomas A. Schmitz
2017-04-10 15:07 ` Hans Hagen
2017-04-10 15:20 ` Thomas A. Schmitz
2017-04-11 9:53 ` Thomas A. Schmitz
2017-04-11 10:27 ` Thomas A. Schmitz
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=6efdd6c0-068d-6298-9532-dde2f8b7cca7@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).