Hi Herbert,
Thanks for your answer! Indeed it works….
Kind regards
Willi
On 23 sep. 2014, at 19:54, Herbert Voss
Am 23.09.2014 um 10:59 schrieb Willi Egger:
I would like to use the line table environment. - In order to get started I copied the code from the wiki. After it did not work with the dorecurse commands I simplified the code to
\starttext \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]
it is a problem with reading the parameter [c]. Use l or r instead and it will work:
\starttext \setuplinetable[n=6,lines=40]
\setuplinetable[l][1] [width=2cm,background=color,backgroundcolor=red] \setuplinetable[l][4] [width=3cm,background=color,backgroundcolor=yellow] \setuplinetable[l][6] [width=3cm,background=color,backgroundcolor=magenta] \setuplinetable[r][odd] [background=color,backgroundcolor=gray] \setuplinetable[r][even][background=color,backgroundcolor=green] \showframe \showstruts
\setupcolors[state=start]
\startlinetable \NC aaa\crlf aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff \NC \NR \dorecurse{100}{\NC aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff \NC \NR} \stoplinetable
\stoptext
Herbert
___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________