Kirill Davidov schrieb am 14.10.2024 um 10:12:
Greetings,

TABLE uses framed extensively to make its cells. it adds all sorts of
offsets and paddings (especially vertical) to cells that annoy me
greatly. i'd like to set up TABLEs to have the same vertical spacing as
a regular tabulate table or even halign, but i keep getting lost in the
options for both TABLE and framed. which ones do i need? i'd like it to
play nice with interline spacing options as well.

You can improve the layout of natural tables (and extreme tables) when you set the offset value to 0pt. Horizontal space between the columns can be either added with the columndistance key or by adding loffset and roffset values.

To use \halign use \aligntab as replacement for &.

%%%% begin example
\setupinterlinespace[line=3.5ex]

\startdocument

\halign\bgroup

\hss\aligncontent\removeunwantedspaces\tabskip\emwidth\aligntab\tabskip\zeropoint\aligncontent\cr
  text     \aligntab more text\cr
  more text\aligntab text     \cr
\egroup


\starttabulate[|r|l|]
\NC text      \NC more text \NC\NR
\NC more text \NC text      \NC\NR
\stoptabulate

\setupTABLE[frame=off,offset=0pt,columndistance=1em,rulethickness=0pt]
\setupTABLE[column][1][align=flushright]
\setupTABLE[column][2][align=flushleft]
\bTABLE
  \bTR \bTD text      \eTD \bTD more text \eTD \eTR
  \bTR \bTD more text \eTD \bTD text      \eTD \eTR
\eTABLE

\stopdocument
%%%% end example

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to