From: Hans Hagen <pragma@wxs.nl>
Subject: Re: Red framed text
Date: Thu, 22 Dec 2005 22:15:29 +0100 [thread overview]
Message-ID: <43AB1771.4040206@wxs.nl> (raw)
In-Reply-To: <43AADD34.1070209@virgilio.it>
Jilani Khaldi wrote:
>
>> Missing \setupcolors[state=start] maybe? (works for me)
>
>
> Yes it is.
>
>>
>>> And what about a shaded frame?
>>
>>
>>
>> You mean like a dropshadow or so?
>
>
> Something like " \shadowbox{..}" using LaTeX package "fancybox"
> I just want to translate the simple macro I wrote time ago from LaTeX
> to ConTeXt:
> \newcommand{\attenzione}[1]
> {
> \begin{center}
> \(
> \shadowbox{
> \begin{minipage}{0.8\textwidth}
> \color{red}\underline{\textbf{Attenzione}}\\
> \color{black}
> #1
> \end{minipage}
> }
> \)
> \end{center}
> }
>
> jk
>
\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}
next prev parent reply other threads:[~2005-12-22 21:15 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-22 7:21 section prefix=+ David Arnold
2005-12-22 7:25 ` section prefix=+ (oops) David Arnold
2005-12-22 10:31 ` Red framed text Jilani Khaldi
2005-12-22 10:42 ` Taco Hoekwater
2005-12-22 17:07 ` Jilani Khaldi
2005-12-22 21:15 ` Hans Hagen [this message]
2005-12-22 22:36 ` Jilani Khaldi
2005-12-23 7:59 ` Jilani Khaldi
2005-12-23 8:25 ` Peter Münster
2005-12-22 23:22 ` David Arnold
2005-12-23 9:28 ` Hans Hagen
2005-12-23 17:44 ` setbounds question David Arnold
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=43AB1771.4040206@wxs.nl \
--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).