* Linetables
@ 2014-09-23 8:59 Willi Egger
2014-09-23 17:54 ` Linetables Herbert Voss
0 siblings, 1 reply; 3+ messages in thread
From: Willi Egger @ 2014-09-23 8:59 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Linetables
2014-09-23 8:59 Linetables Willi Egger
@ 2014-09-23 17:54 ` Herbert Voss
2014-09-26 7:21 ` Linetables Willi Egger
0 siblings, 1 reply; 3+ messages in thread
From: Herbert Voss @ 2014-09-23 17:54 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Linetables
2014-09-23 17:54 ` Linetables Herbert Voss
@ 2014-09-26 7:21 ` Willi Egger
0 siblings, 0 replies; 3+ messages in thread
From: Willi Egger @ 2014-09-26 7:21 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi Herbert,
Thanks for your answer! Indeed it works….
Kind regards
Willi
On 23 sep. 2014, at 19:54, Herbert Voss <Herbert.Voss@FU-Berlin.DE> wrote:
> 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
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-09-26 7:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-23 8:59 Linetables Willi Egger
2014-09-23 17:54 ` Linetables Herbert Voss
2014-09-26 7:21 ` Linetables Willi Egger
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).