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
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context