From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/10864 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: column woes Date: Sat, 08 Feb 2003 18:37:52 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <5.1.0.14.1.20030208182202.03d1de08@server-1> References: <3E407CAF.8911E5F6@lamar.colostate.edu> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1044731999 30321 80.91.224.249 (8 Feb 2003 19:19:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 8 Feb 2003 19:19:59 +0000 (UTC) Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18haW5-0007so-00 for ; Sat, 08 Feb 2003 20:19:57 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 1FD9F10B43; Sat, 8 Feb 2003 20:22:03 +0100 (MET) Original-Received: from smtp06.wxs.nl (smtp06.wxs.nl [195.121.6.58]) by ref.ntg.nl (Postfix) with ESMTP id 8367B10B2E for ; Sat, 8 Feb 2003 20:11:13 +0100 (MET) Original-Received: from LAPTOP-3.wxs.nl ([213.75.95.40]) by smtp06.wxs.nl (Netscape Messaging Server 4.15) with ESMTP id HA07Y100.6CH for ; Sat, 8 Feb 2003 20:10:49 +0100 X-Sender: hagen-mail@remote-1 (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 5.1 Original-To: ntg-context@ntg.nl In-Reply-To: <3E407CAF.8911E5F6@lamar.colostate.edu> Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:10864 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:10864 At 07:53 PM 2/4/2003 -0700, Idris S Hamid wrote: >bgroup >\tfx\setupinterlinespace >%\switchtobodyfont[10pt] >\placetable >[here][tab:cognition]{The three types of cognition.} >\starttable[|l|l|l|l|] cleaner: \startbuffer \starttable[|l|l|l|l|] \VL knowledge \VL bosom \VL forms or \VL the universal \VL\SR \stoptable \stopbuffer \placetable [here][tab:cognition]{The three types of cognition.} {\switchtobodyfont[10pt]\getbuffer} this way you can also scale a table: \externalfigure[buffer][...] Your problem is related to parsing the preamble with ##'s. Of course I should start rewriting table because ... Anyhow, here's a patch you can try (goes into cont-new) please test this (i must have had a reason for parsing the preamble instead of the template) \unprotect \def\thirdstagestartTABLE#1% {\global\setTABLEactiontrue \setTABLEaction\TABLEunknown \setTABLEforce\TABLEunknown \setTABLEerror\TABLEunknown \global\TABLEgraylinefalse \global\TABLEgraydonefalse \globalletempty\TABLEgrayline \globalletempty\nextTABLEgrayline \globalletempty\TABLEgraylineerror \globalletempty\TABLEgraylinestatus \resetVLvalues \appendtoks\popouterbarandquote\to\EveryTable \appendtoks\localTABLEsetup\to\EveryTable \BeginTable[\ifsplittables u\else b\fi]% \defineTABLEunits \defineTABLEsteps \defineTABLErules \defineTABLEdivisions \defineTABLEshorthands \defineTABLEbackgrounds \defineTABLEendings \forgetall % added \doifsomething{#1} {\def\TABLEformat{#1}% \getTABLEnofcolumns\TABLEformat \expandafter\BeginFormat\TABLEformat\EndFormat}} \def\!ttDoHalign {\baselineskip \zeropoint \lineskiplimit\zeropoint \lineskip \zeropoint \tabskip \zeropoint %\expanded{\getTABLEnofcolumns{\the\!taPreamble}}% added \halign \the\!taTableSpread \bgroup \span\the\!taPreamble \ifx \!tfRowOfWidths \empty \else \!tfRowOfWidths \cr \fi} \bgroup \catcode`\|=\@@other \gdef\getTABLEnofcolumns#1% {\bgroup \cleanupfeatures \expanded{\convertargument#1}\to\ascii \@EA\doglobal\@EA\counttoken\@EA|\@EA\in\ascii\to\maxTABLEcolumn \global\advance\maxTABLEcolumn \minusone \egroup} \egroup \starttext \startbuffer \definetabletemplate[xx][|l|l|l|l|] \starttable[xx]% %[|l|l|l|l|] \VL knowledge \VL bosom \VL forms or \VL the universal \VL\SR \stoptable \stopbuffer \placetable [here][tab:cognition]{The three types of cognition.} {\switchtobodyfont[10pt]\getbuffer} \stoptext ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------