From: David Arnold <dwarnold45@cox.net>
Subject: Re: Red framed text
Date: Thu, 22 Dec 2005 15:22:43 -0800 [thread overview]
Message-ID: <866440E4-1B9C-4BF5-8DC5-EED6557790A0@cox.net> (raw)
In-Reply-To: <43AB1771.4040206@wxs.nl>
Very cool. First time I ever could figure out what \relax does. When
I deleted it from this source, I got:
! I can't find file `zapf}'.
l.25 {\input zapf}
Please type another input file name:
Good learning experience for me. I've seen and ignored this type of
error message before, looking elsewhere in the code. A very good
heads up for me.
Now is there anyway I can visualize the importance of the line
setbounds currentpicture to OverlayBox ;
in this example? I deleted it and recompiled but didn't see much
difference. What is the import of this line?
On Dec 22, 2005, at 1:15 PM, Hans Hagen wrote:
> 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}
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
next prev parent reply other threads:[~2005-12-22 23:22 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
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 [this message]
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=866440E4-1B9C-4BF5-8DC5-EED6557790A0@cox.net \
--to=dwarnold45@cox.net \
--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).