From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/35494 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: TABLE problems Date: Sat, 21 Jul 2007 18:24:51 +0200 Message-ID: <20070721182451.e69ce0fb.schuster.wolfgang@googlemail.com> References: <46A15F1C.10308.81F982@wwl.musensturm.de> 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 1185035125 27760 80.91.229.12 (21 Jul 2007 16:25:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 21 Jul 2007 16:25:25 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Jul 21 18:25:23 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 1ICHlj-0005Ov-59 for gctc-ntg-context-518@m.gmane.org; Sat, 21 Jul 2007 18:25:23 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 478AE20034; Sat, 21 Jul 2007 18:25:22 +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 18375-01-15; Sat, 21 Jul 2007 18:25:15 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CEF1520026; Sat, 21 Jul 2007 18:25:14 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 880AB20026 for ; Sat, 21 Jul 2007 18:25:13 +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 18375-01-14 for ; Sat, 21 Jul 2007 18:25:12 +0200 (CEST) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by ronja.ntg.nl (Postfix) with ESMTP id 527C71FCDD for ; Sat, 21 Jul 2007 18:25:12 +0200 (CEST) Original-Received: by ug-out-1314.google.com with SMTP id h2so811618ugf for ; Sat, 21 Jul 2007 09:25:12 -0700 (PDT) Original-Received: by 10.67.15.15 with SMTP id s15mr2828888ugi.1185035112155; Sat, 21 Jul 2007 09:25:12 -0700 (PDT) Original-Received: from eve ( [89.51.237.109]) by mx.google.com with ESMTPS id y1sm1222495uge.2007.07.21.09.25.07 (version=SSLv3 cipher=OTHER); Sat, 21 Jul 2007 09:25:11 -0700 (PDT) In-Reply-To: <46A15F1C.10308.81F982@wwl.musensturm.de> X-Mailer: Sylpheed 2.4.3 (GTK+ 2.10.13; 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:35494 Archived-At: On Sat, 21 Jul 2007 01:19:24 +0200 "Wolfgang Werners-Lucchini" wrote: > Hallo, > > I have two problems/questions with the following tables: > > 1. Should'nt all the columns be .2\textwidth, as in the last table? > 2. Why expands column width to \textwidth in the second table? > Has to do with \type{} and/or color! > 3. Why behaves table 1 (with \type{}) as table 3 (whitout \type{})? > Wolfgang Hi Wolfgang, sorry, no to your questions but the following setup works: \setupTABLE[row][odd][background=color,backgroundcolor=lightgray] \setupTABLE[width=.2\textwidth] why do you repeat the setup command for every table, the first one is global and should work for every table in your document, unless you make a setup local within a group or a float. Wolfgang > \setupcolors[state=start] > \starttext > \input tufte > > \setupTABLE[row][odd][background=color,backgroundcolor=lightgray, > width=.2\textwidth] > \bTABLE > \bTR \bTD \type{short} \eTD \bTD reads the whole file \eTD \eTR > \bTR \bTD kurz \eTD \bTD reads a string with up to num characters > \eTD \eTR > \eTABLE > > \input tufte > > \setupTABLE[row][odd][background=color,backgroundcolor=lightgray, > width=.2\textwidth] > \bTABLE > \bTR \bTD short \eTD \bTD reads the whole file \eTD \eTR > \bTR \bTD \type{kurz} \eTD \bTD reads a string with up to num > characters \eTD \eTR > \eTABLE > > \input tufte > > \setupTABLE[row][odd][background=color,backgroundcolor=lightgray, > width=.2\textwidth] > \bTABLE > \bTR \bTD short \eTD \bTD reads the whole file \eTD \eTR > \bTR \bTD kurz \eTD \bTD reads a string with up to num characters > \eTD \eTR > \eTABLE > > \input tufte > > \setupTABLE[row][odd][background=color,backgroundcolor=lightgray, > width=.2\textwidth] > \bTABLE > \bTR \bTD kurz \eTD \bTD reads a string with up to num characters > \eTD \eTR > \eTABLE > > \input tufte > \stoptext > > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to the Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___________________________________________________________________________________ ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________