Am 10.05.2025 um 21:39 schrieb Jeroen:
Is there a way with metapost to get a slightly off-centered (upper- right) shadow around a figure?
This a simple version (the \setupexternalfigures line is needed to load the example image because it won't wotk with dummy graphics):
\startuseMPgraphic{shadow} fill OverlayBox shifted (EmWidth/2,EmWidth/2) withcolor "lightgray" ; setbounds currentpicture to OverlayBox ; \stopuseMPgraphic \defineoverlay [shadow] [\useMPgraphic{shadow}] \setupexternalfigures[location=default] \starttext \externalfigure[mill] \blank \externalfigure[mill][background=shadow] \stoptext Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________