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
Holy cow, this was it! Thanks so much, this works! Wonderful, now I get the tables I always wated. Hope this might help other people, too. Patrick, would this be of interest for the wiki? Best, thanks so much Thomas On Nov 17, 2004, at 2:11 PM, Peter Rolf wrote:
Hello Thomas,
it works here :)
Just add "offset=overlay" to your TABLE setup. Greetings,
Peter
"Thomas A. Schmitz"
Holy cow, this was it! Thanks so much, this works! Wonderful, now I get the tables I always wated. Hope this might help other people, too. Patrick, would this be of interest for the wiki?
Hi, I don't know if this is in the manuals, or not. If it is (and you just missed it), then I see no point in duplicating the documentation (now). If it isn't and you find a place where it fits, go ahead! This is just my opinion, but the wiki is open to anybodys opionion out there. Patrick -- ConTeXt wiki: http://contextgarden.net
participants (3)
-
Patrick Gundlach
-
Peter Rolf
-
Thomas A. Schmitz