From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/33981 Path: news.gmane.org!not-for-mail From: Peter Rolf Newsgroups: gmane.comp.tex.context Subject: Re: Grid-keeping table Date: Tue, 27 Mar 2007 20:38:00 +0200 Message-ID: <46096488.10409@gmx.net> References: <46093E45.1040604@typoma.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------050400090804080909050702" X-Trace: sea.gmane.org 1175020732 22689 80.91.229.12 (27 Mar 2007 18:38:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 27 Mar 2007 18:38:52 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 27 20:38:45 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 1HWGZB-0006RX-0V for gctc-ntg-context-518@m.gmane.org; Tue, 27 Mar 2007 20:38:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B66B62016F; Tue, 27 Mar 2007 20:38:43 +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 10087-04; Tue, 27 Mar 2007 20:38:37 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8F12820100; Tue, 27 Mar 2007 20:38:37 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C37AE20100 for ; Tue, 27 Mar 2007 20:38:35 +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 09882-05 for ; Tue, 27 Mar 2007 20:38:31 +0200 (CEST) Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by ronja.ntg.nl (Postfix) with SMTP id D971B200F5 for ; Tue, 27 Mar 2007 20:38:30 +0200 (CEST) Original-Received: (qmail invoked by alias); 27 Mar 2007 18:38:30 -0000 Original-Received: from i577B9B2E.versanet.de (EHLO [192.168.1.3]) [87.123.155.46] by mail.gmx.net (mp048) with SMTP; 27 Mar 2007 20:38:30 +0200 X-Authenticated: #24293357 X-Provags-ID: V01U2FsdGVkX1+gOuVQPTmgNkxTh1sKM17PghKNX3I5JLE4vevkns 5Wki54xNanaZwX User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) In-Reply-To: <46093E45.1040604@typoma.com> X-Enigmail-Version: 0.94.2.0 X-Y-GMX-Trusted: 0 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:33981 Archived-At: This is a multi-part message in MIME format. --------------050400090804080909050702 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi Johannes, Johannes Kuester wrote: > Dear all, > > I'm trying to typeset a rather simple list or table where each line > should keep the overall grid of my page design. > For this I tried "tabulate", "table", and "TABLE", but all failed. > One way to reach this, is to set the row height of every single table line to the default interline space of ConTeXt. The table rows now sync with the grid (same height), but behind the table you are again out of sync. You can use \syncronizegrid to fix this. HTH, Peter P.S. Can anyone with grid experience add some stuff to the Wiki? I had to grep "the base" to find a grid syncronizing macro. > What I need is the following: > 4 columns, each with a fixed width. > One of the columns may contain a paragraph (i.e. more than one line), like: > > Axxx yyyy first entry with zzz > more text > Bxxx yyyy next entry zzz > > The line starting with "B" does not keep the grid -- at least in most > cases; I couldn't trace down when and why this fails. > > (The specific environment is not important (whether tabulate, table, > TABLE, or some other solution), as all entries are supplied by a macro > which I could adapt easily). > > > Johannes > --------------050400090804080909050702 Content-Type: text/plain; name="grid.tex" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="grid.tex" \setuplayout[grid=yes] \showgrid \showstruts \starttext \input tufte \setupTABLE[r][each][height=\the\baselineskip] % default linespacing in ConTeXt \setupTABLE[c][1,2,4][width=.2\textwidth] \setupTABLE[c][3][width=.4\textwidth] \setupTABLE[frame=on] \blank \bTABLE \bTR \bTD Axxx \eTD \bTD yyyy \eTD \bTD [row=2] first entry with\\ more text \eTD \bTD zzz \eTD \eTR % \bTR \bTD \eTD \bTD \eTD % \bTD \eTD % [row=2] \bTD \eTD \eTR % \bTR \bTD Bxxx \eTD \bTD yyyy \eTD \bTD next entry \eTD \bTD zzz \eTD \eTR \eTABLE \synchronizegrid \blank \input tufte \stoptext --------------050400090804080909050702 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --------------050400090804080909050702--