[NTG-context] Preserve line height with TABLE

Andreas Harder aharder at uni-koblenz.de
Wed Dec 21 13:24:20 CET 2011


Hi,

is there a way to mimic the tabulate behavior with TABLE (or xtable)?

\starttext

\def\HtTest#1%
  {\setbox\scratchbox\vbox{#1}hight=\the\ht\scratchbox\par\vbox{#1}\blank}

\HtTest{\strut
(Äg) first line\par
second line\par
(Äg) third line}

\setuptabulate[before=,after=,]
\HtTest{\starttabulate[|l|]
\NC (Äg) first line  \NC\NR
\NC second line      \NC\NR
\NC (Äg) third line  \NC\NR
\stoptabulate}

\HtTest{\bTABLE[frame=off,offset=overlay,left=\strut] % ,rulethickness=0pt
\bTR\bTD (Äg) first line  \eTD\eTR
\bTR\bTD second line      \eTD\eTR
\bTR\bTD (Äg) third line  \eTD\eTR
\eTABLE}

\HtTest{\startembeddedxtable[frame=off,offset=overlay]
  \startxrow \startxcell (Äg) first line \stopxcell \stopxrow
  \startxrow \startxcell second line     \stopxcell \stopxrow
  \startxrow \startxcell (Äg) third line \stopxcell \stopxrow
\stopembeddedxtable}

\stoptext


Thanks in advance
	Andreas


More information about the ntg-context mailing list