\eTABLE
</context>
== Rules with different thickness ==
There is only one value for all four borders. However, MetaPost can be used as a workaround until the separate "rulethickness" values are implemented.
The following example (mkiv only!) by Wolfgang Schuster shows a table using MetaPost for the rules:
<texcode>
\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} ;
clip currentpicture to OverlayBox
leftenlarged (\frameddimension {leftrulethickness}/2)
rightenlarged (\frameddimension {rightrulethickness}/2)
topenlarged (\frameddimension {toprulethickness}/2)
bottomenlarged (\frameddimension{bottomrulethickness}/2) ;
setbounds currentpicture to OverlayBox ;
\stopuseMPgraphic
\defineoverlay[tableborders][\useMPgraphic{tableborders}]
\startsetups tableborders
\setupTABLE
[ background={color,tableborders},
frame=off,
backgroundoffset=0pt,
leftrulethickness=\framedparameter{rulethickness},
rightrulethickness=\framedparameter{rulethickness},
toprulethickness=\framedparameter{rulethickness},
bottomrulethickness=\framedparameter{rulethickness}]
\setupTABLE[row] [odd] [backgroundcolor=lightgray]
\setupTABLE[row] [first][backgroundcolor=gray,bottomrulethickness=2pt]
\setupTABLE[row] [last] [toprulethickness=2pt,bottomrulethickness=2pt]
\setupTABLE[first][last] [leftrulethickness=2pt]
\setupTABLE[last] [last] [rightrulethickness=2pt]
\stopsetups
\starttext
\bTABLE
\dorecurse{7}{\bTR\dorecurse{3}{\bTD#1-##1\eTD}\eTR}
\eTABLE
\blank
\bTABLE[setups=tableborders]
\dorecurse{7}{\bTR\dorecurse{3}{\bTD#1-##1\eTD}\eTR}
\eTABLE
\stoptext
</texcode>
See the corresponding thread on the list: [http://www.ntg.nl/pipermail/ntg-context/2011/058549.html rules with different thickness]
== Using character alignment ==