On Thu, 29 Jun 2006, Hans Hagen wrote:

> well, i let you consider and test the following -)
> 
> \def\dochecktblwidths#1%
>   {\iftraceTABLE\showtblwids{B#1}\fi
>    \!!dimena\hsize
>    \!!counta\zerocount
> % test, dunno yet
> \advance\!!dimena-\tbltblleftmargindistance
> \advance\!!dimena-\tbltblrightmargindistance
> \advance\!!dimena-\tbltblcolumndistance
>    \dorecurse\maximumcol
>      {\scratchdimen\gettblaut\recurselevel\relax
> % test, seems to work ok
> \advance\!!dimena-\gettbldis\recurselevel\relax

Thanks! All combinations of leftmargindistance, rightmargindistance and
distance seems to give the expected results.

What is the difference between distance and columndistance?
I thought the one was just a synonym for the other, but now I see, that you
treat them differently. And indeed, the result is different:

\starttext
\input tufte

\bTABLE[leftmargindistance=1em,rightmargindistance=1em,columndistance=2em]
\bTR\bTD bla bla bla bla\eTD\bTD bla bla bla bla\eTD\bTD
bla bla blabla bla blabla bla blabla bla blabla bla blabla bla blabla bla
blabla bla blabla bla blabla bla blabla bla blabla bla blabla bla
\eTD\eTR
\eTABLE

\bTABLE[leftmargindistance=1em,rightmargindistance=1em,distance=2em]
\bTR\bTD bla bla bla bla\eTD\bTD bla bla bla bla\eTD\bTD
bla bla blabla bla blabla bla blabla bla blabla bla blabla bla blabla bla
blabla bla blabla bla blabla bla blabla bla blabla bla blabla bla
\eTD\eTR
\eTABLE

\input tufte
\stoptext

If I change the line
\advance\!!dimena-\tbltblcolumndistance
to
\dorecurse{\numexpr\maximumcol-1\relax}{%
  \advance\!!dimena-\tbltblcolumndistance}%
it seems to work better...

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to