Re: [NTG-context] TABLE border width for row

2010-09-03 Thread Wolfgang Schuster

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 topboundaryOverlayBox withpen pensquare scaled 2pt ;
draw bottomboundary OverlayBox withpen pensquare scaled 2pt ;
setbounds currentpicture to OverlayBox ;
\stopuniqueMPgraphic

\startuniqueMPgraphic{row:middle}
draw topboundaryOverlayBox 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 topboundaryOverlayBox 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
___


[NTG-context] TABLE border width for row

2010-09-02 Thread 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?



\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
___