Hello Thomas, Thomas A.Schmitz wrote:
OK, I'm answering my own question from October: by shamelessly copying and adapting code from enattab, I managed to get double lines in tables, and I'm almost there. I guess real texnicians would call it a dirty hack, but it does what I want. Could anybody test this code:
it works here :)
\starttext
....
\bTABLE[width=.25\textwidth,frame=off] \bTR \bTD \framed[width=.25\textwidth,height=4.5ex,background=c11,frame=off]{A}
\bTABLE[width=.25\textwidth, frame=off, offset=overlay] ... ^^^
\eTD \bTD[align=middle] \framed[width=.25\textwidth,height=4.5ex,background=c12,frame=off]{B} \eTD \bTD[align=middle] \framed[width=.25\textwidth,height=4.5ex,background=c13,frame=off]{C} \eTD \bTD[align=middle] \framed[width=.25\textwidth,height=4.5ex,background=c14,frame=off]{D} \eTD \eTR \bTR \bTD[align=middle] \framed[width=.25\textwidth,height=4.5ex,background=c21,frame=off]{E} \eTD \bTD[align=middle] \framed[width=.25\textwidth,height=4.5ex,background=c22,frame=off]{F} \eTD \bTD[align=middle] \framed[width=.25\textwidth,height=4.5ex,background=c21,frame=off]{G} \eTD \bTD[align=middle] \framed[width=.25\textwidth,height=4.5ex,background=c24,frame=off]{H} \eTD \eTR \bTR\bTD[align=middle] \framed[width=.25\textwidth,height=4.5ex,background=c21,frame=off]{I} \eTD \bTD[align=middle] \framed[width=.25\textwidth,height=4.5ex,background=c22,frame=off]{K} \eTD \bTD[align=middle] \framed[width=.25\textwidth,height=4.5ex,background=c21,frame=off]{L} \eTD \bTD[align=middle] \framed[width=.25\textwidth,height=4.5ex,background=c24,frame=off]{M} \eTD \eTR \eTABLE
\stoptext
As you can see, the only problem is that there is a small gap between the rows in the table. Is there a way how this gap can be closed?
Just add "offset=overlay" to your TABLE setup. Greetings, Peter