I am trying to reproduce something like this for parts and chapters with MetaFun:
Placing the content on the page is simple so I am trying to get the colored background. However I do not know how to have it on the whole page...
My first attempt was to setup an alternative with an MPpage:
\setuppapersize[A6][A6]
\startsetups[partHeadRendering]
\startMPpage
StartPage ;
numeric w ; w := bbwidth(Page) ;
numeric h ; h := bbheight(Page) ;
fill (unitsquare xyscaled (w,h)) withcolor \MPcolor{darkred} ;
StopPage ;
\stopMPpage
\stopsetups
\defineheadalternative[partrenderer][alternative=vertical, renderingsetup=partHeadRendering]
\setuphead[part][alternative=partrenderer, placehead=yes]
\showframe
\starttext
\startpart
\stoppart
\stoptext
But...
Then I tried to use MPgraphic with an overlay as shown in the cover page wiki
\setuppapersize[A6][A6]
\startuseMPgraphic{PartCover}
\startMPpage
StartPage ;
fill Page withcolor \MPcolor{darkred} ;
StopPage ;
\stopMPpage
\stopuseMPgraphic
\defineoverlay[PartCover][\useMPgraphic{PartCover}]
\startsetups[partHeadRendering]
\setupbackgrounds[page][background=PartCover]
\stopsetups
\defineheadalternative[partrenderer][alternative=vertical, renderingsetup=partHeadRendering]
\setuphead[part][alternative=partrenderer, placehead=yes]
\showframe
\starttext
\startpart
\stoppart
\stoptext
but it did not go well either...
I also did take a look at this this but I got the same result as the first one.




eso-picpackage? – Bernard Apr 20 '22 at 11:54