natural tables and columndistance/spaceinbetween
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? Thanks Alan
Alan BRASLAU mailto:alan.braslau@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
On Mon, 30 Nov 2015 13:23:28 +0100
Wolfgang Schuster
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.
Thanks Wolfgang. boffset (or toffset) works to offset the text in an individual cell. But when using background=color,backgroundcolor=lightgray (for example), this offset of course gets colored. I now have tried \bTABLE [option=stretch, background=color, backgroundcolor=middlegray, columndistance=.25em, frame=off] ... \bTR [topframe=on,framecolor=white,rulethickness=.25em] ... \eTR ... \eTABLE with success. Note, however, if I move the settings to \bTABLE [framecolor=white,rulethickness=.25em,...] this will then interfere and wipe-out the columndistance=.25em setting! I can get it to work (with a subtly different result) if I use: \bTABLE [rulethickness=.25em,columndistance=.5em] ... \bTR [topframe=on,framecolor=white] ... \eTR ... \eTABLE and this makes sense (since the calculation of cell widths must take into account all of rulethickness, offset, and columndistance) but it is somewhat counter-intuitive. I'll wiki-fy this... Alan
Alan BRASLAU mailto:alan.braslau@cea.fr 2. Dezember 2015 um 17:25 On Mon, 30 Nov 2015 13:23:28 +0100
Thanks Wolfgang.
boffset (or toffset) works to offset the text in an individual cell. But when using background=color,backgroundcolor=lightgray (for example), this offset of course gets colored. You can take care of this when you use metapost to draw the frame and background.
Wolfgang
participants (2)
-
Alan BRASLAU
-
Wolfgang Schuster