From: Peter Rolf <indiego@gmx.net>
Subject: Re: Natural tables, rulethickness
Date: Sat, 04 Mar 2006 16:42:31 +0100 [thread overview]
Message-ID: <4409B567.20101@gmx.net> (raw)
In-Reply-To: <m24q2eqsi8.fsf@levana.de>
Hi Patrick,
Patrick Gundlach wrote:
> Hello,
>
> I have a (natural) table and I'd like to have three rules in that
> table. The toprule and the bottomrule should be .08em thick, the
> midrule 0.05em. What would be a way to achieve that? The example is
> incorrect.
>
>
> \starttext
>
> \setupTABLE[r][each][frame=off]
> \setupTABLE[r][first][topframe=on,rulethickness=.08em]
> \setupTABLE[r][first][bottomframe=on,rulethickness=.05em]
> \setupTABLE[r][last][bottomframe=on,rulethickness=.08em]
> \bTABLE
You can't use different frame sizes in the same frame (as in \framed). A
simple solution is
\setupTABLE[r][2][topframe=on,rulethickness=.05em]
instead of using a bottomframe. Or maybe better
\setupTABLE[r][first][topframe=on,rulethickness=.08em,
after={\hrule width\hsize height.05em}]
You can adjust the vertical spacing by using
\setupTABLE[r][first][topframe=on,rulethickness=.08em,
after={\hbox{\raise 5pt\hbox{\vrule width\hsize height.05em}}}]
But the second solution maybe has some unwanted sideeffects (page
breaks,..). I've tried to use \hrule in combination with 'before=', but
this does not work here. Hope this helps.
Greetings, Peter
> \bTR \bTD Lorem \eTD \bTD ipsum \eTD \bTD dolor sit \eTD \eTR
> \bTR \bTD amet \eTD \bTD[nc=2] consectetuer adipiscing elit \eTD \eTR
> \bTR \bTD 1 \eTD \bTD \eTD \bTD Donec hendrerit tempor tellus. Donec pretium posuere\eTD \eTR
> \bTR \bTD 2 \eTD \bTD \eTD \bTD tellus. Proin quam nisl, tincidunt
> et, mattis eget, convallis nec, \unknown \eTD \eTR
> \bTR \bTD \eTD \bTD[nc=2] purus. Cum sociis \eTD \eTR
> \bTR \bTD 3 (natoque) \eTD \bTD penatibus \eTD \bTD \eTD \eTR
> \bTR \bTD 5 \eTD \bTD[nc=2] et magnis dis \eTD \eTR
> \bTR \bTD 6 \eTD \bTD parturient \eTD \bTD montes, nascetur ridiculus \eTD \eTR
> \bTR \bTD \eTD \bTD mus \eTD \bTD Nulla posuere. Donec vitae dolor \eTD \eTR
> \eTABLE
> \stoptext
>
> Patrick
next prev parent reply other threads:[~2006-03-04 15:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-04 12:55 Patrick Gundlach
2006-03-04 15:42 ` Peter Rolf [this message]
2006-03-04 19:26 ` Peter Münster
2006-03-04 17:06 ` Peter Münster
2006-03-04 21:48 ` Patrick Gundlach
2006-03-06 1:01 ` Berend de Boer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4409B567.20101@gmx.net \
--to=indiego@gmx.net \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).