ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Losing frames in table
@ 2004-10-31 19:42 David Arnold
  2004-11-02 10:11 ` Willi Egger
  0 siblings, 1 reply; 4+ messages in thread
From: David Arnold @ 2004-10-31 19:42 UTC (permalink / raw)


All,

How come I don't get frames (rightframe=on, bottomframe=on) in my table
with this?

\setupTABLE[background=screen,screen=0.8,color=darkred,frame=off]
\setupTABLE[column][first][rightframe=on]
\setupTABLE[row][first][bottomframe=on]

\placetable[none]{}{%
\bTABLE[align={middle,lohi},width=3em]
\bTR \bTD $x$ \eTD \bTD $y$ \eTD \eTR
\bTR \bTD $x_1$ \eTD \bTD $y_1$ \eTD \eTR
\bTR \bTD $x_2$ \eTD \bTD $y_2$ \eTD \eTR
\bTR \bTD $\vdots$ \eTD \bTD $\vdots$ \eTD \eTR
\bTR \bTD $x_n$ \eTD \bTD $y_n$ \eTD \eTR
\eTABLE}

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

* Re: Losing frames in table
  2004-10-31 19:42 Losing frames in table David Arnold
@ 2004-11-02 10:11 ` Willi Egger
  2004-11-02 17:02   ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Willi Egger @ 2004-11-02 10:11 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 1163 bytes --]

Hi,

When testing your code, indeed there are no partial frames as setup by 
\setupTABLE. What I detected is, that you can only switch on the outer 
lines of the table

\setupTABLE[column][first][leftframe=on]%was:\setupTABLE[column][first][rightframe=on]
\setupTABLE[row][last][bottomframe=on]%was:\setupTABLE[row][first][bottomframe=on]

This is porbably something Hans should look at. I can't imagine that 
this is a feature :-)

Willi

David Arnold wrote:

> All,
> 
> How come I don't get frames (rightframe=on, bottomframe=on) in my table
> with this?
> 
> \setupTABLE[background=screen,screen=0.8,color=darkred,frame=off]
> \setupTABLE[column][first][rightframe=on]
> \setupTABLE[row][first][bottomframe=on]
> 
> \placetable[none]{}{%
> \bTABLE[align={middle,lohi},width=3em]
> \bTR \bTD $x$ \eTD \bTD $y$ \eTD \eTR
> \bTR \bTD $x_1$ \eTD \bTD $y_1$ \eTD \eTR
> \bTR \bTD $x_2$ \eTD \bTD $y_2$ \eTD \eTR
> \bTR \bTD $\vdots$ \eTD \bTD $\vdots$ \eTD \eTR
> \bTR \bTD $x_n$ \eTD \bTD $y_n$ \eTD \eTR
> \eTABLE}
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

[-- Attachment #2: Arnold-table.tex --]
[-- Type: text/plain, Size: 638 bytes --]

% Table test: frames
% David Arnold
% 1-11-2004

\setupoutput[pdftex]
\setupcolors[state=start]

\starttext

\setupTABLE[background=screen,screen=0.8,color=darkred,frame=off]
\setupTABLE[column][first][leftframe=on]%was:\setupTABLE[column][first][rightframe=on]
\setupTABLE[row][last][bottomframe=on]%was:\setupTABLE[row][first][bottomframe=on]

\placetable[none]{}{%
\bTABLE[align={middle,lohi},width=3em]
\bTR \bTD $x$ \eTD \bTD $y$ \eTD \eTR
\bTR \bTD $x_1$ \eTD \bTD $y_1$ \eTD \eTR
\bTR \bTD $x_2$ \eTD \bTD $y_2$ \eTD \eTR
\bTR \bTD $\vdots$ \eTD \bTD $\vdots$ \eTD \eTR
\bTR \bTD $x_n$ \eTD \bTD $y_n$ \eTD \eTR
\eTABLE}
\stoptext

[-- Attachment #3: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: Losing frames in table
  2004-11-02 10:11 ` Willi Egger
@ 2004-11-02 17:02   ` Hans Hagen
  2004-11-03 19:21     ` Willi Egger
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2004-11-02 17:02 UTC (permalink / raw)


Willi Egger wrote:

> Hi,
> 
> When testing your code, indeed there are no partial frames as setup by 
> \setupTABLE. What I detected is, that you can only switch on the outer 
> lines of the table
> 
> \setupTABLE[column][first][leftframe=on]%was:\setupTABLE[column][first][rightframe=on] 
> 
> \setupTABLE[row][last][bottomframe=on]%was:\setupTABLE[row][first][bottomframe=on] 
> 
> 
> This is porbably something Hans should look at. I can't imagine that 
> this is a feature :-)

it's a side effect of table cells overlapping the linewidth

\setupTABLE[background=screen,screen=0.8,color=darkred,frame=off]
\setupTABLE[column][2][leftframe=on]
\setupTABLE[row]   [2][topframe=on]

shows that. An alternative is:

\setupTABLE[frame=off]
\setupTABLE[column][1][rightframe=on]
\setupTABLE[row]   [1][bottomframe=on]

\setupfloat[table][background=screen,screen=0.8,color=darkred]

\placetable
   {}
   {\bTABLE[align={middle,lohi},width=3em]
    \bTR \bTD $x$      \eTD \bTD $y$ \eTD \eTR
    \bTR \bTD $x_1$    \eTD \bTD $y_1$ \eTD \eTR
    \bTR \bTD $x_2$    \eTD \bTD $y_2$ \eTD \eTR
    \bTR \bTD $\vdots$ \eTD \bTD $\vdots$ \eTD \eTR
    \bTR \bTD $x_n$    \eTD \bTD $y_n$ \eTD \eTR
    \eTABLE}

Hans



-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------

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

* Re: Losing frames in table
  2004-11-02 17:02   ` Hans Hagen
@ 2004-11-03 19:21     ` Willi Egger
  0 siblings, 0 replies; 4+ messages in thread
From: Willi Egger @ 2004-11-03 19:21 UTC (permalink / raw)


Hi,

Hans Hagen wrote:
> Willi Egger wrote:
> 
>> Hi,
>>
>> When testing your code, indeed there are no partial frames as setup by 
>> \setupTABLE. What I detected is, that you can only switch on the outer 
>> lines of the table
>>
>> \setupTABLE[column][first][leftframe=on]%was:\setupTABLE[column][first][rightframe=on] 
>>
>> \setupTABLE[row][last][bottomframe=on]%was:\setupTABLE[row][first][bottomframe=on] 
>>
>>
>> This is porbably something Hans should look at. I can't imagine that 
>> this is a feature :-)
> 
> 
> it's a side effect of table cells overlapping the linewidth
> 
> \setupTABLE[background=screen,screen=0.8,color=darkred,frame=off]
> \setupTABLE[column][2][leftframe=on]
> \setupTABLE[row]   [2][topframe=on]
> 
Indeed, this snippet works and gives two dividing lines within the table.

> shows that. An alternative is:
> 
> \setupTABLE[frame=off]
> \setupTABLE[column][1][rightframe=on]
> \setupTABLE[row]   [1][bottomframe=on]
> 
Still, I do not understand this, when setting up the table with the 
above options, no lines do show up.???

Willi
> \setupfloat[table][background=screen,screen=0.8,color=darkred]
> 
> \placetable
>   {}
>   {\bTABLE[align={middle,lohi},width=3em]
>    \bTR \bTD $x$      \eTD \bTD $y$ \eTD \eTR
>    \bTR \bTD $x_1$    \eTD \bTD $y_1$ \eTD \eTR
>    \bTR \bTD $x_2$    \eTD \bTD $y_2$ \eTD \eTR
>    \bTR \bTD $\vdots$ \eTD \bTD $\vdots$ \eTD \eTR
>    \bTR \bTD $x_n$    \eTD \bTD $y_n$ \eTD \eTR
>    \eTABLE}
> 
> Hans
> 
> 
> 
> -----------------------------------------------------------------
>                                           Hans Hagen | PRAGMA ADE
>               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
>                                              | www.pragma-pod.nl
> -----------------------------------------------------------------
> 
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

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

end of thread, other threads:[~2004-11-03 19:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-31 19:42 Losing frames in table David Arnold
2004-11-02 10:11 ` Willi Egger
2004-11-02 17:02   ` Hans Hagen
2004-11-03 19:21     ` Willi Egger

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).