How to get the same result of \shadowbox
in LaTeX with ConTeXt ?
%\usepackage{fancybox}
\shadowbox{text}
This is my atttempt to use Metapost, this my MWE :
\setupcolors[state=start]
\usecolors[crayola]
\startuniqueMPgraphic{cadre}
path q; q := (0.5,-1) -- (OverlayWidth+0.5,-1) -- (OverlayWidth+0.5, OverlayHeight) -- (0.5, OverlayHeight) -- (0.5,-1) -- cycle;
path p; p := (0,0) -- (OverlayWidth,0) -- (OverlayWidth, OverlayHeight) -- (0, OverlayHeight) -- (0,0);
fill q withpen pencircle scaled 5pt withcolor \MPcolor{black} ;
fill p withpen pencircle scaled 1pt withcolor gray ;
setbounds currentpicture to boundingbox OverlayBox;
\stopuniqueMPgraphic
\defineoverlay[cadre][\useMPgraphic{cadre}]
\defineframedtext[shadowbox][frame=off,background=cadre,width=\makeupwidth]
\starttext
\startshadowbox
\input knuth
\stopshadowbox
\stoptext
uniqueMPgraphic
is a metafun command. EDIT: an example of shadowbox here: tex.stackexchange.com/questions/185051/…