From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/34116 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Vertical text alignment in nested natural tables Date: Wed, 4 Apr 2007 18:32:21 +0200 Message-ID: <20070404183221.f4c8addd.schuster.wolfgang@googlemail.com> References: <20070328091156.85kplgbcggcogwo8@serenity.landy.cx> <115224fb0703290134s34cc7a11icb9d4094cd1033cd@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 1175704386 30233 80.91.229.12 (4 Apr 2007 16:33:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 Apr 2007 16:33:06 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Apr 04 18:32:53 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 1HZ8Pi-00026l-BC for gctc-ntg-context-518@m.gmane.org; Wed, 04 Apr 2007 18:32:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5E91920079; Wed, 4 Apr 2007 18:32:49 +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 10238-04-2; Wed, 4 Apr 2007 18:32:42 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9C9FE2007F; Wed, 4 Apr 2007 18:32:42 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 32BF82007F for ; Wed, 4 Apr 2007 18:32:40 +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 10238-04 for ; Wed, 4 Apr 2007 18:32:36 +0200 (CEST) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by ronja.ntg.nl (Postfix) with ESMTP id 160EE20079 for ; Wed, 4 Apr 2007 18:32:36 +0200 (CEST) Original-Received: by ug-out-1314.google.com with SMTP id m2so836421uge for ; Wed, 04 Apr 2007 09:32:32 -0700 (PDT) Original-Received: by 10.78.160.2 with SMTP id i2mr139110hue.1175704351789; Wed, 04 Apr 2007 09:32:31 -0700 (PDT) Original-Received: from eve ( [194.94.240.124]) by mx.google.com with ESMTP id j9sm883034mue.2007.04.04.09.32.29; Wed, 04 Apr 2007 09:32:29 -0700 (PDT) In-Reply-To: X-Mailer: Sylpheed 2.3.1 (GTK+ 2.10.7; i686-pc-mingw32) 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:34116 Archived-At: On Thu, 29 Mar 2007 23:16:43 -0400 "Brian R. Landy" wrote: > I had played around with strut=yes, but had not realized I also > needed to set autostrut=no. That approach ended up working best; my > initial solution broke aligncharacter, and I like the table > environment to reset. It is a bit odd that it resets to something > different than the default. > > As an aside, what books are good for learning TeX programming for > ConTeXt? Anything besides the TeXBook (and I saw TeX by Topic > mentioned on the list the other day). > > > Thanks again, > Brian Hi Brian, the best method to control nested tables is by integrating a setup command for nested tables. \unprotect \def\setupresetTABLE {\dodoubleargument\getparameters[\@@tbl\@@tbl\@@tbl]} \def\resetallTABLEparameters% moet genest wel werken {\ifnum\TBLlevel>\plusone % in ieder geval \ifconditional\resetTABLEmode \presetlocalframed % breedte hoogte diepte offset [\@@tbl\@@tbl]% % achtergrond, achtergrondraster, achtergrondkleur \copyparameters [\@@tbl\@@tbl][\@@tbl\@@tbl\@@tbl] [\c!frameoffset,\c!backgroundoffset,\c!framecolor,\c!color, \c!strut,\c!autostrut,\c!aligncharacter,\c!alignmentcharacter, \c!style,\c!option,\c!maxwidth,\c!textwidth,\c!left,\c!right] \else \setupTABLE [\c!width=\v!fit, \c!height=\v!fit]% \fi \fi} \setupresetTABLE [\c!frameoffset=.5\linewidth, \c!backgroundoffset=\v!frame, \c!framecolor=\s!black, \c!color=, \c!style=, \c!strut=\v!yes, \c!autostrut=\v!no, \c!aligncharacter=\v!no, \c!alignmentcharacter={,}, \c!option=, \c!maxwidth=8em, \c!textwidth=\hsize, \c!left=, \c!right=] \protect \starttext \bTABLE \bTR \bTD {\bTABLE \bTR \bTD SSSS \eTD \bTD Swap \eTD \eTR \eTABLE} \eTD \eTR \eTABLE \stoptext Wolfgang