ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Dmitriy Tokarev <dtkrv@ya.ru>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [***SPAM***] Shifting table header when using overlay
Date: Mon, 15 Jul 2013 11:38:59 +0600	[thread overview]
Message-ID: <279901373866739@web17e.yandex.ru> (raw)

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

                 reply	other threads:[~2013-07-15  5:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=279901373866739@web17e.yandex.ru \
    --to=dtkrv@ya.ru \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).