ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* TABLE border width for row
@ 2010-09-02 20:47 Jan Pohanka
  2010-09-03  9:09 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Pohanka @ 2010-09-02 20:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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?


\setupTABLE[r][2][rulethickness=2pt]
\bTABLE
  \bTR
    \bTD \eTD  \bTD \eTD  \bTD \eTD
  \eTR

  \bTR
    \bTD \eTD  \bTD \eTD  \bTD \eTD
  \eTR


  \bTR
    \bTD \eTD  \bTD \eTD  \bTD \eTD
  \eTR
\eTABLE


best regards
Jan

-- 
Tato zpráva byla vytvořena převratným poštovním klientem Opery:  
http://www.opera.com/mail/
___________________________________________________________________________________
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] 2+ messages in thread

* Re: TABLE border width for row
  2010-09-02 20:47 TABLE border width for row Jan Pohanka
@ 2010-09-03  9:09 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2010-09-03  9:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-09-03  9:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-02 20:47 TABLE border width for row Jan Pohanka
2010-09-03  9:09 ` Wolfgang Schuster

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