[NTG-context] TABLE 'last line' tag?
nico
nicolas.marsgui at libertysurf.fr
Fri Apr 21 09:07:00 CEST 2006
On Thu, 20 Apr 2006 17:27:50 -0700, Johannes Graumann
<johannes_graumann at web.de> wrote:
> nico wrote:
>
>> Why don't you test if the attribute is set before applying it to the TR?
>> You see the problem on the last row, but the fact is that you force the
>> bottomframe clear for every row (which is dirty IMHO).
> It's not that easy, since the bottomframe - once set - is persistent ...
> so
> every row underneath my header (e.g.) will have 'bottomframe=on' set.
No, the options are local to the current level where it is set. If
bottomframe is on for one row, it won't set bottomframe to the next rows.
In the following example, only two rows (the header and another one in the
body) have local bottomframe on, and the last row bottomframe is done with
table setup:
\starttext
\setupTABLE[frame=off]
\setupTABLE[row][last][rulethickness=0.90pt,bottomframe=on]
\bTABLE
\bTABLEhead
\bTR[bottomframe=on]\bTH a \eTH\bTH b \eTH\eTR
\eTABLEhead
\bTABLEbody
\bTR\bTD bla \eTD\bTD bla \eTD\eTR
\bTR\bTD bla \eTD\bTD bla \eTD\eTR
\bTR\bTD bla \eTD\bTD bla \eTD\eTR
\bTR[bottomframe=on]\bTD bla \eTD\bTD bla \eTD\eTR
\bTR\bTD bla \eTD\bTD bla \eTD\eTR
\bTR\bTD bla \eTD\bTD bla \eTD\eTR
\eTABLEbody
\eTABLE
\stoptext
You can also put bottomframe only for a cell with
bTD[bottomframe=on]...\eTD.
Regards,
BG
More information about the ntg-context
mailing list