ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [***SPAM***] Shifting table header when using overlay
@ 2013-07-15  5:38 Dmitriy Tokarev
  0 siblings, 0 replies; only message in thread
From: Dmitriy Tokarev @ 2013-07-15  5:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

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 #2: table.pdf --]
[-- Type: application/pdf, Size: 7783 bytes --]

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

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-07-15  5:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-15  5:38 [***SPAM***] Shifting table header when using overlay Dmitriy Tokarev

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