Re: [NTG-context] Table question

2004-11-17 Thread Peter Rolf
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
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Table question

2004-11-17 Thread 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?

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
___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context