From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36747 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: starttabulate questions Date: Mon, 24 Sep 2007 19:52:00 -0400 (EDT) Message-ID: References: <20070924224136.GL13370@obiit.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1190677950 19451 80.91.229.12 (24 Sep 2007 23:52:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 24 Sep 2007 23:52:30 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 25 01:52:24 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1IZxiv-0001G7-HE for gctc-ntg-context-518@m.gmane.org; Tue, 25 Sep 2007 01:52:21 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 95CA81FC21; Tue, 25 Sep 2007 01:52:18 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 23230-04-3; Tue, 25 Sep 2007 01:52:11 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6EA851FBC9; Tue, 25 Sep 2007 01:52:11 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 886AE1FBC9 for ; Tue, 25 Sep 2007 01:52:09 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 23230-04-2 for ; Tue, 25 Sep 2007 01:52:03 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by ronja.ntg.nl (Postfix) with ESMTP id 30A891FBBE for ; Tue, 25 Sep 2007 01:52:02 +0200 (CEST) Original-Received: FROM aditya.annarb01.mi.comcast.net (adsl-68-79-103-226.dsl.sfldmi.ameritech.net [68.79.103.226]) BY hackers.mr.itd.umich.edu ID 46F84DA0.A80C4.30408 ; 24 Sep 2007 19:52:01 -0400 In-Reply-To: <20070924224136.GL13370@obiit.org> X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:36747 Archived-At: 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{ \cr { & 1 & <1-2 col sep> & 2 & <2-3> col sep> & 3 & \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 ___________________________________________________________________________________