From: Willi Egger <w.egger@boede.nl>
Subject: Re: dotted line for \framed ?
Date: Sat, 23 Apr 2005 23:13:37 +0200 [thread overview]
Message-ID: <426ABA81.7030704@boede.nl> (raw)
In-Reply-To: <20050423120526.GA1556@cebitec.uni-bielefeld.de>
Hi,
humble, I was playing with this code. Yes there is a dotted line but
above the text. Looking up the issue in the Metafun manual page 112
results in the following solution:
\startuniqueMPgraphic{DottedFrame}
pickup pencircle scaled 1.5pt ;
path p ;
p := unitsquare xscaled \overlaywidth yscaled \overlayheight ;
% fill p withcolor .8white ;
draw bottomboundary p dashed withdots withcolor .625red ;
draw rightboundary p dashed withdots withcolor .625red ;
\stopuniqueMPgraphic
\defineoverlay[DotFrame][\uniqueMPgraphic{DottedFrame}]
\setupframedtexts[background=DotFrame,width=fit,frame=off,offest=3pt]
\starttext
\framedtext{How nice!}
\stoptext
Willi
Eckhart Guthöhrlein wrote:
> On Sat, 23 Apr 2005 at 10:59:14+0200, Steffen Wolfrum wrote:
>
>>is there a command for \framed and \inframed
>>like for \setupunderbar[alternative=b]:
>>
>>that gives a dotted (bottom) line?
>
>
> You could do this by using a metpost graphic as background. I'm in a
> hurry, so untested, but something similar should work.
>
> \startuniqueMPgraphic{DottedFrame}
> draw (0,0) --(\overlaywidth,0) dashed withdots;
> \stopuniqueMPgraphic
>
> \defineoverlay[DottedFrame]{\uniqueMPgraphic{DottedFrame}}
>
> \starttext
> \framed[frame=off,offset=overlay,background=DottedFrame]{How nice!}
> \stoptext
>
prev parent reply other threads:[~2005-04-23 21:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-23 8:59 Steffen Wolfrum
2005-04-23 12:05 ` Eckhart Guthöhrlein
2005-04-23 21:13 ` Willi Egger [this message]
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=426ABA81.7030704@boede.nl \
--to=w.egger@boede.nl \
--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).