Hi All,

I'm trying to get a table header with such bottom border:
|============|

I plan to use an overlay to overlap the the internal borders of the cells. But 
in this case, the table header somehow slightly shifted to the left relative to 
the body (see attachment). Is it possible to remove this effect? Or maybe there 
is another way to achieve the desired border? Thanks.

\startuseMPgraphic{MP:thickBtm}
   draw (0,2pt)--(OverlayWidth,2pt) withpen pensquare scaled 1pt withcolor red;
   clip currentpicture to OverlayBox;
   setbounds currentpicture to OverlayBox;
\stopuseMPgraphic

\defineoverlay[OL:thickBtm][\useMPgraphic{MP:thickBtm}]

\starttext
 \bTABLE
   \setupTABLE[align=middle]
   \setupTABLE[header][background={foreground,OL:thickBtm}]
   %
   \bTABLEhead\bTR\dorecurse{3}{\bTH#1\eTH}\eTR\eTABLEhead
   \bTABLEbody\dorecurse{6}{\bTR\dorecurse{3}{\bTD#1-##1\eTD}\eTR}\eTABLEbody
 \eTABLE
\stoptext

--
Dmitriy

Attachment: table.pdf
Description: Adobe PDF document

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to