On Thu, 10 Oct 2019, cont...@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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________