ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: Directions to use the new table format.
Date: Tue, 14 Dec 2004 11:07:04 +0100	[thread overview]
Message-ID: <41BEBB48.9050707@wxs.nl> (raw)
In-Reply-To: <BAY23-F11FC078DBF3CD398D67B0FBAB0@phx.gbl>

Dirar BOUGATEF wrote:
> Hi all,
>  
> I think that Hans is more concerned by this one ...
>  
> Having looked at all the tables ways to make tables within context, i 
> think, that learning the last one (linetable) to do things is more 
> appropriate because it summarises the functionnalities of all the others 
> (hence, less headaches and a smaller lurning curve).
>  
> Can anyone give just a few lines of directions to start using this mode 
> (The wiki example is too small to learn from) or at least some words 
> about how to use the implementation file which is  core-ltb.tex to 
> understand how things work (This is gonna be very helpful to all 
> Contexters).

very undocumented indeed; i made this module for a project long ago but never 
came to documenting it;

\starttable

\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]

\setuppagenumbering[alternative=doublesided]\page[left]

\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


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

  reply	other threads:[~2004-12-14 10:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-13 18:45 Dirar BOUGATEF
2004-12-14 10:07 ` Hans Hagen [this message]
2004-12-17 21:30   ` Dirar BOUGATEF

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=41BEBB48.9050707@wxs.nl \
    --to=pragma@wxs.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).