Peter Münster wrote:

Do you know, if this is possible with TABLE:

\starttext
\SetTableToWidth{10cm}
\starttable[|c|c|c|]
\HL
\VL xxxxxxxxxxxxxxx \VL xxxxxxx \VL x \VL\AR
\HL
\stoptable
\stoptext

Cheers, Peter


Hmm, I change a little your code to better understand it

\starttext
\SetTableToWidth{10cm}
\setbox100=\vbox{\starttable[|c|c|c|]
\HL
\VL xxxxxxxxxxxxxxx  xxxxxxxxxxxxxxx \VL xxxxxxx xxxxxxx \VL x x \VL\AR
\HL
\stoptable}
\starttyping
\SetTableToWidth{10cm}
\setbox100=\vbox{%
\starttable[|c|c|c|]
\HL
\VL xxxxxxxxxxxxxxx  xxxxxxxxxxxxxxx \VL xxxxxxx xxxxxxx \VL x x \VL\AR
\HL
\stoptable}
\stoptyping

\type{\wd100=}{\tt \PtToCm{\wd100}}\par
\type{\ruledvbox{\unvbox100}:}\par
\ruledvbox{\unvbox100}
\stoptext

and I see on log
Overfull \hbox (11.63779pt too wide) in paragraph at lines 14--14
[][]\*12pttttf* \VL[] []xxxxxxxxxxxxxxx[] [][] []xxxxxxxxxxxxxxx[] []\VL[] []xx
xxxxx[] []xxxxxxx[] []\VL[] []x[] []x[] []\VL\AR


If I fix table width, I must care about cell content to avoid overfull hbox;
so fix table width is useless, because I have already calculate by fixing cell content.


I will look into natural table to see something similar to \SetTableToWidth




luigi

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to