[NTG-context] frames in natural tables

2006-07-14 Thread wwl
Hallo!

In the following example with two nearly identical tables:
--
\starttext
\setupTABLE[r][each][frame=off]
\setupTABLE[r][first][bottomframe=on,rulethickness=.05em]
\bTABLE
\bTR \bTD Nr.\ \eTD \bTD Eintrag \eTD \eTR
\bTR \bTD 1 \eTD \bTD Bla \eTD  \eTR
\bTR \bTD 2 \eTD \bTD Blub \eTD \eTR
\bTR \bTD 3 \eTD \bTD Boing \eTD \eTR
\bTR \bTD 4 \eTD \bTD Blubber \eTD \eTR
\eTABLE
\blank
%\setupTABLE[frame=off]
\setupTABLE[r][first][bottomframe=off]
\bTABLE[frame=off]
\bTR \bTD Nr.\ \eTD \bTD Eintrag \eTD \eTR
\bTR \bTD 1 \eTD \bTD Bla \eTD  \eTR
\bTR \bTD 2 \eTD \bTD Blub \eTD \eTR
\bTR \bTD 3 \eTD \bTD Boing \eTD \eTR
\bTR \bTD 4 \eTD \bTD Blubber \eTD \eTR
\eTABLE
\stoptext
--

the first \setupTABLE[r][each][frame=off]
switched frames off 
and the second 
\setupTABLE[r][first][bottomframe=on,rulethickness=.05em]
switched the bottomframe on in the first row.

but

in the second table neighter

\setupTABLE[frame=off]

nor

\setupTABLE[r][each][frame=off]

switched frames off

the bottomframe in row 1 survives from the first table!

One has explicitly use

\setupTABLE[r][first][bottomframe=off]

to switch this frameline off too.

So,

1. Is there no general 'frame=off'?
2. Is the first \setupTABLE not really working? It should, because 
the defaults are 'frame=on', aren't they?

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


Re: [NTG-context] frames in natural tables

2006-07-14 Thread Hans Hagen
[EMAIL PROTECTED] wrote:
 in the second table neighter

 \setupTABLE[frame=off]

 nor

 \setupTABLE[r][each][frame=off]

 switched frames off

 the bottomframe in row 1 survives from the first table!

 One has explicitly use
   
use grouping

\start
\setupTABLE[r][each][frame=off]
\setupTABLE[r][first][bottomframe=on,rulethickness=.05em]
\bTABLE
\bTR \bTD Nr.\ \eTD \bTD Eintrag \eTD \eTR
\bTR \bTD 1 \eTD \bTD Bla \eTD  \eTR
\bTR \bTD 2 \eTD \bTD Blub \eTD \eTR
\bTR \bTD 3 \eTD \bTD Boing \eTD \eTR
\bTR \bTD 4 \eTD \bTD Blubber \eTD \eTR
\eTABLE
\stop

\blank

\start
\setupTABLE[r][first][bottomframe=off]
\bTABLE[frame=off]
\bTR \bTD Nr.\ \eTD \bTD Eintrag \eTD \eTR
\bTR \bTD 1 \eTD \bTD Bla \eTD  \eTR
\bTR \bTD 2 \eTD \bTD Blub \eTD \eTR
\bTR \bTD 3 \eTD \bTD Boing \eTD \eTR
\bTR \bTD 4 \eTD \bTD Blubber \eTD \eTR
\eTABLE
\stop

when no grouping is used settings are persistent; and a general 
setupTABLE will not replace row/col settings; see \setupTBLcell in 
core-ntb for the order of definitions and what kind of definitions take 
place

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