From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/33990 Path: news.gmane.org!not-for-mail From: "Brian R. Landy" Newsgroups: gmane.comp.tex.context Subject: Vertical text alignment in nested natural tables Date: Wed, 28 Mar 2007 09:11:56 -0400 Message-ID: <20070328091156.85kplgbcggcogwo8@serenity.landy.cx> 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 1175087547 13089 80.91.229.12 (28 Mar 2007 13:12:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Mar 2007 13:12:27 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 28 15:12:15 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 1HWXwj-00043X-Iy for gctc-ntg-context-518@m.gmane.org; Wed, 28 Mar 2007 15:12:13 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E7E222013F; Wed, 28 Mar 2007 15:12:12 +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 12152-02-2; Wed, 28 Mar 2007 15:12:06 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 473B22015D; Wed, 28 Mar 2007 15:12:06 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E83392013F for ; Wed, 28 Mar 2007 15:12:02 +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 12152-02 for ; Wed, 28 Mar 2007 15:11:58 +0200 (CEST) Original-Received: from smtp147.iad.emailsrvr.com (smtp147.iad.emailsrvr.com [207.97.245.147]) by ronja.ntg.nl (Postfix) with ESMTP id 446BB2015D for ; Wed, 28 Mar 2007 15:11:57 +0200 (CEST) Original-Received: from serenity.landy.cx (cpe-68-174-177-241.nyc.res.rr.com [68.174.177.241]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: brlandy@landy.cx) by relay4.r5.iad.mlsrvr.com (SMTP Server) with ESMTP id 01998C355 for ; Wed, 28 Mar 2007 09:11:56 -0400 (EDT) Original-Received: by serenity.landy.cx (Postfix, from userid 70) id 80EF6C40AAEE; Wed, 28 Mar 2007 09:11:56 -0400 (EDT) Original-Received: from 151.191.175.196 ([151.191.175.196]) by serenity.landy.cx (Horde MIME library) with HTTP; Wed, 28 Mar 2007 09:11:56 -0400 Content-Disposition: inline User-Agent: Internet Messaging Program (IMP) H3 (4.1.1) 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:33990 Archived-At: Hi, I am having a problem using nested natural tables, to which I have a solution but feel that it my not be the proper approach. I'm pretty much a TeX and ConTeXt novice. The problem is that the row height it reduced when a table is nested, breaking vertical text alignment across cells. In my example the cells "SSSSS" and "Swap" to not align vertically due to the presence of the "p". I have an example of the problem and my fix below. I'm curious if someone knows a better way to fix this. Thanks for your help, Brian \starttext Working table:\par \start \bTABLE[frame=on,align={middle,lohi}] \bTR \bTD SSSSS \eTD \bTD Swap \eTD \eTR \eTABLE \stop Nested table changes cell height, breaks text alignment with "lohi":\par \start \bTABLE[frame=on,height=0.50in] \bTR \bTD {\start \bTABLE[frame=on,align={middle,lohi}] \bTR \bTD SSSSS \eTD \bTD Swap \eTD \eTR \eTABLE \stop} \eTD \eTR \eTABLE \stop setting height to baselineskip does not help:\par \start \bTABLE[frame=on,height=0.50in] \bTR \bTD {\start \bTABLE[height=\the\baselineskip,frame=on,align={middle,lohi}] \bTR \bTD SSSSS \eTD \bTD Swap \eTD \eTR \eTABLE \stop} \eTD \eTR \eTABLE \stop One fix is a strut:\par \start \bTABLE[frame=on,height=0.50in] \bTR \bTD {\start \bTABLE[frame=on,align={middle,lohi}] \bTR \bTD \strut{SSSSS} \eTD \bTD \strut{Swap} \eTD \eTR \eTABLE \stop} \eTD \eTR \eTABLE \stop \stoptext