Hi, is there a command for \framed and \inframed like for \setupunderbar[alternative=b]: that gives a dotted (bottom) line? Thank you, Steffen
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
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