Marcus Vinicius Mesquita
28. Juni 2018 um 01:23
Dear List,

In the MWE below, I expected the numbers to appear above the cow figure. What am I missing?


\definefont
[Title]
[SerifBold at 42pt]

\starttext

\placefigure[][]{Cow}
{\externalfigure[cow][width=.5\textwidth]}

\definelayer[myfigure][x=6cm,y=6cm,preset=middle]

\setlayer[myfigure]{\framed[frame=off]{\Title \color[middlecyan]{123456789}}}

\setlayerframed[myfigure][][frame=off,foregroundstyle=Title,foregroundcolor=middlecyan]{123456789}

\setupbackgrounds[page][background={myfigure}]

When you set a layer with the background key it is placed *behind* the content
of the page but you can move it before the content with the "foreground” keyword,
e.g. \setupbackgrounds[page][background={foreground,myfigure)].

Wolfgang