From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/67714 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: three more table questions Date: Mon, 11 Apr 2011 12:53:48 +0200 Message-ID: <3982E723-57BA-475E-90C7-F9070CB36EB7@googlemail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1302519250 12286 80.91.229.12 (11 Apr 2011 10:54:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 11 Apr 2011 10:54:10 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 11 12:54:06 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q9Ekw-00051Q-JD for gctc-ntg-context-518@m.gmane.org; Mon, 11 Apr 2011 12:54:06 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9DF39CABBE; Mon, 11 Apr 2011 12:54:05 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 2j7em9oCz-fj; Mon, 11 Apr 2011 12:54:02 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D8A60CABC0; Mon, 11 Apr 2011 12:54:02 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 975F4CABC0 for ; Mon, 11 Apr 2011 12:54:01 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id k1JoUB3XnRix for ; Mon, 11 Apr 2011 12:53:59 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 9BE95CABBE for ; Mon, 11 Apr 2011 12:53:59 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p3BArwWk006482 for ; Mon, 11 Apr 2011 12:53:59 +0200 Original-Received: by fxm18 with SMTP id 18so5023171fxm.14 for ; Mon, 11 Apr 2011 03:53:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to :x-mailer; bh=Mu/efjTTBx+ZbtYYsqx51StJ1atgKnNGY1Kn1OueEj4=; b=sylEyE22kWoI5M9guN5uQD3o3YaHqW46mXdhMmb/9+lzbSMlyWjvKXK2TmbdIrLTCH VJW0UurV7jBd00tb5u0CiimA3mjFVKiU6IN3i0/ClAyVRlwjwvKHSDhOT2MKD5EaJQ1S kPLL/T4MlNvT+TAsvenon/kg5HVnGfhiloN9k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=DvkG3vjFIAaI1mBUt/4srAuEWuoy5Tpwl7gbENrdn+uHues1SAFVyVToAmOqr5L5yF xfmpN+rxp0A7GokLLaY6mOYDDE3BJcJfVv5YzckbE60tJLb0NGm/GBe5eWPQSJ3mUcda PGcQQ2oPKz7hm2A6qigAVXTgBz3gernZxTbkw= Original-Received: by 10.223.98.8 with SMTP id o8mr1536244fan.22.1302519232186; Mon, 11 Apr 2011 03:53:52 -0700 (PDT) Original-Received: from [192.168.2.31] (p5B295033.dip.t-dialin.net [91.41.80.51]) by mx.google.com with ESMTPS id k5sm1628039faa.15.2011.04.11.03.53.50 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 11 Apr 2011 03:53:51 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0eEuaRXr1 - 6a3a9956bbd8 - 20110411 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:67714 Archived-At: Am 11.04.2011 um 12:44 schrieb Florian Wobbe: > Hi, > > 1) how can I auto-stretch a natural table to a defined width? The default seems to be the line width, which I don't want. Setting width=... will change the per column width, which I don't like either. I'd like to set the per table width. > > \bTABLE[option=stretch,width=80mm] > \bTABLEhead > \bTR \bTD Col1 \eTD \bTD Col2 \eTD \bTD Col3 \eTD \bTD Col4 \eTD \eTR > \eTABLEhead > \bTABLEbody > \dorecurse{5}{\bTR \bTD 1 \eTD \bTD 2 \eTD \bTD 3 \eTD \bTD 4 \eTD \eTR} > \eTABLEbody > \eTABLE > > Or is there maybe the possibility to enforce a certain with with \placetable? Use \bTABLE[option=stretch,textwidth=\textwidth]. > 2) In this example I'd like to have no offset between lines but an offset between columns. How can I achieve this without the gaps in the hline separating the header? > > \bTABLE > \setupTABLE[frame=off,offset=0pt] > \setupTABLE[c][distance=3mm] > \bTABLEhead > \bTR[bottomframe=on] \bTD Col1 \eTD \bTD Col2 \eTD \bTD Col3 \eTD \bTD Col4 \eTD \eTR > \eTABLEhead > \bTABLEbody > \dorecurse{5}{\bTR \bTD 1 \eTD \bTD 2 \eTD \bTD 3 \eTD \bTD 4 \eTD \eTR} > \eTABLEbody > \eTABLE > > I also tried various combinations of offset=, columndistance=, leftmargindistance=, and rightmargindistance= for columns and rows but did not succeed. \setupTABLE[start] [loffset=3mm,roffset=3mm] \setupTABLE[column][first][loffset=0mm] \setupTABLE[column][last] [roffset=0mm] > 3) Consider this example: > > \bTABLE[option=stretch] > \setupTABLE[frame=off,offset=0pt] > \bTABLEhead > \bTR[bottomframe=on] \bTD Col1 \eTD \bTD Col2 \eTD \bTD Col3 \eTD \bTD Col4 \eTD \eTR > \eTABLEhead > \bTABLEbody > \dorecurse{5}{\bTR \bTD 1 \eTD \bTD 2 \eTD \bTD 3 \eTD \bTD this is a long entry \eTD \eTR} > \eTABLEbody > \eTABLE > > Is it possible to auto-stretch only the first three columns, so that "this is a long entry" is always aligned to the right margin? All columns should stay flushleft. You can exclude columns from stretching when you set a width, e.g. \setupTABLE[column][last][width=4cm,align=flushright] Wolfgang ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________