ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Willi Egger <context@boede.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Linetables
Date: Tue, 23 Sep 2014 10:59:49 +0200	[thread overview]
Message-ID: <D73B0B09-C54D-4EFE-876A-78619ABAD98C@boede.nl> (raw)

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
___________________________________________________________________________________


             reply	other threads:[~2014-09-23  8:59 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-23  8:59 Willi Egger [this message]
2014-09-23 17:54 ` Linetables Herbert Voss
2014-09-26  7:21   ` Linetables Willi Egger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=D73B0B09-C54D-4EFE-876A-78619ABAD98C@boede.nl \
    --to=context@boede.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).