On Thu, 29 Mar 2007 23:16:43 -0400
"Brian R. Landy"
I had played around with strut=yes, but had not realized I also needed to set autostrut=no. That approach ended up working best; my initial solution broke aligncharacter, and I like the table environment to reset. It is a bit odd that it resets to something different than the default.
As an aside, what books are good for learning TeX programming for ConTeXt? Anything besides the TeXBook (and I saw TeX by Topic mentioned on the list the other day).
Thanks again, Brian
Hi Brian, the best method to control nested tables is by integrating a setup command for nested tables. \unprotect \def\setupresetTABLE {\dodoubleargument\getparameters[\@@tbl\@@tbl\@@tbl]} \def\resetallTABLEparameters% moet genest wel werken {\ifnum\TBLlevel>\plusone % in ieder geval \ifconditional\resetTABLEmode \presetlocalframed % breedte hoogte diepte offset [\@@tbl\@@tbl]% % achtergrond, achtergrondraster, achtergrondkleur \copyparameters [\@@tbl\@@tbl][\@@tbl\@@tbl\@@tbl] [\c!frameoffset,\c!backgroundoffset,\c!framecolor,\c!color, \c!strut,\c!autostrut,\c!aligncharacter,\c!alignmentcharacter, \c!style,\c!option,\c!maxwidth,\c!textwidth,\c!left,\c!right] \else \setupTABLE [\c!width=\v!fit, \c!height=\v!fit]% \fi \fi} \setupresetTABLE [\c!frameoffset=.5\linewidth, \c!backgroundoffset=\v!frame, \c!framecolor=\s!black, \c!color=, \c!style=, \c!strut=\v!yes, \c!autostrut=\v!no, \c!aligncharacter=\v!no, \c!alignmentcharacter={,}, \c!option=, \c!maxwidth=8em, \c!textwidth=\hsize, \c!left=, \c!right=] \protect \starttext \bTABLE \bTR \bTD {\bTABLE \bTR \bTD SSSS \eTD \bTD Swap \eTD \eTR \eTABLE} \eTD \eTR \eTABLE \stoptext Wolfgang