* dotted line for \framed ?
@ 2005-04-23 8:59 Steffen Wolfrum
2005-04-23 12:05 ` Eckhart Guthöhrlein
0 siblings, 1 reply; 3+ messages in thread
From: Steffen Wolfrum @ 2005-04-23 8:59 UTC (permalink / raw)
Hi,
is there a command for \framed and \inframed
like for \setupunderbar[alternative=b]:
that gives a dotted (bottom) line?
Thank you,
Steffen
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: dotted line for \framed ?
2005-04-23 8:59 dotted line for \framed ? Steffen Wolfrum
@ 2005-04-23 12:05 ` Eckhart Guthöhrlein
2005-04-23 21:13 ` Willi Egger
0 siblings, 1 reply; 3+ messages in thread
From: Eckhart Guthöhrlein @ 2005-04-23 12:05 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: dotted line for \framed ?
2005-04-23 12:05 ` Eckhart Guthöhrlein
@ 2005-04-23 21:13 ` Willi Egger
0 siblings, 0 replies; 3+ messages in thread
From: Willi Egger @ 2005-04-23 21:13 UTC (permalink / raw)
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
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-04-23 21:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-23 8:59 dotted line for \framed ? Steffen Wolfrum
2005-04-23 12:05 ` Eckhart Guthöhrlein
2005-04-23 21:13 ` Willi Egger
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).