Problems with Natural Tables

Hello ConTeXters, my girlfriend writes her dimploma thesis now and I talked her into using ConTeXt, but now I'm not sure anymore that this was the right thing to do. So, the problems are numerous and some of them are: - how do I set the spacing between a vertical line (between two columns) and the text inside that columns? I already used "framedoffest=-3pt", but the output is unacceptable. - how do I center the whole table? This one is really crucial: my GF also accepts hacks ;). - why doesn't \splitfloat{\placetable...} work with Natural Tables? (They won't get splitted at all, but with tables and linetables it works...) - how do I refer to tables then? I have chosen Natural Tables because they were the only one that splitted correctly (tables and linetables let out 2/3 of a page). So, that's all for now. bye, Adam.

Am Sonntag, den 14.08.2005, 17:17 +0200 schrieb Adam Duck:
Spacing is a weak point of natural tables. Afaik, there is no good way to tune spacing. I would try using dummy colums like \bTD[width=1em]\eTD.
- how do I center the whole table? This one is really crucial: my GF also accepts hacks ;).
\midaligned{..} works
\setupTABLE[split=yes] or \setupTABLE[split=repeat]
- how do I refer to tables then?
If you don't put them in \placetable -- I don't know. -- Eckhart

Eckhart Guthöhrlein wrote:
Yes, I was also thinking about that. Perhaps adding lefttext= and righttext= params to \framed (since table cell is framed) solves some problem. Imagine: \setupTABLE[column][1,2][align=right,lefttext=\hskip.5em] or \setupTABLE[column][3][align=left,righttext=\hskip5pt$\bullet$] ... \bTABLE \eTABLE vit

Vit Zyka wrote:
probably a distance parameter then (unrelated to framed); it's slightly more complex than you think because we need to take spans into account (so it shows up in prerolls etc) but it's doable 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 -----------------------------------------------------------------

Eckhart Guthöhrlein
gives ERROR: Missing } inserted. --- TeX said --- <inserted text> } <to be read again> \unvcopy \splittblboxa ...p \page \egroup \fi \fi \unvcopy 2 \ifcase \noftblnextlines... \splittblbox ...tblsplitmethod }\splittblboxa {#1} \fi \eTABLE ...}}\eTBL }\removeunwantedspaces \endTBL \stopTBLprocessing \egroup... l.11 \eTABLE } and \startalignment[middle]...\stopalignment doesn't seem to do anything in that case.
doesn't split the table. The output looks exactly like the \midaligned{} one. bye, Adam.

Adam Duck wrote:
a next release will support: \input core-ntb-new.tex \starttext \showframe \setupTABLE[c][1][distance=2em] \setupTABLE[c][2][distance=3em] \bTABLE \bTR \bTD test \eTD \bTD test \eTD \bTD test \eTD \eTR \bTR \bTD[nx=2] test \eTD \bTD test \eTD \eTR \bTR \bTD test \eTD \bTD[nx=2] test \eTD \eTR \eTABLE \bTABLE[option=stretch] \bTR \bTD test \eTD \bTD test \eTD \bTD test \eTD \eTR \bTR \bTD[nx=2] test \eTD \bTD test \eTD \eTR \bTR \bTD test \eTD \bTD[nx=2] test \eTD \eTR \eTABLE \stoptext ----------------------------------------------------------------- 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 -----------------------------------------------------------------

Adam Duck wrote:
soon, for the moment just \input the file i sent you
you set distances after the column (so, [c][1] means "after column 1" with the last column ignored; doing left/right take a bit more code and time so maybe some day 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 -----------------------------------------------------------------

Hans Hagen wrote:
That is needed improvement of natural tables, thanks Hans. --- - In my vz-new.tex is another simple improvement of nat tables. Perhaps it can be also incorporated: ---------------------------------- \long\def\parseTH[#1]#2\eTH {\parseTD[#1,\c!color=\tbltblheadcolor,\c!style=\tbltblheadstyle, \c!align=\tbltblheadalign,\c!aligncharacter=\v!no]#2\eTD} ---------------------------------- See additional \c!align=\tbltblheadalign - and what about nc=max? = Span as much as columns as there are to the end of line. vit

Adam Duck wrote:
we need small examples showing/solving the problems 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 -----------------------------------------------------------------
participants (4)
-
Adam Duck
-
Eckhart Guthöhrlein
-
Hans Hagen
-
Vit Zyka