10 Oct
2019
10 Oct
'19
2:02 p.m.
On Thu, 10 Oct 2019, context@vivaldi.net wrote:
Hello,
this is a probably basic question, but the following code doesn't compile:
---- \setupbackgrounds[page][background={Bkg}]
\defineoverlay[Bkg][\useMPgraphic{Bkg}]
\startuseMPgraphic{Bkg} externalfigure "hacker.png"; \stopuseMPgraphic
\starttext Ahoj \stoptext
Taco has already answered the question, but if you just want to insert the image as a background, there is no need to do so via MP. The following also works: \setupexternalfigures[location={local,global,default}] \setupbackgrounds[page][background={Bkg}] \defineoverlay[Bkg][{\externalfigure[hacker.png][width=\overlaywidth, height=\overlayheight]}] \starttext Ahoj \stoptext Aditya