juh via ntg-context schrieb am 26.08.2021 um 14:46:
Hi,
this sample shows that the image in a layer in header disappears if showframe is set.
\setupexternalfigures[location=default] \definelayer[Cow] [x=0, y=0]
\setlayer[Cow] [x=10em, y=0mm] {\externalfigure[cow][height=\lineheight]} \setupbackgrounds[header][background=Cow]
\showframe
\starttext \input knuth \stoptext
The \showframe command is just a wrapper for \setupbackgrounds to enable the frames on certain parts of the page. One of the settings which are passed to \setupbacgrounds when you use \showframe is "background=" which resets all previous values of the background-key. To keep the layer setting you have to move \showframe above your own \setupbackgrounds command because the reset of the background-key happens then before you pass your own value. Wolfgang