ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Otared Kavian <otared@gmail.com>
Subject: Number of rows in tables
Date: Wed, 21 Sep 2005 11:02:39 +0200	[thread overview]
Message-ID: <AFE286CB-99FA-4CBE-813B-5EE2D66D6E6E@gmail.com> (raw)

Hi everyone,

In the process of learning the table mechanism I followed the  
discussions on the list, but could not figure out whether it is  
possible to create a table with a given number of rows. For instance,  
is it possible to add something to Mojca's solution for cells with  
backgrounds (see below) to have a table with (for example) 15 rows?  
Something like
\setupTable[number_of_rows=15,number_of_columns=4]

Thanks for your insight: OK

%%%%%%%%%%%%%%%%%%%% Mojca's solution
\setupcolors[state=start]
\starttext
% row 1
\setupTABLE[r][1] 
[style=bold,background=color,backgroundcolor=green,align=middle]
\setupTABLE[c][1][width=3cm] % column 1
\setupTABLE[c][3][width=2.75cm] % column 3
\setupTABLE[c][4][width=7cm]
\bTABLE
\bTR
     \bTD Name \eTD
     \bTD Location \eTD
     \bTD Date \eTD
     \bTD Signature \eTD
\eTR
\bTR
     \bTD\strut \eTD
     \bTD \eTD
     \bTD \eTD
     \bTD \eTD
\eTR
\eTABLE
\stoptext
%%%%%%%%%%%%%%%%%%%%%%%%%%%%

             reply	other threads:[~2005-09-21  9:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-21  9:02 Otared Kavian [this message]
2005-09-21 13:45 ` Otared KAVIAN
2005-09-21 17:32   ` Willi Egger
2005-09-21 12:22 Otared KAVIAN

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=AFE286CB-99FA-4CBE-813B-5EE2D66D6E6E@gmail.com \
    --to=otared@gmail.com \
    --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).