> It’s the same as in the past, use MetaPost but there are better ways to 
> change values of certain borders:
As much as I like and prefer this solution, I can't get it to work as the old 
one.

With the old one I had a frame 1pt, and just made a 2pt metapost frame around 
the last row.

With the new example of yours I've came up with a minimal example that I've 
attached.
I have to do the table setups, since I'm making the table via a macro, but for 
the simplicity I left that out from the minimal example.
The problem is, that every even row seems to have thicker right/left and top 
borders, why is that?

With both solution if I just draw a thicker bottom line it goes off on the 
right and left side. Can this be solved somehow?

Thanks,
Adam
\startuseMPgraphic{tableborders}
draw leftboundary OverlayBox withpen pensquare scaled \frameddimension{leftrulethickness};
draw rightboundary OverlayBox withpen pensquare scaled \frameddimension{rightrulethickness};
draw topboundary OverlayBox withpen pensquare scaled \frameddimension{toprulethickness};
draw bottomboundary OverlayBox withpen pensquare scaled \frameddimension{bottomrulethickness};
setbounds currentpicture to OverlayBox ;
\stopuseMPgraphic
\defineoverlay[tableborders][\useMPgraphic{tableborders}]

\setupTABLE
  [background={color,tableborders},
   frame=off,
   leftrulethickness=\framedparameter{rulethickness},
   rightrulethickness=\framedparameter{rulethickness},
   toprulethickness=\framedparameter{rulethickness},
   bottomrulethickness=\framedparameter{rulethickness}]

\starttext
\setupTABLE[row][odd][background={color,tableborders},backgroundcolor=lightgray]
\setupTABLE[row][first][background={color,tableborders},backgroundcolor=gray,bottomrulethickness=2pt]
\setupTABLE[row][last][background={color,tableborders},toprulethickness=2pt,bottomrulethickness=2pt]
\setupTABLE[first][last][background={color,tableborders},leftrulethickness=2pt]
\setupTABLE[last][last][background={color,tableborders},rightrulethickness=2pt]

\bTABLE
\bTR
\bTD 1One \eTD
\bTD 1Two \eTD
\bTD 1Three \eTD
\eTR
\bTR
\bTD 2One \eTD
\bTD 2Two \eTD
\bTD 2Three \eTD
\eTR
\bTR
\bTD 3One \eTD
\bTD 3Two \eTD
\bTD 3Three \eTD
\eTR
\bTR
\bTD 4One \eTD
\bTD 4Two \eTD
\bTD 4Three \eTD
\eTR
\bTR
\bTD 5One \eTD
\bTD 5Two \eTD
\bTD 5Three \eTD
\eTR
\bTR
\bTD 5One \eTD
\bTD 5Two \eTD
\bTD 5Three \eTD
\eTR
\bTR
\bTD 6One \eTD
\bTD 6Two \eTD
\bTD 6Three \eTD
\eTR
\bTR
\bTD 7One \eTD
\bTD 7Two \eTD
\bTD 7Three \eTD
\eTR
\eTABLE
\stoptext
___________________________________________________________________________________
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 via email to