[NTG-context] dotted line for \framed ?

Eckhart Guthöhrlein eckhart.guthoehrlein at uni-bielefeld.de
Sat Apr 23 14:05:26 CEST 2005


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


More information about the ntg-context mailing list