From: Hans Hagen <pragma@wxs.nl>
Cc: ntg-context@ntg.nl
Subject: Re: shadowed frame in ConTeXt
Date: Tue, 17 Dec 2002 10:16:39 +0100 [thread overview]
Message-ID: <5.1.0.14.1.20021217100038.0342f1b0@server-1> (raw)
In-Reply-To: <005b01c2a59f$05918080$e000a8c0@capital.com>
At 03:36 PM 12/17/2002 +0800, you wrote:
>Is there any options to set shadowed frame (like the \usepackage{shadow} in
>
>(the \shadowbox in latex sets the shadow under the bottom and to right side
>of the frame, sometimes we need to set the shadow in another place,
>for example, right side and under the bottom, or over the top and right
>side.)
Take your choice
\starttext
\startbuffer
\framed[background=shadow,frame=off]{Does it work}
\vskip1cm
\framed[background=shadow,frame=off,align=right]{Does\\it\\work}
\vskip1cm
\stopbuffer
\defineoverlay[shadow][\uniqueMPgraphic{shadow}]
\startuniqueMPgraphic{xshadow}
linejoin := butt ;
fill OverlayBox shifted (2pt,-2pt)
withpen pencircle scaled 2pt
withcolor .7white ;
fill OverlayBox
withcolor white ;
draw OverlayBox
withpen pencircle scaled 2pt
withcolor .3white ;
setbounds currentpicture to OverlayBox enlarged 4pt ;
\stopuniqueMPgraphic
\getbuffer
\startuniqueMPgraphic{xshadow}
linejoin := butt ;
draw (urcorner OverlayBox -- lrcorner OverlayBox --
llcorner Overlaybox) shifted (2pt,-2pt)
withpen pencircle scaled 2pt
withcolor .9white ;
draw OverlayBox
withpen pencircle scaled 2pt
withcolor .3white ;
setbounds currentpicture to OverlayBox enlarged 4pt ;
\stopuniqueMPgraphic
\getbuffer
\startuniqueMPgraphic{shadow}
linejoin := butt ; linecap := squared ;
draw (bottomboundary OverlayBox & rightboundary OverlayBox)
shifted (2pt,-2pt)
withpen pencircle scaled 2pt
withcolor .9white ;
draw OverlayBox
withpen pencircle scaled 2pt
withcolor .3white ;
setbounds currentpicture to OverlayBox enlarged 4pt ;
\stopuniqueMPgraphic
\getbuffer
\stoptext
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
information: http://www.pragma-ade.com/roadmap.pdf
documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------
prev parent reply other threads:[~2002-12-17 9:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.44.0212111854350.25552-100000@bop.eps.gda.pl>
[not found] ` <5.1.0.14.1.20021212095911.03012008@server-1>
[not found] ` <002a01c2a4dc$48bcd350$e000a8c0@capital.com>
2002-12-16 9:02 ` block the header and footer on the first page of a chapter Hans Hagen
[not found] ` <005b01c2a59f$05918080$e000a8c0@capital.com>
2002-12-17 9:16 ` Hans Hagen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5.1.0.14.1.20021217100038.0342f1b0@server-1 \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).