[NTG-context] Position of layer in foreground

Wolfgang Schuster schuster.wolfgang at gmail.com
Thu Jun 28 21:16:08 CEST 2018


> Marcus Vinicius Mesquita <mailto:marcusvinicius.mesquita at gmail.com>
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20180628/c1820714/attachment.html>


More information about the ntg-context mailing list