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