[NTG-context] Red framed text

Jilani Khaldi jilani.khaldi1 at virgilio.it
Thu Dec 22 23:36:37 CET 2005


> \setupcolors[state=start]
>
> \startuniqueMPgraphic{shadow}
>    fill OverlayBox shifted (3pt,-3pt) withcolor .8white ;
>    fill OverlayBox withcolor white ;
>    draw OverlayBox withcolor red ;
>    setbounds currentpicture to OverlayBox ;
> \stopuniqueMPgraphic
>
> \defineoverlay[shadow][\uniqueMPgraphic{shadow}]
>
> \framed
>  [align=middle,background=shadow,frame=off]
>  {\input tufte \relax}
>
> \blank
>
> \framed
>  [align=middle,background=shadow,frame=off]
>  {\input zapf \relax}
>
Very nice! Thank you.

jk

-- 
Jilani KHALDI
http://jkhaldi.oltrelinux.com



More information about the ntg-context mailing list