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 Mit freundlichen Grüßen Jan Ulrich Hasecke -- Autoren-Homepage: ......... http://literatur.hasecke.com Satiren & Essays: ......... http://www.sudelbuch.de Privater Blog: ............ http://www.hasecke.eu Netzliteratur-Projekt: .... http://www.generationenprojekt.de
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
Hi Wolfgang, thanks a lot for your help. Am Thu, Aug 26, 2021 at 05:52:11PM +0200 schrieb Wolfgang Schuster:
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.
I wikified this hint here: https://wiki.contextgarden.net/Command/showframe#See_also juh -- Autoren-Homepage: ......... http://literatur.hasecke.com Satiren & Essays: ......... http://www.sudelbuch.de Privater Blog: ............ http://www.hasecke.eu Netzliteratur-Projekt: .... http://www.generationenprojekt.de
participants (2)
-
juh
-
Wolfgang Schuster