Hi,
I am having a problem using nested natural tables, to which I have a
solution but feel that it my not be the proper approach. I'm pretty
much a TeX and ConTeXt novice.
The problem is that the row height it reduced when a table is nested,
breaking vertical text alignment across cells. In my example the
cells "SSSSS" and "Swap" to not align vertically due to the presence
of the "p". I have an example of the problem and my fix below.
I'm curious if someone knows a better way to fix this.
Thanks for your help,
Brian
\starttext
Working table:\par
\start
\bTABLE[frame=on,align={middle,lohi}]
\bTR
\bTD SSSSS \eTD
\bTD Swap \eTD
\eTR
\eTABLE
\stop
Nested table changes cell height, breaks text alignment with "lohi":\par
\start
\bTABLE[frame=on,height=0.50in]
\bTR
\bTD
{\start
\bTABLE[frame=on,align={middle,lohi}]
\bTR
\bTD SSSSS \eTD
\bTD Swap \eTD
\eTR
\eTABLE
\stop}
\eTD
\eTR
\eTABLE
\stop
setting height to baselineskip does not help:\par
\start
\bTABLE[frame=on,height=0.50in]
\bTR
\bTD
{\start
\bTABLE[height=\the\baselineskip,frame=on,align={middle,lohi}]
\bTR
\bTD SSSSS \eTD
\bTD Swap \eTD
\eTR
\eTABLE
\stop}
\eTD
\eTR
\eTABLE
\stop
One fix is a strut:\par
\start
\bTABLE[frame=on,height=0.50in]
\bTR
\bTD
{\start
\bTABLE[frame=on,align={middle,lohi}]
\bTR
\bTD \strut{SSSSS} \eTD
\bTD \strut{Swap} \eTD
\eTR
\eTABLE
\stop}
\eTD
\eTR
\eTABLE
\stop
\stoptext