ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Table question
@ 2004-10-06  8:22 Thomas A.Schmitz
  2004-11-15 21:01 ` Thomas A.Schmitz
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas A.Schmitz @ 2004-10-06  8:22 UTC (permalink / raw)


Hi all,

quick question: does any of the table environments in ConTeXt (table, 
tables, TABLE, linetable) provide the possibility to have double lines 
separate some rows and columns?

A || B | C
__________
----------
D |  E | F

Thanks a lot!

Thomas

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: Table question
@ 2004-11-17 13:11 Peter Rolf
  2004-11-17 13:29 ` Thomas A. Schmitz
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Rolf @ 2004-11-17 13:11 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-12-03 14:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-06  8:22 Table question Thomas A.Schmitz
2004-11-15 21:01 ` Thomas A.Schmitz
2004-11-17 13:11 Peter Rolf
2004-11-17 13:29 ` Thomas A. Schmitz
2004-12-03 14:35   ` Patrick Gundlach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).