Directions to use the new table format.
Dirar BOUGATEF wrote:
Hi all,
I think that Hans is more concerned by this one ...
Having looked at all the tables ways to make tables within context, i think, that learning the last one (linetable) to do things is more appropriate because it summarises the functionnalities of all the others (hence, less headaches and a smaller lurning curve).
Can anyone give just a few lines of directions to start using this mode (The wiki example is too small to learn from) or at least some words about how to use the implementation file which is core-ltb.tex to understand how things work (This is gonna be very helpful to all Contexters).
very undocumented indeed; i made this module for a project long ago but never came to documenting it; \starttable \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][odd] [background=color,backgroundcolor=gray] \setuplinetable[r][even][background=color,backgroundcolor=green] \starttext \showframe \showstruts \setupcolors[state=start] \setuppagenumbering[alternative=doublesided]\page[left] \startlinetable \dorecurse{5}{\NC aaa\crlf aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff} \NC \NR \dorecurse{100}{\dorecurse{5}{\NC aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff} \NC \NR} \stoplinetable \stoptext ----------------------------------------------------------------- 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 -----------------------------------------------------------------
Thanks, good example indeed .. Just few questions : 1. What is \starttable for ? I had to take it off to make the example work .. 2. The first page i get is empty .. Is it normal ? 3. The first page of columns i get is setup with the right columns settings (which is red, yellow, magenta for columns 1, 4, 6) and the right row settings, but the second page has only the right settings for the rows and not for the columns. It is the same for page 3, 4, and 5, etc. Cheers.
participants (2)
-
Dirar BOUGATEF
-
Hans Hagen