![](https://secure.gravatar.com/avatar/e79f226aa442b589932230491affa641.jpg?s=120&d=mm&r=g)
Hi, is there a command for \framed and \inframed like for \setupunderbar[alternative=b]: that gives a dotted (bottom) line? Thank you, Steffen
![](https://secure.gravatar.com/avatar/acc6b0588183256c162465e3dfcaa15b.jpg?s=120&d=mm&r=g)
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 -- Eckhart
![](https://secure.gravatar.com/avatar/6af06dcf5f958fe4ec149408292d6acd.jpg?s=120&d=mm&r=g)
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
participants (3)
-
Eckhart Guthöhrlein
-
Steffen Wolfrum
-
Willi Egger