From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: TABLE border width for row
Date: Fri, 3 Sep 2010 11:09:49 +0200 [thread overview]
Message-ID: <4B7C83CB-B52E-4F50-BE0A-48CBC7E51B90@gmail.com> (raw)
In-Reply-To: <op.vifao8cmyxxkfz@julesd>
Am 02.09.2010 um 22:47 schrieb Jan Pohanka:
> Hello,
>
> is it possible to increase border width of single row (or column) without affecting "inner" (between cell) borders using TABLE macro?
>
> On the wiki, there is a solution for wider border around whole table using additional \framed, would work something similar for single row?
You can metapost to draw another border behind the cell.
\startuniqueMPgraphic{row:left}
draw leftboundary OverlayBox withpen pensquare scaled 2pt ;
draw topboundary OverlayBox withpen pensquare scaled 2pt ;
draw bottomboundary OverlayBox withpen pensquare scaled 2pt ;
setbounds currentpicture to OverlayBox ;
\stopuniqueMPgraphic
\startuniqueMPgraphic{row:middle}
draw topboundary OverlayBox withpen pensquare scaled 2pt ;
draw bottomboundary OverlayBox withpen pensquare scaled 2pt ;
setbounds currentpicture to OverlayBox ;
\stopuniqueMPgraphic
\startuniqueMPgraphic{row:right}
draw rightboundary OverlayBox withpen pensquare scaled 2pt ;
draw topboundary OverlayBox withpen pensquare scaled 2pt ;
draw bottomboundary OverlayBox withpen pensquare scaled 2pt ;
setbounds currentpicture to OverlayBox ;
\stopuniqueMPgraphic
\defineoverlay[row:left] [\uniqueMPgraphic{row:left}]
\defineoverlay[row:middle][\uniqueMPgraphic{row:middle}]
\defineoverlay[row:right] [\uniqueMPgraphic{row:right}]
\starttext
\setupTABLE[row] [2][background=row:middle]
\setupTABLE[first][2][background=row:left]
\setupTABLE[last] [2][background=row:right]
\bTABLE
\bTR
\bTD 1 \eTD\bTD 2 \eTD\bTD 3 \eTD
\eTR
\bTR
\bTD 4 \eTD\bTD 5 \eTD\bTD 6 \eTD
\eTR
\bTR
\bTD 7 \eTD\bTD 8 \eTD\bTD 9 \eTD
\eTR
\eTABLE
\stoptext
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2010-09-03 9:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-02 20:47 Jan Pohanka
2010-09-03 9:09 ` Wolfgang Schuster [this message]
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=4B7C83CB-B52E-4F50-BE0A-48CBC7E51B90@gmail.com \
--to=schuster.wolfgang@googlemail.com \
--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).