ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Herbert Voss <Herbert.Voss@FU-Berlin.DE>
To: ntg-context@ntg.nl
Subject: Re: Linetables
Date: Tue, 23 Sep 2014 19:54:29 +0200	[thread overview]
Message-ID: <5421B3D5.2020401@FU-Berlin.DE> (raw)
In-Reply-To: <D73B0B09-C54D-4EFE-876A-78619ABAD98C@boede.nl>

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
___________________________________________________________________________________


  reply	other threads:[~2014-09-23 17:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-23  8:59 Linetables Willi Egger
2014-09-23 17:54 ` Herbert Voss [this message]
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=5421B3D5.2020401@FU-Berlin.DE \
    --to=herbert.voss@fu-berlin.de \
    --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).