From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/35830 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: Booktabs equivalent in Context Date: Thu, 9 Aug 2007 10:56:27 +0200 Message-ID: <115224fb0708090156s12f058ecrb90f78d9d99f0a49@mail.gmail.com> References: <20070803171006.gn644njnhw88sggg@web.mail.umich.edu> <20070808182353.5z60n2ipesg88s0o@web.mail.umich.edu> <115224fb0708082343j1d43a312r35eb2f81278de524@mail.gmail.com> 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 1186660129 5831 80.91.229.12 (9 Aug 2007 11:48:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 9 Aug 2007 11:48:49 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 09 13:48:47 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 1IJ6VT-000387-0H for gctc-ntg-context-518@m.gmane.org; Thu, 09 Aug 2007 13:48:47 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 189FD2006B; Thu, 9 Aug 2007 13:48: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 31362-03-12; Thu, 9 Aug 2007 13:48:12 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5766320299; Thu, 9 Aug 2007 10:56:34 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3F0B820299 for ; Thu, 9 Aug 2007 10:56:32 +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 16171-02-6 for ; Thu, 9 Aug 2007 10:56:28 +0200 (CEST) Original-Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.225]) by ronja.ntg.nl (Postfix) with ESMTP id B15CF20298 for ; Thu, 9 Aug 2007 10:56:28 +0200 (CEST) Original-Received: by wx-out-0506.google.com with SMTP id i27so371556wxd for ; Thu, 09 Aug 2007 01:56:27 -0700 (PDT) Original-Received: by 10.90.100.2 with SMTP id x2mr2569034agb.1186649787229; Thu, 09 Aug 2007 01:56:27 -0700 (PDT) Original-Received: by 10.90.101.7 with HTTP; Thu, 9 Aug 2007 01:56:27 -0700 (PDT) In-Reply-To: Content-Disposition: inline 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:35830 Archived-At: 2007/8/9, Aditya Mahajan : > On Thu, 9 Aug 2007, Wolfgang Schuster wrote: > > > 2007/8/9, Hamid Kamrani : > >> Aditya, > >> > >> In the example you give with CMID you have only two column preambles > >> whereas the table has 3 columns and if one adds the missing preamble > >> then one gets an error. Some how your new code breaks the calculation > >> for number of columns. > >> > >> -Hamid > > > > He forgot only to put a \NC before the \AR. > > Sorry about that. I thought I pasted from a correctly running example. > > Here is another attempt, which I feel is the cleanest way to go about > this whole thing. Right now the skip between the columns is not > configurable, but it should be possible to use the get the value of > the skip. > > The attached code typesets an example that Wolfgang had sent off-list. > I have only changed two lines of the table.tex. > > Aditya Hi Aditya, what do you think about \setuptables [\c!columndistance=2em] \def\!tfSetVrule{% \!thToksEdef\!taRuleColumnTemplate={% \noexpand\hfil \noexpand\vrule \noexpand\!thWidth \ifnum \!tgCode=1 \ifx \!tgValue\empty \the\LineThicknessFactor % Default integer \else \!tgValue % User-specified integer \fi \!taLTU % \LineThicknessUnit \else \!tgValue % User-specified dimension \fi ####% \noexpand\hfil \the\!taRuleColumnTemplate% % has \tabskips, when column number=0 \ifnum\!taColumnNumber=\zerocount\else\tabskip\@@ticolumndistance\fi}%ADDED (should be configurable) \!tfAdjoinPriorColumn} I changed your hard code 2em value for \tabskip to a parameter in \setuptables. Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________