[NTG-context] natural tables and columndistance/spaceinbetween

Wolfgang Schuster schuster.wolfgang at gmail.com
Mon Nov 30 13:23:28 CET 2015


> Alan BRASLAU <mailto:alan.braslau at cea.fr>
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20151130/c1df6e03/attachment.html>


More information about the ntg-context mailing list