Re: [NTG-context] \bTABLE[distance= or columndistance= ??]
� wrote: > Hello, > this is a repost, because I've the feeling, that this question got perhaps > unread: > > 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 in your patch. > i forgot -) how about global and per-column both were added due to some user request (and partly prototyped by others) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \bTABLE[distance= or columndistance= ??]
Hello, this is a repost, because I've the feeling, that this question got perhaps unread: 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 in your patch. Cheers, Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \bTABLE[distance=...]
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
Re: [NTG-context] \bTABLE[distance=...]
� wrote: > On Thu, 29 Jun 2006, Taco Hoekwater wrote: > > >>> % test: \advance\!!dimena-\gettbldis\recurselevel\relax >>> >>> you can enable that line in core-ntb and see what happens >>> >> works for me ... Peter? >> > > Yes, thanks! But the next issues follow immediately: > just consider leftmargindistance= and rightmargindistance= at the place of > distance=. > 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 etc etc - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \bTABLE[distance=...]
On Thu, 29 Jun 2006, Taco Hoekwater wrote: > > % test: \advance\!!dimena-\gettbldis\recurselevel\relax > > > > you can enable that line in core-ntb and see what happens > > works for me ... Peter? Yes, thanks! But the next issues follow immediately: just consider leftmargindistance= and rightmargindistance= at the place of distance=. Cheers, Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \bTABLE[distance=...]
Hans Hagen wrote: >>>Could this be done automatically? >> >>I expect it can (and should) be. Stuff sticking out in the margin >>is always bad ;-) >> > % test: \advance\!!dimena-\gettbldis\recurselevel\relax > > you can enable that line in core-ntb and see what happens works for me ... Peter? Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \bTABLE[distance=...]
Taco Hoekwater wrote: > Peter M�nster wrote: > >> Hello, >> >> when using \bTABLE[distance=...], the table gets wider than the textwidth. >> > > >> A workaround seems to be textwidth=\dimexpr\textwidth-3em\relax >> Could this be done automatically? >> > > I expect it can (and should) be. Stuff sticking out in the margin > is always bad ;-) > % test: \advance\!!dimena-\gettbldis\recurselevel\relax you can enable that line in core-ntb and see what happens Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \bTABLE[distance=...]
Peter Münster wrote: > Hello, > > when using \bTABLE[distance=...], the table gets wider than the textwidth. > > A workaround seems to be textwidth=\dimexpr\textwidth-3em\relax > Could this be done automatically? I expect it can (and should) be. Stuff sticking out in the margin is always bad ;-) Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \bTABLE[distance=...]
Hello, when using \bTABLE[distance=...], the table gets wider than the textwidth. Example: \starttext \input tufte \bTABLE \bTR\bTD bla bla bla bla\eTD\bTD \input tufte \eTD\eTR \eTABLE \bTABLE[distance=3em] \bTR\bTD bla bla bla bla\eTD\bTD \input tufte \eTD\eTR \eTABLE \input tufte \stoptext A workaround seems to be textwidth=\dimexpr\textwidth-3em\relax Could this be done automatically? Cheers, Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context