From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92990 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: natural tables and columndistance/spaceinbetween Date: Mon, 30 Nov 2015 13:23:28 +0100 Message-ID: <565C3FC0.50205@gmail.com> References: <20151125184454.1375f7fd@cea.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6924491249706485135==" X-Trace: ger.gmane.org 1448886287 18168 80.91.229.3 (30 Nov 2015 12:24:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 30 Nov 2015 12:24:47 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 30 13:24:36 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a3NVQ-0006bf-EY for gctc-ntg-context-518@m.gmane.org; Mon, 30 Nov 2015 13:24:32 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B321E4F37; Mon, 30 Nov 2015 13:23:45 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9LHogp1mEBQJ; Mon, 30 Nov 2015 13:23:43 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 8F48C4F3B; Mon, 30 Nov 2015 13:23:43 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B48304F37 for ; Mon, 30 Nov 2015 13:23:42 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 90lEPJxkaXgz for ; Mon, 30 Nov 2015 13:23:42 +0100 (CET) Original-Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id F07214F35 for ; Mon, 30 Nov 2015 13:23:31 +0100 (CET) Original-Received: by wmww144 with SMTP id w144so126956971wmw.1 for ; Mon, 30 Nov 2015 04:23:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=hCY/BbBj+TD7zmxrtoFgpa4ha5CkNpLcietlsWt5JE4=; b=douqvNj+C2Cc02+bBB8OXHugpITdj3aszjqrHpuiWpL2gtKM0b/a+KsZAPWu43EhTG w1Dcnlkx30B+AcosECgmulRvRWTuCb9R+02ucPAfF75C+ejkX1nk1vHxmrlVueIBDPXC YD/7SuNOEkreaAszfr5iYHqACA6Stvk1rvDf0AlXV7t66bqeHCmPakvGY0ByFmZGpqyb ug/GHcvfhv52oydWod8vggjzIuZxrHPu+pCe3rrUmKtbv8xmF7duAkdrEyoo6LtaG/oh qcnOzSl1c5YuhUp41gM43TIqvVOZtXxATDBlniEBdWfexcUCqBcm+eRjUofsmX7b5eXE GpXA== X-Received: by 10.28.63.22 with SMTP id m22mr28864575wma.58.1448886211587; Mon, 30 Nov 2015 04:23:31 -0800 (PST) Original-Received: from keima.localdomain (x2f26756.dyn.telefonica.de. [2.242.103.86]) by smtp.googlemail.com with ESMTPSA id d10sm46677662wje.14.2015.11.30.04.23.30 for (version=TLSv1/SSLv3 cipher=OTHER); Mon, 30 Nov 2015 04:23:30 -0800 (PST) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: <20151125184454.1375f7fd@cea.fr> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:92990 Archived-At: This is a multi-part message in MIME format. --===============6924491249706485135== Content-Type: multipart/alternative; boundary="------------090709020102060006090907" This is a multi-part message in MIME format. --------------090709020102060006090907 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > Alan BRASLAU > 26. November 2015 um 02:44 > In natural tables > http://wiki.contextgarden.net/TABLE > > the parameters > columndistance=dimension, > and > spaceinbetween=dimension, > will set the gaps between columns and rows, respectively. > > Is there some way of specifying row gaps for specific rows? > For example, say that I only want a gap after the first row. > I tried: > > \bTABLE > \bTR [spaceinbetween=.25em] > \bTD 1 \eTD > \bTD 2 \eTD > \eTR > \bTR > \bTD A \eTD > \bTD B \eTD > \eTR > \bTR > \bTD a \eTD > \bTD b \eTD > \eTR > \eTABLE > > Alternately, I tried > \setupTABLE [r][1][spaceinbetween=.25em] > > but these do not work. > > > One might think about trying > > \bTR [bottomframe=on,framecolor=white,rulethickness=.25em] > ... > \eTR > > but this presents several problems: > 1) When using background=color, the background color gives a hairline > overflow beyond the rule, at least using the pdf viewers that I have on > my computer. > 2) there appears to be some interference between setting rulethickness > and columndistance, so that spaces between columns disappear when > putting a thick bottomframe. Of course, one could kludge a column > separation using a rightframe, but this is not satisfactory. > 3) The use of a white rule when one really wants to leave some space is > not very satisfying. > > Does anyone have any suggestions? You can use the boffset key to set a different offset value for the bottom of the cell. The correct the position of the frame at the bottom you can use metapost to draw the frame as background graphic. Wolfgang --------------090709020102060006090907 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
26. November 2015 um 02:44
In natural tables
http://wiki.contextgarden.net/TABLE

the parameters
columndistance=dimension,
and
spaceinbetween=dimension,
will set the gaps between columns and rows, respectively.

Is there some way of specifying row gaps for specific rows?
For example, say that I only want a gap after the first row.
I tried:

\bTABLE
\bTR [spaceinbetween=.25em]
\bTD 1 \eTD
\bTD 2 \eTD
\eTR
\bTR
\bTD A \eTD
\bTD B \eTD
\eTR
\bTR
\bTD a \eTD
\bTD b \eTD
\eTR
\eTABLE

Alternately, I tried
\setupTABLE [r][1][spaceinbetween=.25em]

but these do not work.


One might think about trying

\bTR [bottomframe=on,framecolor=white,rulethickness=.25em]
...
\eTR

but this presents several problems:
1) When using background=color, the background color gives a hairline
overflow beyond the rule, at least using the pdf viewers that I have on
my computer.
2) there appears to be some interference between setting rulethickness
and columndistance, so that spaces between columns disappear when
putting a thick bottomframe. Of course, one could kludge a column
separation using a rightframe, but this is not satisfactory.
3) The use of a white rule when one really wants to leave some space is
not very satisfying.

Does anyone have any suggestions?
You can use the boffset key to set a different offset value for the bottom of the cell.

The correct the position of the frame at the bottom you can use metapost to draw
the frame as background graphic.

Wolfgang
--------------090709020102060006090907-- --===============6924491249706485135== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============6924491249706485135==--