Good morning! 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] \showframe \showstruts \setupcolors[state=start] \startlinetable \NC aaa\crlf aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff} \NC \NR \stoplinetable \stoptext However with and without the dorecurse commands in it i get the following error: Missing number, treated as zero <to be read again> d \s!depth d-d epth \pack_black_rule_indeed ...\p_height \fi \s!depth \ifx \p_depth \v!max \stru... <argument> ...meter {x\c!depth }, \c!width =\wd \scratchbox ] \hskip -\wd \scratchbox \b... \firstoftwoarguments #1#2c-#1 \stoplinetablecell ...ox }\fi }{\box \scratchbox } \fi \egroup ... l.48 \NC aaa\crlf aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff} \NC \NR 38 \setuplinetable[c][6] [width=3cm,background=color,backgroundcolor=magenta] 39 \setuplinetable[r][odd] [background=color,backgroundcolor=gray] 40 \setuplinetable[r][even][background=color,backgroundcolor=green] 41 42 43 \showframe \showstruts 44 45 \setupcolors[state=start] 46 47 \startlinetable 48 >> \NC aaa\crlf aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff} \NC \NR 49 \stoplinetable 50 51 \stoptext I have no clue why is going wrong here… Thank you and kind regards Willi
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
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 ___________________________________________________________________________________
participants (2)
-
Herbert Voss
-
Willi Egger