Open main menu
Wiki
Search
Changes
← Older edit
Newer edit →
Linetable
(view source)
Revision as of 15:27, 16 December 2004
1,439 bytes added
,
15:27, 16 December 2004
added sample
{\NC aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff \NC \NR}
\stoplinetable
</context>
Another sample, posted by Hans to the mailing list on 2004-12-14:
<texcode>
\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]
\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
</texcode>
looks like:
<context>
\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]
\startlinetable
\dorecurse{5}{\NC aaa\crlf aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff} \NC \NR
\dorecurse{20}{\dorecurse{5}{\NC aaa \NC bb \NC c \NC ddddd \NC eeee \NC ff} \NC \NR}
\stoplinetable
\stoptext
</context>
Hraban
gardener,
Interface administrators
,
Administrators
1,547
edits