[NTG-context] TABLE: Problem with column widths

Lukáš Procházka LPr at pontex.cz
Sat Jul 23 00:09:28 CEST 2016


Hello,

I'd like to typeset a very simple natural table:

- table width to be "maximum of the current scope" (typically \textwidth) (option = stretch)
- 1st column to have width of 1 in,
- 2nd column to have (maximum) remaining width (typically \textwidth - 1 in)

Let's have two (almost identical) TABLEs - the only difference is that the latter inputs zapf whilst the former doesn't:

----
%\showframe
\starttext
   Table 1:

   \bTABLE[option=stretch]
     \setupTABLE[column][1][width=1in]
     \bTR
       \bTD Col1 \eTD
       \bTD
         %\input zapf % !!!
       \eTD
     \eTR
     \bTR \bTD Col1 \eTD \bTD abc \eTD \eTR
   \eTABLE

   \blank

   Table 2:

   \bTABLE[option=stretch]
     \setupTABLE[column][1][width=1in]
     \bTR
       \bTD Col1 \eTD
       \bTD
         \input zapf
       \eTD
     \eTR
     \bTR \bTD Col1 \eTD \bTD abc \eTD \eTR
   \eTABLE
\stoptext
----

What's wrong with the Table 1? Its first column should have width of 1 in!?

Best regards,

Lukas


-- 
Ing. Lukáš Procházka | mailto:LPr at pontex.cz
Pontex s. r. o.      | mailto:pontex at pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Table2.mkiv
Type: application/octet-stream
Size: 501 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20160723/779debec/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Table2.pdf
Type: application/pdf
Size: 9275 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20160723/779debec/attachment.pdf>


More information about the ntg-context mailing list