From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/11051 Path: main.gmane.org!not-for-mail From: Tomasz Kosinski Newsgroups: gmane.comp.tex.context Subject: Re: \setupTABLE commands? Date: Fri, 14 Feb 2003 19:56:33 -0500 Sender: ntg-context-admin@ntg.nl Message-ID: <86znoygy4e.fsf@rationalbuilding.net> References: Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1045270496 9567 80.91.224.249 (15 Feb 2003 00:54:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 15 Feb 2003 00:54:56 +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 18jqbX-0002UB-00 for ; Sat, 15 Feb 2003 01:54:55 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 16C1910AE9; Sat, 15 Feb 2003 01:57:10 +0100 (MET) Original-Received: from localhost (mickle.dialup.access.net [166.84.194.82]) by ref.ntg.nl (Postfix) with ESMTP id 6557A10AE7 for ; Sat, 15 Feb 2003 01:54:39 +0100 (MET) Original-Received: from peter by localhost with local (Exim 3.36 #1 (Debian)) id 18jqd7-0002vd-00 for ; Fri, 14 Feb 2003 19:56:33 -0500 Original-To: ntg-context@ntg.nl In-Reply-To: ("Bruce D'Arcus"'s message of "Fri, 14 Feb 2003 18:41:45 -0500") User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu) 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:11051 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:11051 "Bruce D'Arcus" writes: > Ah, I wasn't being too clear. i want to set up the table formatting > in the document header, not within the text. Should I then be using > the \setuptables command instead? I don't really understand the > difference. I don't understand the mechanisms very well, I've just spent a week trying to figure out how to manipulate them... You can put all the setup commands in the header/preamble, but, as far as I can tell, its position on the page is not one of the properties a table can have. That is what you are looking for? Maybe someone knowledgable can correct my assumption. On the other hand, with the \setup commands located in the preamble you can still control the position of each table you insert. The position is controlled locally, to the table being placed. The following bit has your \setup commands, then three tables and a little text, and it works as I think you intend: %output=pdftex \setupcolors[state=start] \starttext \definecolor[back-1][r=.8,g=.8,b=.4] \definecolor[back-2][r=.8,g=.8,b=.6] \definecolor[back-3][r=.8,g=.8,b=.8] \setupTABLE[background=color, frame=off, framecolor=white, location=middle, spaecbefore=1*medium, spaceafter=1*medium] \setupTABLE[row][1] [rulethickness=2pt,bottomframe=on] \setupTABLE[row][1] [backgroundcolor=back-1] \setupTABLE[row][odd] [backgroundcolor=back-2] \setupTABLE[row][even][backgroundcolor=back-3] \midaligned{ \bTABLE \bTR \bTD 04400 \eTD \bTD lish exist arra mar fl \eTD \bTD 5000\eTD \eTR \bTR \bTD 04400 \eTD \bTD pair \& exisfloor \eTD \bTD 1,500\eTD \eTR \bTR \bTD 04400 \eTD \bTD x $\pm$ 4 5/8 arle bas \eTD \bTD 6,980 \eTD \eTR \eTABLE } The separation of any of these four components would have hurt \TeX\ significantly. If I had not participated fully in all these activities, {\rm literally hundreds of improvements would never have been made, because} I would never have thought of them or perceived why they were important. \bTABLE \bTR \bTD \eTD \bTD aaa\eTD \bTD b\eTD \eTR \bTR \bTD \eTD \bTD aaa\eTD \bTD b\eTD \eTR \bTR \bTD 11\eTD \bTD 111\eTD \bTD 5555\eTD \eTR \bTR \bTD 22\eTD \bTD 221\eTD \bTD 6655\eTD \eTR \eTABLE \midaligned{ \bTABLE \bTR \bTD \eTD \bTD aaa\eTD \bTD b\eTD \eTR \bTR \bTD \eTD \bTD aaa\eTD \bTD b\eTD \eTR \bTR \bTD 11\eTD \bTD 111\eTD \bTD 5555\eTD \eTR \bTR \bTD 22\eTD \bTD 221\eTD \bTD 6655\eTD \eTR \eTABLE } \stoptext Maybe a little closer... -- Tomasz