From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: starttabulate questions
Date: Mon, 24 Sep 2007 19:52:00 -0400 (EDT) [thread overview]
Message-ID: <alpine.WNT.0.9999.0709241938190.3072@nqvgln> (raw)
In-Reply-To: <20070924224136.GL13370@obiit.org>
On Tue, 25 Sep 2007, frantisek holop wrote:
> good evening,
>
> all the examples in the manual use \NC before \NR
> is this a necessity?
Yes.
> what is the logics behind this?
> is it more like an ending to the previous \NC ?
It is for historic reason. Originally, there was table (\starttable)
which is syntax sugar and some extensions over the TaBlE macro package
by Michael Wichura. In the TaBlE macro, the rule between the column is
a column in iteself. So, in table macros
\starttable[|l|l|l|]
\NC 1 \NC 2 \NC 3 \NC \NR
\stoptable
will expand to something like
\halign{ <preamble> \cr
{
<first column separator> & 1 & <1-2 col sep> & 2 & <2-3> col sep> & 3
& <last col sep> \cr
}
On the other hand, if you needed rules (lines) between the columns,
you replace \NC by \VC,
\starttable[|l|l|l|]
\VC 1 \VC 2 \VC 3 \VC \NR
\stoptable
In this case, the inter-column separator in the \halign are replaced
by the appropriate macros for rules. In this case, the last \VC is
needed to indicate that you want a rule at the end. And if you do not
want a rule, you need to indicate this by a \NC.
Tabulate started as a mechanism to replace table, so the syntax was
kept the same. Right now, tabulate does not implement vertical rules,
so in the context of tabulate, having a last \NC seems redundant. As
far as I understand, tabulate is supposed to ultimately backward
compatible with table, and features will be added according to user
demands or Hans needs.
> \starttabulate[|l|l|l|]
> \NC A. \NC This Perfect Day \NC Ira Levin \NC \NR
> \NC B. \NC Opstaan op Zaterdag \NC Jan Gerhart Toonder \NC \NR
> \NC C. \NC Tot waar zal ik je brengen \NC Anton Koolhaas \NC \NR
> \NC D. \NC The City And The Stars \NC Arthur Clarke \NC \NR
> \stoptabulate
>
>
> please consider the following minimal example:
>
> \starttext
> \starttabulate
> \NC column 1
> \NC
> \input tufte
> \input tufte
> \input tufte
> \NC \NR
> \stoptabulate
>
> \starttabulate
> \NC column 1
> \NC
> \input tufte
> \input tufte
> \NC \NR
> \stoptabulate
> \stoptext
>
> if i don't put something between the two tabulates,
> they behave just like one, as if i didn't seperate them,
> they show up on the same page. am i missing something?
Why do you expect them to be on different pages? If you want vertical
space between the tables, you can add a \blank in between the tables.
Aditya
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2007-09-24 23:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-24 22:41 frantisek holop
2007-09-24 23:52 ` Aditya Mahajan [this message]
2007-09-25 11:57 ` frantisek holop
2007-09-26 0:11 ` Aditya Mahajan
2007-09-26 1:08 ` Idris Samawi Hamid
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=alpine.WNT.0.9999.0709241938190.3072@nqvgln \
--to=adityam@umich.edu \
--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).