ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* rulethickness in \setupTABLE
@ 2006-02-04 16:08 Peter Münster
  2006-02-06 14:10 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Münster @ 2006-02-04 16:08 UTC (permalink / raw)


Hello,
I have 2 rows, and I would like to have a thick rule on the top and the
bottom of the table, and in the middle a thin rule. I do this the following
way:

\starttext
\setupTABLE[frame=off]
\setupTABLE[r][1][topframe=on,rulethickness=1pt]
\setupTABLE[r][2][topframe=on,rulethickness=0.3pt,offset=0pt,height=0pt]
\setupTABLE[r][3][bottomframe=on,rulethickness=1pt]
\bTABLE
\bTR \bTD bla \eTD \eTR
\bTR \eTR
\bTR \bTD bla \eTD \eTR
\eTABLE
\stoptext

Is there a cleaner way to achieve this?

Cheers, Peter

-- 
http://pmrb.free.fr/contact/

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

* Re: rulethickness in \setupTABLE
  2006-02-04 16:08 rulethickness in \setupTABLE Peter Münster
@ 2006-02-06 14:10 ` Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2006-02-06 14:10 UTC (permalink / raw)


� wrote:
> Hello,
> I have 2 rows, and I would like to have a thick rule on the top and the
> bottom of the table, and in the middle a thin rule. I do this the following
> way:
>
> \starttext
> \setupTABLE[frame=off]
> \setupTABLE[r][1][topframe=on,rulethickness=1pt]
> \setupTABLE[r][2][topframe=on,rulethickness=0.3pt,offset=0pt,height=0pt]
> \setupTABLE[r][3][bottomframe=on,rulethickness=1pt]
> \bTABLE
> \bTR \bTD bla \eTD \eTR
> \bTR \eTR
> \bTR \bTD bla \eTD \eTR
> \eTABLE
> \stoptext
>
> Is there a cleaner way to achieve this?
>   
sure, use first and last and free yourself from counting

\setupTABLE[r][first][topframe=on,rulethickness=2pt]
\setupTABLE[r][2][topframe=on,rulethickness=0.3pt,offset=0pt,height=0pt]
\setupTABLE[r][last][bottomframe=on,rulethickness=2pt]

Hans 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

end of thread, other threads:[~2006-02-06 14:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-04 16:08 rulethickness in \setupTABLE Peter Münster
2006-02-06 14:10 ` Hans Hagen

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